blob: d140c497dc50722cd8eebf4834cc4a7240e5a9a7 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libnl 3.2.25.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libnl'
589PACKAGE_TARNAME='libnl'
590PACKAGE_VERSION='3.2.25'
591PACKAGE_STRING='libnl 3.2.25'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL='http://www.infradead.org/~tgr/libnl/'
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631enable_option_checking=no
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636subdirs
637ENABLE_DEBUG_FALSE
638ENABLE_DEBUG_TRUE
639DISABLE_PTHREADS_FALSE
640DISABLE_PTHREADS_TRUE
641ENABLE_CLI_FALSE
642ENABLE_CLI_TRUE
643pkgconfigdir
644ENABLE_UNIT_TESTS_FALSE
645ENABLE_UNIT_TESTS_TRUE
646CHECK_LIBS
647CHECK_CFLAGS
648PKG_CONFIG_LIBDIR
649PKG_CONFIG_PATH
650PKG_CONFIG
651YACC
652FLEX
653CPP
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661DLLTOOL
662OBJDUMP
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669EGREP
670GREP
671SED
672host_os
673host_vendor
674host_cpu
675host
676build_os
677build_vendor
678build_cpu
679build
680LIBTOOL
681LT_AGE
682LT_REVISION
683LT_CURRENT
684LIBNL_VERSION
685MIC_VERSION
686MIN_VERSION
687MAJ_VERSION
688am__fastdepCC_FALSE
689am__fastdepCC_TRUE
690CCDEPMODE
691am__nodep
692AMDEPBACKSLASH
693AMDEP_FALSE
694AMDEP_TRUE
695am__quote
696am__include
697DEPDIR
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705ac_ct_AR
706AR
707AM_BACKSLASH
708AM_DEFAULT_VERBOSITY
709AM_DEFAULT_V
710AM_V
711am__untar
712am__tar
713AMTAR
714am__leading_dot
715SET_MAKE
716AWK
717mkdir_p
718MKDIR_P
719INSTALL_STRIP_PROGRAM
720STRIP
721install_sh
722MAKEINFO
723AUTOHEADER
724AUTOMAKE
725AUTOCONF
726ACLOCAL
727VERSION
728PACKAGE
729CYGPATH_W
730am__isrc
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files=''
773ac_user_opts='
774enable_option_checking
775enable_silent_rules
776enable_dependency_tracking
777enable_shared
778enable_static
779with_pic
780enable_fast_install
781with_gnu_ld
782with_sysroot
783enable_libtool_lock
784with_pkgconfigdir
785enable_cli
786enable_pthreads
787enable_debug
788'
789 ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797CPP
798PKG_CONFIG
799PKG_CONFIG_PATH
800PKG_CONFIG_LIBDIR
801CHECK_CFLAGS
802CHECK_LIBS'
803ac_subdirs_all='doc'
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808ac_unrecognized_opts=
809ac_unrecognized_sep=
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917"enable_$ac_useropt"
918"*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147"with_$ac_useropt"
1148"*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1153
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"with_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189Try \`$0 --help' for more information"
1190 ;;
1191
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 ;;
1209
1210 esac
1211done
1212
1213if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1231do
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308else
1309 ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343\`configure' configures libnl 3.2.25 to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
1363Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/libnl]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396_ACEOF
1397
1398 cat <<\_ACEOF
1399
1400Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408_ACEOF
1409fi
1410
1411if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of libnl 3.2.25:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-silent-rules less verbose build output (undo: "make V=1")
1422 --disable-silent-rules verbose build output (undo: "make V=0")
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --enable-shared[=PKGS] build shared libraries [default=yes]
1428 --enable-static[=PKGS] build static libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --disable-libtool-lock avoid locking (might break parallel builds)
1432 --disable-cli Do not build command line interface utils
1433 --disable-pthreads Disable pthreads support
1434 --disable-debug Do not include debugging statements
1435
1436Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442 --with-sysroot=DIR Search for dependent libraries within DIR
1443 (or the compiler's sysroot if not specified).
1444 --with-pkgconfigdir=PATH
1445 Path to the pkgconfig directory [[LIBDIR/pkgconfig]]
1446
1447Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CPP C preprocessor
1456 PKG_CONFIG path to pkg-config utility
1457 PKG_CONFIG_PATH
1458 directories to add to pkg-config's search path
1459 PKG_CONFIG_LIBDIR
1460 path overriding pkg-config's built-in search path
1461 CHECK_CFLAGS
1462 C compiler flags for CHECK, overriding pkg-config
1463 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1464
1465Use these variables to override the choices made by `configure' or to help
1466it to find libraries and programs with nonstandard names/locations.
1467
1468Report bugs to the package provider.
1469libnl home page: <http://www.infradead.org/~tgr/libnl/>.
1470_ACEOF
1471ac_status=$?
1472fi
1473
1474if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 continue
1480 ac_builddir=.
1481
1482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
1497
1498case $srcdir in
1499 .) # We are building in place.
1500 ac_srcdir=.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511esac
1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1522 else
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1526 done
1527fi
1528
1529test -n "$ac_init_help" && exit $ac_status
1530if $ac_init_version; then
1531 cat <<\_ACEOF
1532libnl configure 3.2.25
1533generated by GNU Autoconf 2.69
1534
1535Copyright (C) 2012 Free Software Foundation, Inc.
1536This configure script is free software; the Free Software Foundation
1537gives unlimited permission to copy, distribute and modify it.
1538_ACEOF
1539 exit
1540fi
1541
1542## ------------------------ ##
1543## Autoconf initialization. ##
1544## ------------------------ ##
1545
1546# ac_fn_c_try_compile LINENO
1547# --------------------------
1548# Try to compile conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_compile ()
1550{
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1554case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557esac
1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559$as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1572 ac_retval=0
1573else
1574 $as_echo "$as_me: failed program was:" >&5
1575sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578fi
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582} # ac_fn_c_try_compile
1583
1584# ac_fn_c_try_link LINENO
1585# -----------------------
1586# Try to link conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_link ()
1588{
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest$ac_exeext
1591 if { { ac_try="$ac_link"
1592case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest$ac_exeext && {
1610 test "$cross_compiling" = yes ||
1611 test -x conftest$ac_exeext
1612 }; then :
1613 ac_retval=0
1614else
1615 $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619fi
1620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622 # interfere with the next link command; also delete a directory that is
1623 # left behind by Apple's compiler. We do this before executing the actions.
1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_link
1629
1630# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631# -------------------------------------------------------
1632# Tests whether HEADER exists and can be compiled using the include files in
1633# INCLUDES, setting the cache variable VAR accordingly.
1634ac_fn_c_check_header_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; }
1639if eval \${$3+:} false; then :
1640 $as_echo_n "(cached) " >&6
1641else
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h. */
1644$4
1645#include <$2>
1646_ACEOF
1647if ac_fn_c_try_compile "$LINENO"; then :
1648 eval "$3=yes"
1649else
1650 eval "$3=no"
1651fi
1652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653fi
1654eval ac_res=\$$3
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656$as_echo "$ac_res" >&6; }
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659} # ac_fn_c_check_header_compile
1660
1661# ac_fn_c_try_cpp LINENO
1662# ----------------------
1663# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_cpp ()
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_cpp conftest.$ac_ext"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } > conftest.i && {
1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 }; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692fi
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_cpp
1697
1698# ac_fn_c_try_run LINENO
1699# ----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701# that executables *can* be run.
1702ac_fn_c_try_run ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716 { { case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_try") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; }; }; then :
1726 ac_retval=0
1727else
1728 $as_echo "$as_me: program exited with status $ac_status" >&5
1729 $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=$ac_status
1733fi
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_run
1739
1740# ac_fn_c_check_func LINENO FUNC VAR
1741# ----------------------------------
1742# Tests whether FUNC exists, setting the cache variable VAR accordingly
1743ac_fn_c_check_func ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747$as_echo_n "checking for $2... " >&6; }
1748if eval \${$3+:} false; then :
1749 $as_echo_n "(cached) " >&6
1750else
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h. */
1753/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1755#define $2 innocuous_$2
1756
1757/* System header to define __stub macros and hopefully few prototypes,
1758 which can conflict with char $2 (); below.
1759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760 <limits.h> exists even on freestanding compilers. */
1761
1762#ifdef __STDC__
1763# include <limits.h>
1764#else
1765# include <assert.h>
1766#endif
1767
1768#undef $2
1769
1770/* Override any GCC internal prototype to avoid an error.
1771 Use char because int might match the return type of a GCC
1772 builtin and then its argument prototype would still apply. */
1773#ifdef __cplusplus
1774extern "C"
1775#endif
1776char $2 ();
1777/* The GNU C library defines this for functions which it implements
1778 to always fail with ENOSYS. Some functions are actually named
1779 something starting with __ and the normal name is an alias. */
1780#if defined __stub_$2 || defined __stub___$2
1781choke me
1782#endif
1783
1784int
1785main ()
1786{
1787return $2 ();
1788 ;
1789 return 0;
1790}
1791_ACEOF
1792if ac_fn_c_try_link "$LINENO"; then :
1793 eval "$3=yes"
1794else
1795 eval "$3=no"
1796fi
1797rm -f core conftest.err conftest.$ac_objext \
1798 conftest$ac_exeext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805} # ac_fn_c_check_func
1806cat >config.log <<_ACEOF
1807This file contains any messages produced by compilers while
1808running configure, to aid debugging if configure makes a mistake.
1809
1810It was created by libnl $as_me 3.2.25, which was
1811generated by GNU Autoconf 2.69. Invocation command line was
1812
1813 $ $0 $@
1814
1815_ACEOF
1816exec 5>>config.log
1817{
1818cat <<_ASUNAME
1819## --------- ##
1820## Platform. ##
1821## --------- ##
1822
1823hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1824uname -m = `(uname -m) 2>/dev/null || echo unknown`
1825uname -r = `(uname -r) 2>/dev/null || echo unknown`
1826uname -s = `(uname -s) 2>/dev/null || echo unknown`
1827uname -v = `(uname -v) 2>/dev/null || echo unknown`
1828
1829/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1830/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1831
1832/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1833/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1834/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1835/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1836/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1837/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1838/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839
1840_ASUNAME
1841
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 $as_echo "PATH: $as_dir"
1848 done
1849IFS=$as_save_IFS
1850
1851} >&5
1852
1853cat >&5 <<_ACEOF
1854
1855
1856## ----------- ##
1857## Core tests. ##
1858## ----------- ##
1859
1860_ACEOF
1861
1862
1863# Keep a trace of the command line.
1864# Strip out --no-create and --no-recursion so they do not pile up.
1865# Strip out --silent because we don't want to record it for future runs.
1866# Also quote any args containing shell meta-characters.
1867# Make two passes to allow for proper duplicate-argument suppression.
1868ac_configure_args=
1869ac_configure_args0=
1870ac_configure_args1=
1871ac_must_keep_next=false
1872for ac_pass in 1 2
1873do
1874 for ac_arg
1875 do
1876 case $ac_arg in
1877 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1879 | -silent | --silent | --silen | --sile | --sil)
1880 continue ;;
1881 *\'*)
1882 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 esac
1884 case $ac_pass in
1885 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 2)
1887 as_fn_append ac_configure_args1 " '$ac_arg'"
1888 if test $ac_must_keep_next = true; then
1889 ac_must_keep_next=false # Got value, back to normal.
1890 else
1891 case $ac_arg in
1892 *=* | --config-cache | -C | -disable-* | --disable-* \
1893 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1894 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1895 | -with-* | --with-* | -without-* | --without-* | --x)
1896 case "$ac_configure_args0 " in
1897 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1898 esac
1899 ;;
1900 -* ) ac_must_keep_next=true ;;
1901 esac
1902 fi
1903 as_fn_append ac_configure_args " '$ac_arg'"
1904 ;;
1905 esac
1906 done
1907done
1908{ ac_configure_args0=; unset ac_configure_args0;}
1909{ ac_configure_args1=; unset ac_configure_args1;}
1910
1911# When interrupted or exit'd, cleanup temporary files, and complete
1912# config.log. We remove comments because anyway the quotes in there
1913# would cause problems or look ugly.
1914# WARNING: Use '\'' to represent an apostrophe within the trap.
1915# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1916trap 'exit_status=$?
1917 # Save into config.log some information that might help in debugging.
1918 {
1919 echo
1920
1921 $as_echo "## ---------------- ##
1922## Cache variables. ##
1923## ---------------- ##"
1924 echo
1925 # The following way of writing the cache mishandles newlines in values,
1926(
1927 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in #(
1930 *${as_nl}*)
1931 case $ac_var in #(
1932 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1933$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1934 esac
1935 case $ac_var in #(
1936 _ | IFS | as_nl) ;; #(
1937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1938 *) { eval $ac_var=; unset $ac_var;} ;;
1939 esac ;;
1940 esac
1941 done
1942 (set) 2>&1 |
1943 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1944 *${as_nl}ac_space=\ *)
1945 sed -n \
1946 "s/'\''/'\''\\\\'\'''\''/g;
1947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1948 ;; #(
1949 *)
1950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 ;;
1952 esac |
1953 sort
1954)
1955 echo
1956
1957 $as_echo "## ----------------- ##
1958## Output variables. ##
1959## ----------------- ##"
1960 echo
1961 for ac_var in $ac_subst_vars
1962 do
1963 eval ac_val=\$$ac_var
1964 case $ac_val in
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 esac
1967 $as_echo "$ac_var='\''$ac_val'\''"
1968 done | sort
1969 echo
1970
1971 if test -n "$ac_subst_files"; then
1972 $as_echo "## ------------------- ##
1973## File substitutions. ##
1974## ------------------- ##"
1975 echo
1976 for ac_var in $ac_subst_files
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985 fi
1986
1987 if test -s confdefs.h; then
1988 $as_echo "## ----------- ##
1989## confdefs.h. ##
1990## ----------- ##"
1991 echo
1992 cat confdefs.h
1993 echo
1994 fi
1995 test "$ac_signal" != 0 &&
1996 $as_echo "$as_me: caught signal $ac_signal"
1997 $as_echo "$as_me: exit $exit_status"
1998 } >&5
1999 rm -f core *.core core.conftest.* &&
2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 exit $exit_status
2002' 0
2003for ac_signal in 1 2 13 15; do
2004 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005done
2006ac_signal=0
2007
2008# confdefs.h avoids OS command line length limits that DEFS can exceed.
2009rm -f -r conftest* confdefs.h
2010
2011$as_echo "/* confdefs.h */" > confdefs.h
2012
2013# Predefined preprocessor variables.
2014
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_NAME "$PACKAGE_NAME"
2017_ACEOF
2018
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2021_ACEOF
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_VERSION "$PACKAGE_VERSION"
2025_ACEOF
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_STRING "$PACKAGE_STRING"
2029_ACEOF
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2033_ACEOF
2034
2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_URL "$PACKAGE_URL"
2037_ACEOF
2038
2039
2040# Let the site file select an alternate cache file if it wants to.
2041# Prefer an explicitly selected file to automatically selected ones.
2042ac_site_file1=NONE
2043ac_site_file2=NONE
2044if test -n "$CONFIG_SITE"; then
2045 # We do not want a PATH search for config.site.
2046 case $CONFIG_SITE in #((
2047 -*) ac_site_file1=./$CONFIG_SITE;;
2048 */*) ac_site_file1=$CONFIG_SITE;;
2049 *) ac_site_file1=./$CONFIG_SITE;;
2050 esac
2051elif test "x$prefix" != xNONE; then
2052 ac_site_file1=$prefix/share/config.site
2053 ac_site_file2=$prefix/etc/config.site
2054else
2055 ac_site_file1=$ac_default_prefix/share/config.site
2056 ac_site_file2=$ac_default_prefix/etc/config.site
2057fi
2058for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2059do
2060 test "x$ac_site_file" = xNONE && continue
2061 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2063$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2065 . "$ac_site_file" \
2066 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068as_fn_error $? "failed to load site script $ac_site_file
2069See \`config.log' for more details" "$LINENO" 5; }
2070 fi
2071done
2072
2073if test -r "$cache_file"; then
2074 # Some versions of bash will fail to source /dev/null (special files
2075 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2076 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078$as_echo "$as_me: loading cache $cache_file" >&6;}
2079 case $cache_file in
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
2082 esac
2083 fi
2084else
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086$as_echo "$as_me: creating cache $cache_file" >&6;}
2087 >$cache_file
2088fi
2089
2090# Check that the precious variables saved in the cache have kept the same
2091# value.
2092ac_cache_corrupted=false
2093for ac_var in $ac_precious_vars; do
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
2098 case $ac_old_set,$ac_new_set in
2099 set,)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,set)
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 esac
2138 fi
2139done
2140if $ac_cache_corrupted; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2146fi
2147## -------------------- ##
2148## Main body of script. ##
2149## -------------------- ##
2150
2151ac_ext=c
2152ac_cpp='$CPP $CPPFLAGS'
2153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
2157
2158ac_config_headers="$ac_config_headers lib/defs.h"
2159
2160ac_aux_dir=
2161for ac_dir in build-aux "$srcdir"/build-aux; do
2162 if test -f "$ac_dir/install-sh"; then
2163 ac_aux_dir=$ac_dir
2164 ac_install_sh="$ac_aux_dir/install-sh -c"
2165 break
2166 elif test -f "$ac_dir/install.sh"; then
2167 ac_aux_dir=$ac_dir
2168 ac_install_sh="$ac_aux_dir/install.sh -c"
2169 break
2170 elif test -f "$ac_dir/shtool"; then
2171 ac_aux_dir=$ac_dir
2172 ac_install_sh="$ac_aux_dir/shtool install -c"
2173 break
2174 fi
2175done
2176if test -z "$ac_aux_dir"; then
2177 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2178fi
2179
2180# These three variables are undocumented and unsupported,
2181# and are intended to be withdrawn in a future Autoconf release.
2182# They can cause serious problems if a builder's source tree is in a directory
2183# whose full name contains unusual characters.
2184ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2185ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2186ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2187
2188
2189
2190am__api_version='1.13'
2191
2192# Find a good install program. We prefer a C program (faster),
2193# so one script is as good as another. But avoid the broken or
2194# incompatible versions:
2195# SysV /etc/install, /usr/sbin/install
2196# SunOS /usr/etc/install
2197# IRIX /sbin/install
2198# AIX /bin/install
2199# AmigaOS /C/install, which installs bootblocks on floppy discs
2200# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2201# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2202# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2203# OS/2's system install, which has a completely different semantic
2204# ./install, which can be erroneously created by make from ./install.sh.
2205# Reject install programs that cannot install multiple files.
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2207$as_echo_n "checking for a BSD-compatible install... " >&6; }
2208if test -z "$INSTALL"; then
2209if ${ac_cv_path_install+:} false; then :
2210 $as_echo_n "(cached) " >&6
2211else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213for as_dir in $PATH
2214do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 # Account for people who put trailing slashes in PATH elements.
2218case $as_dir/ in #((
2219 ./ | .// | /[cC]/* | \
2220 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2221 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2222 /usr/ucb/* ) ;;
2223 *)
2224 # OSF1 and SCO ODT 3.0 have their own names for install.
2225 # Don't use installbsd from OSF since it installs stuff as root
2226 # by default.
2227 for ac_prog in ginstall scoinst install; do
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2230 if test $ac_prog = install &&
2231 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2232 # AIX install. It has an incompatible calling convention.
2233 :
2234 elif test $ac_prog = install &&
2235 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2236 # program-specific install script used by HP pwplus--don't use.
2237 :
2238 else
2239 rm -rf conftest.one conftest.two conftest.dir
2240 echo one > conftest.one
2241 echo two > conftest.two
2242 mkdir conftest.dir
2243 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2244 test -s conftest.one && test -s conftest.two &&
2245 test -s conftest.dir/conftest.one &&
2246 test -s conftest.dir/conftest.two
2247 then
2248 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2249 break 3
2250 fi
2251 fi
2252 fi
2253 done
2254 done
2255 ;;
2256esac
2257
2258 done
2259IFS=$as_save_IFS
2260
2261rm -rf conftest.one conftest.two conftest.dir
2262
2263fi
2264 if test "${ac_cv_path_install+set}" = set; then
2265 INSTALL=$ac_cv_path_install
2266 else
2267 # As a last resort, use the slow shell script. Don't cache a
2268 # value for INSTALL within a source directory, because that will
2269 # break other packages using the cache if that directory is
2270 # removed, or if the value is a relative name.
2271 INSTALL=$ac_install_sh
2272 fi
2273fi
2274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2275$as_echo "$INSTALL" >&6; }
2276
2277# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2278# It thinks the first close brace ends the variable substitution.
2279test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2280
2281test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2282
2283test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2284
2285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2286$as_echo_n "checking whether build environment is sane... " >&6; }
2287# Reject unsafe characters in $srcdir or the absolute working directory
2288# name. Accept space and tab only in the latter.
2289am_lf='
2290'
2291case `pwd` in
2292 *[\\\"\#\$\&\'\`$am_lf]*)
2293 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2294esac
2295case $srcdir in
2296 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2297 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2298esac
2299
2300# Do 'set' in a subshell so we don't clobber the current shell's
2301# arguments. Must try -L first in case configure is actually a
2302# symlink; some systems play weird games with the mod time of symlinks
2303# (eg FreeBSD returns the mod time of the symlink's containing
2304# directory).
2305if (
2306 am_has_slept=no
2307 for am_try in 1 2; do
2308 echo "timestamp, slept: $am_has_slept" > conftest.file
2309 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2310 if test "$*" = "X"; then
2311 # -L didn't work.
2312 set X `ls -t "$srcdir/configure" conftest.file`
2313 fi
2314 if test "$*" != "X $srcdir/configure conftest.file" \
2315 && test "$*" != "X conftest.file $srcdir/configure"; then
2316
2317 # If neither matched, then we have a broken ls. This can happen
2318 # if, for instance, CONFIG_SHELL is bash and it inherits a
2319 # broken ls alias from the environment. This has actually
2320 # happened. Such a system could not be considered "sane".
2321 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2322 alias in your environment" "$LINENO" 5
2323 fi
2324 if test "$2" = conftest.file || test $am_try -eq 2; then
2325 break
2326 fi
2327 # Just in case.
2328 sleep 1
2329 am_has_slept=yes
2330 done
2331 test "$2" = conftest.file
2332 )
2333then
2334 # Ok.
2335 :
2336else
2337 as_fn_error $? "newly created file is older than distributed files!
2338Check your system clock" "$LINENO" 5
2339fi
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2341$as_echo "yes" >&6; }
2342# If we didn't sleep, we still need to ensure time stamps of config.status and
2343# generated files are strictly newer.
2344am_sleep_pid=
2345if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2346 ( sleep 1 ) &
2347 am_sleep_pid=$!
2348fi
2349
2350rm -f conftest.file
2351
2352test "$program_prefix" != NONE &&
2353 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2354# Use a double $ so make ignores it.
2355test "$program_suffix" != NONE &&
2356 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2357# Double any \ or $.
2358# By default was `s,x,x', remove it if useless.
2359ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2360program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2361
2362# expand $ac_aux_dir to an absolute path
2363am_aux_dir=`cd $ac_aux_dir && pwd`
2364
2365if test x"${MISSING+set}" != xset; then
2366 case $am_aux_dir in
2367 *\ * | *\ *)
2368 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2369 *)
2370 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2371 esac
2372fi
2373# Use eval to expand $SHELL
2374if eval "$MISSING --is-lightweight"; then
2375 am_missing_run="$MISSING "
2376else
2377 am_missing_run=
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2379$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2380fi
2381
2382if test x"${install_sh}" != xset; then
2383 case $am_aux_dir in
2384 *\ * | *\ *)
2385 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2386 *)
2387 install_sh="\${SHELL} $am_aux_dir/install-sh"
2388 esac
2389fi
2390
2391# Installed binaries are usually stripped using 'strip' when the user
2392# run "make install-strip". However 'strip' might not be the right
2393# tool to use in cross-compilation environments, therefore Automake
2394# will honor the 'STRIP' environment variable to overrule this program.
2395if test "$cross_compiling" != no; then
2396 if test -n "$ac_tool_prefix"; then
2397 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2398set dummy ${ac_tool_prefix}strip; ac_word=$2
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2400$as_echo_n "checking for $ac_word... " >&6; }
2401if ${ac_cv_prog_STRIP+:} false; then :
2402 $as_echo_n "(cached) " >&6
2403else
2404 if test -n "$STRIP"; then
2405 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2406else
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418done
2419 done
2420IFS=$as_save_IFS
2421
2422fi
2423fi
2424STRIP=$ac_cv_prog_STRIP
2425if test -n "$STRIP"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2427$as_echo "$STRIP" >&6; }
2428else
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2430$as_echo "no" >&6; }
2431fi
2432
2433
2434fi
2435if test -z "$ac_cv_prog_STRIP"; then
2436 ac_ct_STRIP=$STRIP
2437 # Extract the first word of "strip", so it can be a program name with args.
2438set dummy strip; ac_word=$2
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440$as_echo_n "checking for $ac_word... " >&6; }
2441if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443else
2444 if test -n "$ac_ct_STRIP"; then
2445 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454 ac_cv_prog_ac_ct_STRIP="strip"
2455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458done
2459 done
2460IFS=$as_save_IFS
2461
2462fi
2463fi
2464ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2465if test -n "$ac_ct_STRIP"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2467$as_echo "$ac_ct_STRIP" >&6; }
2468else
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2470$as_echo "no" >&6; }
2471fi
2472
2473 if test "x$ac_ct_STRIP" = x; then
2474 STRIP=":"
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477yes:)
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2480ac_tool_warned=yes ;;
2481esac
2482 STRIP=$ac_ct_STRIP
2483 fi
2484else
2485 STRIP="$ac_cv_prog_STRIP"
2486fi
2487
2488fi
2489INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2490
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2492$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2493if test -z "$MKDIR_P"; then
2494 if ${ac_cv_path_mkdir+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2499do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 for ac_prog in mkdir gmkdir; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2505 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2506 'mkdir (GNU coreutils) '* | \
2507 'mkdir (coreutils) '* | \
2508 'mkdir (fileutils) '4.1*)
2509 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2510 break 3;;
2511 esac
2512 done
2513 done
2514 done
2515IFS=$as_save_IFS
2516
2517fi
2518
2519 test -d ./--version && rmdir ./--version
2520 if test "${ac_cv_path_mkdir+set}" = set; then
2521 MKDIR_P="$ac_cv_path_mkdir -p"
2522 else
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for MKDIR_P within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 MKDIR_P="$ac_install_sh -d"
2528 fi
2529fi
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2531$as_echo "$MKDIR_P" >&6; }
2532
2533for ac_prog in gawk mawk nawk awk
2534do
2535 # Extract the first word of "$ac_prog", so it can be a program name with args.
2536set dummy $ac_prog; ac_word=$2
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538$as_echo_n "checking for $ac_word... " >&6; }
2539if ${ac_cv_prog_AWK+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541else
2542 if test -n "$AWK"; then
2543 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2552 ac_cv_prog_AWK="$ac_prog"
2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2555 fi
2556done
2557 done
2558IFS=$as_save_IFS
2559
2560fi
2561fi
2562AWK=$ac_cv_prog_AWK
2563if test -n "$AWK"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2565$as_echo "$AWK" >&6; }
2566else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568$as_echo "no" >&6; }
2569fi
2570
2571
2572 test -n "$AWK" && break
2573done
2574
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2576$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2577set x ${MAKE-make}
2578ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2579if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581else
2582 cat >conftest.make <<\_ACEOF
2583SHELL = /bin/sh
2584all:
2585 @echo '@@@%%%=$(MAKE)=@@@%%%'
2586_ACEOF
2587# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2588case `${MAKE-make} -f conftest.make 2>/dev/null` in
2589 *@@@%%%=?*=@@@%%%*)
2590 eval ac_cv_prog_make_${ac_make}_set=yes;;
2591 *)
2592 eval ac_cv_prog_make_${ac_make}_set=no;;
2593esac
2594rm -f conftest.make
2595fi
2596if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2598$as_echo "yes" >&6; }
2599 SET_MAKE=
2600else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603 SET_MAKE="MAKE=${MAKE-make}"
2604fi
2605
2606rm -rf .tst 2>/dev/null
2607mkdir .tst 2>/dev/null
2608if test -d .tst; then
2609 am__leading_dot=.
2610else
2611 am__leading_dot=_
2612fi
2613rmdir .tst 2>/dev/null
2614
2615# Check whether --enable-silent-rules was given.
2616if test "${enable_silent_rules+set}" = set; then :
2617 enableval=$enable_silent_rules;
2618fi
2619
2620case $enable_silent_rules in # (((
2621 yes) AM_DEFAULT_VERBOSITY=0;;
2622 no) AM_DEFAULT_VERBOSITY=1;;
2623 *) AM_DEFAULT_VERBOSITY=1;;
2624esac
2625am_make=${MAKE-make}
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2627$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2628if ${am_cv_make_support_nested_variables+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630else
2631 if $as_echo 'TRUE=$(BAR$(V))
2632BAR0=false
2633BAR1=true
2634V=1
2635am__doit:
2636 @$(TRUE)
2637.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2638 am_cv_make_support_nested_variables=yes
2639else
2640 am_cv_make_support_nested_variables=no
2641fi
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2644$as_echo "$am_cv_make_support_nested_variables" >&6; }
2645if test $am_cv_make_support_nested_variables = yes; then
2646 AM_V='$(V)'
2647 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2648else
2649 AM_V=$AM_DEFAULT_VERBOSITY
2650 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2651fi
2652AM_BACKSLASH='\'
2653
2654if test "`cd $srcdir && pwd`" != "`pwd`"; then
2655 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2656 # is not polluted with repeated "-I."
2657 am__isrc=' -I$(srcdir)'
2658 # test to see if srcdir already configured
2659 if test -f $srcdir/config.status; then
2660 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2661 fi
2662fi
2663
2664# test whether we have cygpath
2665if test -z "$CYGPATH_W"; then
2666 if (cygpath --version) >/dev/null 2>/dev/null; then
2667 CYGPATH_W='cygpath -w'
2668 else
2669 CYGPATH_W=echo
2670 fi
2671fi
2672
2673
2674# Define the identity of the package.
2675 PACKAGE='libnl'
2676 VERSION='3.2.25'
2677
2678
2679cat >>confdefs.h <<_ACEOF
2680#define PACKAGE "$PACKAGE"
2681_ACEOF
2682
2683
2684cat >>confdefs.h <<_ACEOF
2685#define VERSION "$VERSION"
2686_ACEOF
2687
2688# Some tools Automake needs.
2689
2690ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2691
2692
2693AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2694
2695
2696AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2697
2698
2699AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2700
2701
2702MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2703
2704# For better backward compatibility. To be removed once Automake 1.9.x
2705# dies out for good. For more background, see:
2706# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2707# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2708mkdir_p='$(MKDIR_P)'
2709
2710# We need awk for the "check" target. The system "awk" is bad on
2711# some platforms.
2712# Always define AMTAR for backward compatibility. Yes, it's still used
2713# in the wild :-( We should find a proper way to deprecate it ...
2714AMTAR='$${TAR-tar}'
2715
2716
2717# We'll loop over all known methods to create a tar archive until one works.
2718_am_tools='gnutar pax cpio none'
2719
2720am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2721
2722
2723
2724
2725
2726
2727# Check whether --enable-silent-rules was given.
2728if test "${enable_silent_rules+set}" = set; then :
2729 enableval=$enable_silent_rules;
2730fi
2731
2732case $enable_silent_rules in # (((
2733 yes) AM_DEFAULT_VERBOSITY=0;;
2734 no) AM_DEFAULT_VERBOSITY=1;;
2735 *) AM_DEFAULT_VERBOSITY=0;;
2736esac
2737am_make=${MAKE-make}
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2739$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2740if ${am_cv_make_support_nested_variables+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742else
2743 if $as_echo 'TRUE=$(BAR$(V))
2744BAR0=false
2745BAR1=true
2746V=1
2747am__doit:
2748 @$(TRUE)
2749.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2750 am_cv_make_support_nested_variables=yes
2751else
2752 am_cv_make_support_nested_variables=no
2753fi
2754fi
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2756$as_echo "$am_cv_make_support_nested_variables" >&6; }
2757if test $am_cv_make_support_nested_variables = yes; then
2758 AM_V='$(V)'
2759 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2760else
2761 AM_V=$AM_DEFAULT_VERBOSITY
2762 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2763fi
2764AM_BACKSLASH='\'
2765
2766DEPDIR="${am__leading_dot}deps"
2767
2768ac_config_commands="$ac_config_commands depfiles"
2769
2770
2771am_make=${MAKE-make}
2772cat > confinc << 'END'
2773am__doit:
2774 @echo this is the am__doit target
2775.PHONY: am__doit
2776END
2777# If we don't find an include directive, just comment out the code.
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2779$as_echo_n "checking for style of include used by $am_make... " >&6; }
2780am__include="#"
2781am__quote=
2782_am_result=none
2783# First try GNU make style include.
2784echo "include confinc" > confmf
2785# Ignore all kinds of additional output from 'make'.
2786case `$am_make -s -f confmf 2> /dev/null` in #(
2787*the\ am__doit\ target*)
2788 am__include=include
2789 am__quote=
2790 _am_result=GNU
2791 ;;
2792esac
2793# Now try BSD make style include.
2794if test "$am__include" = "#"; then
2795 echo '.include "confinc"' > confmf
2796 case `$am_make -s -f confmf 2> /dev/null` in #(
2797 *the\ am__doit\ target*)
2798 am__include=.include
2799 am__quote="\""
2800 _am_result=BSD
2801 ;;
2802 esac
2803fi
2804
2805
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2807$as_echo "$_am_result" >&6; }
2808rm -f confinc confmf
2809
2810# Check whether --enable-dependency-tracking was given.
2811if test "${enable_dependency_tracking+set}" = set; then :
2812 enableval=$enable_dependency_tracking;
2813fi
2814
2815if test "x$enable_dependency_tracking" != xno; then
2816 am_depcomp="$ac_aux_dir/depcomp"
2817 AMDEPBACKSLASH='\'
2818 am__nodep='_no'
2819fi
2820 if test "x$enable_dependency_tracking" != xno; then
2821 AMDEP_TRUE=
2822 AMDEP_FALSE='#'
2823else
2824 AMDEP_TRUE='#'
2825 AMDEP_FALSE=
2826fi
2827
2828
2829ac_ext=c
2830ac_cpp='$CPP $CPPFLAGS'
2831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836set dummy ${ac_tool_prefix}gcc; ac_word=$2
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
2839if ${ac_cv_prog_CC+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856done
2857 done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865$as_echo "$CC" >&6; }
2866else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871
2872fi
2873if test -z "$ac_cv_prog_CC"; then
2874 ac_ct_CC=$CC
2875 # Extract the first word of "gcc", so it can be a program name with args.
2876set dummy gcc; ac_word=$2
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
2879if ${ac_cv_prog_ac_ct_CC+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881else
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_ac_ct_CC="gcc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897 done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903if test -n "$ac_ct_CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905$as_echo "$ac_ct_CC" >&6; }
2906else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
2909fi
2910
2911 if test "x$ac_ct_CC" = x; then
2912 CC=""
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915yes:)
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918ac_tool_warned=yes ;;
2919esac
2920 CC=$ac_ct_CC
2921 fi
2922else
2923 CC="$ac_cv_prog_CC"
2924fi
2925
2926if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2929set dummy ${ac_tool_prefix}cc; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if ${ac_cv_prog_CC+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="${ac_tool_prefix}cc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949done
2950 done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955CC=$ac_cv_prog_CC
2956if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958$as_echo "$CC" >&6; }
2959else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965 fi
2966fi
2967if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969set dummy cc; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if ${ac_cv_prog_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
2978 ac_prog_rejected=no
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2987 ac_prog_rejected=yes
2988 continue
2989 fi
2990 ac_cv_prog_CC="cc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995 done
2996IFS=$as_save_IFS
2997
2998if test $ac_prog_rejected = yes; then
2999 # We found a bogon in the path, so make sure we never use it.
3000 set dummy $ac_cv_prog_CC
3001 shift
3002 if test $# != 0; then
3003 # We chose a different compiler from the bogus one.
3004 # However, it has the same basename, so the bogon will be chosen
3005 # first if we set CC to just the basename; use the full file name.
3006 shift
3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 fi
3009fi
3010fi
3011fi
3012CC=$ac_cv_prog_CC
3013if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015$as_echo "$CC" >&6; }
3016else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018$as_echo "no" >&6; }
3019fi
3020
3021
3022fi
3023if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 for ac_prog in cl.exe
3026 do
3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
3031if ${ac_cv_prog_CC+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048done
3049 done
3050IFS=$as_save_IFS
3051
3052fi
3053fi
3054CC=$ac_cv_prog_CC
3055if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057$as_echo "$CC" >&6; }
3058else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060$as_echo "no" >&6; }
3061fi
3062
3063
3064 test -n "$CC" && break
3065 done
3066fi
3067if test -z "$CC"; then
3068 ac_ct_CC=$CC
3069 for ac_prog in cl.exe
3070do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072set dummy $ac_prog; ac_word=$2
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074$as_echo_n "checking for $ac_word... " >&6; }
3075if ${ac_cv_prog_ac_ct_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077else
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_CC="$ac_prog"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093 done
3094IFS=$as_save_IFS
3095
3096fi
3097fi
3098ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099if test -n "$ac_ct_CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3101$as_echo "$ac_ct_CC" >&6; }
3102else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105fi
3106
3107
3108 test -n "$ac_ct_CC" && break
3109done
3110
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115yes:)
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118ac_tool_warned=yes ;;
3119esac
3120 CC=$ac_ct_CC
3121 fi
3122fi
3123
3124fi
3125
3126
3127test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129as_fn_error $? "no acceptable C compiler found in \$PATH
3130See \`config.log' for more details" "$LINENO" 5; }
3131
3132# Provide some information about the compiler.
3133$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3134set X $ac_compile
3135ac_compiler=$2
3136for ac_option in --version -v -V -qversion; do
3137 { { ac_try="$ac_compiler $ac_option >&5"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3145 ac_status=$?
3146 if test -s conftest.err; then
3147 sed '10a\
3148... rest of stderr output deleted ...
3149 10q' conftest.err >conftest.er1
3150 cat conftest.er1 >&5
3151 fi
3152 rm -f conftest.er1 conftest.err
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155done
3156
3157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168ac_clean_files_save=$ac_clean_files
3169ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3170# Try to create an executable without -o first, disregard a.out.
3171# It will help us diagnose broken compilers, and finding out an intuition
3172# of exeext.
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3174$as_echo_n "checking whether the C compiler works... " >&6; }
3175ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176
3177# The possible output files:
3178ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3179
3180ac_rmfiles=
3181for ac_file in $ac_files
3182do
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3185 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3186 esac
3187done
3188rm -f $ac_rmfiles
3189
3190if { { ac_try="$ac_link_default"
3191case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194esac
3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196$as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link_default") 2>&5
3198 ac_status=$?
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
3201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203# in a Makefile. We should not override ac_cv_exeext if it was cached,
3204# so that the user can short-circuit this test for compilers unknown to
3205# Autoconf.
3206for ac_file in $ac_files ''
3207do
3208 test -f "$ac_file" || continue
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3211 ;;
3212 [ab].out )
3213 # We found the default executable, but exeext='' is most
3214 # certainly right.
3215 break;;
3216 *.* )
3217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218 then :; else
3219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 fi
3221 # We set ac_cv_exeext here because the later test for it is not
3222 # safe: cross compilers may not add the suffix if given an `-o'
3223 # argument, so we may need to know it at that point already.
3224 # Even if this section looks crufty: it has the advantage of
3225 # actually working.
3226 break;;
3227 * )
3228 break;;
3229 esac
3230done
3231test "$ac_cv_exeext" = no && ac_cv_exeext=
3232
3233else
3234 ac_file=''
3235fi
3236if test -z "$ac_file"; then :
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239$as_echo "$as_me: failed program was:" >&5
3240sed 's/^/| /' conftest.$ac_ext >&5
3241
3242{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244as_fn_error 77 "C compiler cannot create executables
3245See \`config.log' for more details" "$LINENO" 5; }
3246else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248$as_echo "yes" >&6; }
3249fi
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3251$as_echo_n "checking for C compiler default output file name... " >&6; }
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3253$as_echo "$ac_file" >&6; }
3254ac_exeext=$ac_cv_exeext
3255
3256rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3257ac_clean_files=$ac_clean_files_save
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3259$as_echo_n "checking for suffix of executables... " >&6; }
3260if { { ac_try="$ac_link"
3261case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_link") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; then :
3271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3273# work properly (i.e., refer to `conftest.exe'), while it won't with
3274# `rm'.
3275for ac_file in conftest.exe conftest conftest.*; do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 break;;
3281 * ) break;;
3282 esac
3283done
3284else
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3288See \`config.log' for more details" "$LINENO" 5; }
3289fi
3290rm -f conftest conftest$ac_cv_exeext
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3292$as_echo "$ac_cv_exeext" >&6; }
3293
3294rm -f conftest.$ac_ext
3295EXEEXT=$ac_cv_exeext
3296ac_exeext=$EXEEXT
3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298/* end confdefs.h. */
3299#include <stdio.h>
3300int
3301main ()
3302{
3303FILE *f = fopen ("conftest.out", "w");
3304 return ferror (f) || fclose (f) != 0;
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310ac_clean_files="$ac_clean_files conftest.out"
3311# Check that the compiler produces executables we can run. If not, either
3312# the compiler is broken, or we cross compile.
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3314$as_echo_n "checking whether we are cross compiling... " >&6; }
3315if test "$cross_compiling" != yes; then
3316 { { ac_try="$ac_link"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }
3327 if { ac_try='./conftest$ac_cv_exeext'
3328 { { case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331esac
3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333$as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_try") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; }; then
3338 cross_compiling=no
3339 else
3340 if test "$cross_compiling" = maybe; then
3341 cross_compiling=yes
3342 else
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345as_fn_error $? "cannot run C compiled programs.
3346If you meant to cross compile, use \`--host'.
3347See \`config.log' for more details" "$LINENO" 5; }
3348 fi
3349 fi
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3352$as_echo "$cross_compiling" >&6; }
3353
3354rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3355ac_clean_files=$ac_clean_files_save
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3357$as_echo_n "checking for suffix of object files... " >&6; }
3358if ${ac_cv_objext+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360else
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h. */
3363
3364int
3365main ()
3366{
3367
3368 ;
3369 return 0;
3370}
3371_ACEOF
3372rm -f conftest.o conftest.obj
3373if { { ac_try="$ac_compile"
3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379$as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compile") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; then :
3384 for ac_file in conftest.o conftest.obj conftest.*; do
3385 test -f "$ac_file" || continue;
3386 case $ac_file in
3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3388 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3389 break;;
3390 esac
3391done
3392else
3393 $as_echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398as_fn_error $? "cannot compute suffix of object files: cannot compile
3399See \`config.log' for more details" "$LINENO" 5; }
3400fi
3401rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402fi
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3404$as_echo "$ac_cv_objext" >&6; }
3405OBJEXT=$ac_cv_objext
3406ac_objext=$OBJEXT
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3408$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3409if ${ac_cv_c_compiler_gnu+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411else
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h. */
3414
3415int
3416main ()
3417{
3418#ifndef __GNUC__
3419 choke me
3420#endif
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
3426if ac_fn_c_try_compile "$LINENO"; then :
3427 ac_compiler_gnu=yes
3428else
3429 ac_compiler_gnu=no
3430fi
3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432ac_cv_c_compiler_gnu=$ac_compiler_gnu
3433
3434fi
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3436$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3437if test $ac_compiler_gnu = yes; then
3438 GCC=yes
3439else
3440 GCC=
3441fi
3442ac_test_CFLAGS=${CFLAGS+set}
3443ac_save_CFLAGS=$CFLAGS
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3445$as_echo_n "checking whether $CC accepts -g... " >&6; }
3446if ${ac_cv_prog_cc_g+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448else
3449 ac_save_c_werror_flag=$ac_c_werror_flag
3450 ac_c_werror_flag=yes
3451 ac_cv_prog_cc_g=no
3452 CFLAGS="-g"
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454/* end confdefs.h. */
3455
3456int
3457main ()
3458{
3459
3460 ;
3461 return 0;
3462}
3463_ACEOF
3464if ac_fn_c_try_compile "$LINENO"; then :
3465 ac_cv_prog_cc_g=yes
3466else
3467 CFLAGS=""
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h. */
3470
3471int
3472main ()
3473{
3474
3475 ;
3476 return 0;
3477}
3478_ACEOF
3479if ac_fn_c_try_compile "$LINENO"; then :
3480
3481else
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3483 CFLAGS="-g"
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h. */
3486
3487int
3488main ()
3489{
3490
3491 ;
3492 return 0;
3493}
3494_ACEOF
3495if ac_fn_c_try_compile "$LINENO"; then :
3496 ac_cv_prog_cc_g=yes
3497fi
3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499fi
3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501fi
3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_c_werror_flag=$ac_save_c_werror_flag
3504fi
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3506$as_echo "$ac_cv_prog_cc_g" >&6; }
3507if test "$ac_test_CFLAGS" = set; then
3508 CFLAGS=$ac_save_CFLAGS
3509elif test $ac_cv_prog_cc_g = yes; then
3510 if test "$GCC" = yes; then
3511 CFLAGS="-g -O2"
3512 else
3513 CFLAGS="-g"
3514 fi
3515else
3516 if test "$GCC" = yes; then
3517 CFLAGS="-O2"
3518 else
3519 CFLAGS=
3520 fi
3521fi
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3523$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3524if ${ac_cv_prog_cc_c89+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526else
3527 ac_cv_prog_cc_c89=no
3528ac_save_CC=$CC
3529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530/* end confdefs.h. */
3531#include <stdarg.h>
3532#include <stdio.h>
3533struct stat;
3534/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3535struct buf { int x; };
3536FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537static char *e (p, i)
3538 char **p;
3539 int i;
3540{
3541 return p[i];
3542}
3543static char *f (char * (*g) (char **, int), char **p, ...)
3544{
3545 char *s;
3546 va_list v;
3547 va_start (v,p);
3548 s = g (p, va_arg (v,int));
3549 va_end (v);
3550 return s;
3551}
3552
3553/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3554 function prototypes and stuff, but not '\xHH' hex character constants.
3555 These don't provoke an error unfortunately, instead are silently treated
3556 as 'x'. The following induces an error, until -std is added to get
3557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3558 array size at least. It's necessary to write '\x00'==0 to get something
3559 that's true only with -std. */
3560int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561
3562/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563 inside strings and character constants. */
3564#define FOO(x) 'x'
3565int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566
3567int test (int i, double x);
3568struct s1 {int (*f) (int a);};
3569struct s2 {int (*f) (double a);};
3570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571int argc;
3572char **argv;
3573int
3574main ()
3575{
3576return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 ;
3578 return 0;
3579}
3580_ACEOF
3581for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583do
3584 CC="$ac_save_CC $ac_arg"
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586 ac_cv_prog_cc_c89=$ac_arg
3587fi
3588rm -f core conftest.err conftest.$ac_objext
3589 test "x$ac_cv_prog_cc_c89" != "xno" && break
3590done
3591rm -f conftest.$ac_ext
3592CC=$ac_save_CC
3593
3594fi
3595# AC_CACHE_VAL
3596case "x$ac_cv_prog_cc_c89" in
3597 x)
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599$as_echo "none needed" >&6; } ;;
3600 xno)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3602$as_echo "unsupported" >&6; } ;;
3603 *)
3604 CC="$CC $ac_cv_prog_cc_c89"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3606$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3607esac
3608if test "x$ac_cv_prog_cc_c89" != xno; then :
3609
3610fi
3611
3612ac_ext=c
3613ac_cpp='$CPP $CPPFLAGS'
3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618depcc="$CC" am_compiler_list=
3619
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3621$as_echo_n "checking dependency style of $depcc... " >&6; }
3622if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624else
3625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3626 # We make a subdir and do the tests there. Otherwise we can end up
3627 # making bogus files that we don't know about and never remove. For
3628 # instance it was reported that on HP-UX the gcc test will end up
3629 # making a dummy file named 'D' -- because '-MD' means "put the output
3630 # in D".
3631 rm -rf conftest.dir
3632 mkdir conftest.dir
3633 # Copy depcomp to subdir because otherwise we won't find it if we're
3634 # using a relative directory.
3635 cp "$am_depcomp" conftest.dir
3636 cd conftest.dir
3637 # We will build objects and dependencies in a subdirectory because
3638 # it helps to detect inapplicable dependency modes. For instance
3639 # both Tru64's cc and ICC support -MD to output dependencies as a
3640 # side effect of compilation, but ICC will put the dependencies in
3641 # the current directory while Tru64 will put them in the object
3642 # directory.
3643 mkdir sub
3644
3645 am_cv_CC_dependencies_compiler_type=none
3646 if test "$am_compiler_list" = ""; then
3647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3648 fi
3649 am__universal=false
3650 case " $depcc " in #(
3651 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3652 esac
3653
3654 for depmode in $am_compiler_list; do
3655 # Setup a source with many dependencies, because some compilers
3656 # like to wrap large dependency lists on column 80 (with \), and
3657 # we should not choose a depcomp mode which is confused by this.
3658 #
3659 # We need to recreate these files for each test, as the compiler may
3660 # overwrite some of them when testing with obscure command lines.
3661 # This happens at least with the AIX C compiler.
3662 : > sub/conftest.c
3663 for i in 1 2 3 4 5 6; do
3664 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3665 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3666 # Solaris 10 /bin/sh.
3667 echo '/* dummy */' > sub/conftst$i.h
3668 done
3669 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3670
3671 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3672 # mode. It turns out that the SunPro C++ compiler does not properly
3673 # handle '-M -o', and we need to detect this. Also, some Intel
3674 # versions had trouble with output in subdirs.
3675 am__obj=sub/conftest.${OBJEXT-o}
3676 am__minus_obj="-o $am__obj"
3677 case $depmode in
3678 gcc)
3679 # This depmode causes a compiler race in universal mode.
3680 test "$am__universal" = false || continue
3681 ;;
3682 nosideeffect)
3683 # After this tag, mechanisms are not by side-effect, so they'll
3684 # only be used when explicitly requested.
3685 if test "x$enable_dependency_tracking" = xyes; then
3686 continue
3687 else
3688 break
3689 fi
3690 ;;
3691 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3692 # This compiler won't grok '-c -o', but also, the minuso test has
3693 # not run yet. These depmodes are late enough in the game, and
3694 # so weak that their functioning should not be impacted.
3695 am__obj=conftest.${OBJEXT-o}
3696 am__minus_obj=
3697 ;;
3698 none) break ;;
3699 esac
3700 if depmode=$depmode \
3701 source=sub/conftest.c object=$am__obj \
3702 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3703 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3704 >/dev/null 2>conftest.err &&
3705 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3707 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3709 # icc doesn't choke on unknown options, it will just issue warnings
3710 # or remarks (even with -Werror). So we grep stderr for any message
3711 # that says an option was ignored or not supported.
3712 # When given -MP, icc 7.0 and 7.1 complain thusly:
3713 # icc: Command line warning: ignoring option '-M'; no argument required
3714 # The diagnosis changed in icc 8.0:
3715 # icc: Command line remark: option '-MP' not supported
3716 if (grep 'ignoring option' conftest.err ||
3717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3718 am_cv_CC_dependencies_compiler_type=$depmode
3719 break
3720 fi
3721 fi
3722 done
3723
3724 cd ..
3725 rm -rf conftest.dir
3726else
3727 am_cv_CC_dependencies_compiler_type=none
3728fi
3729
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3732$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3733CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3734
3735 if
3736 test "x$enable_dependency_tracking" != xno \
3737 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3738 am__fastdepCC_TRUE=
3739 am__fastdepCC_FALSE='#'
3740else
3741 am__fastdepCC_TRUE='#'
3742 am__fastdepCC_FALSE=
3743fi
3744
3745
3746
3747if test -n "$ac_tool_prefix"; then
3748 for ac_prog in ar lib "link -lib"
3749 do
3750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753$as_echo_n "checking for $ac_word... " >&6; }
3754if ${ac_cv_prog_AR+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756else
3757 if test -n "$AR"; then
3758 ac_cv_prog_AR="$AR" # Let the user override the test.
3759else
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771done
3772 done
3773IFS=$as_save_IFS
3774
3775fi
3776fi
3777AR=$ac_cv_prog_AR
3778if test -n "$AR"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3780$as_echo "$AR" >&6; }
3781else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783$as_echo "no" >&6; }
3784fi
3785
3786
3787 test -n "$AR" && break
3788 done
3789fi
3790if test -z "$AR"; then
3791 ac_ct_AR=$AR
3792 for ac_prog in ar lib "link -lib"
3793do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795set dummy $ac_prog; ac_word=$2
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797$as_echo_n "checking for $ac_word... " >&6; }
3798if ${ac_cv_prog_ac_ct_AR+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800else
3801 if test -n "$ac_ct_AR"; then
3802 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_ac_ct_AR="$ac_prog"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816 done
3817IFS=$as_save_IFS
3818
3819fi
3820fi
3821ac_ct_AR=$ac_cv_prog_ac_ct_AR
3822if test -n "$ac_ct_AR"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3824$as_echo "$ac_ct_AR" >&6; }
3825else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
3828fi
3829
3830
3831 test -n "$ac_ct_AR" && break
3832done
3833
3834 if test "x$ac_ct_AR" = x; then
3835 AR="false"
3836 else
3837 case $cross_compiling:$ac_tool_warned in
3838yes:)
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3841ac_tool_warned=yes ;;
3842esac
3843 AR=$ac_ct_AR
3844 fi
3845fi
3846
3847: ${AR=ar}
3848
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3850$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3851if ${am_cv_ar_interface+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853else
3854 am_cv_ar_interface=ar
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h. */
3857int some_variable = 0;
3858_ACEOF
3859if ac_fn_c_try_compile "$LINENO"; then :
3860 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3862 (eval $am_ar_try) 2>&5
3863 ac_status=$?
3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865 test $ac_status = 0; }
3866 if test "$ac_status" -eq 0; then
3867 am_cv_ar_interface=ar
3868 else
3869 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3871 (eval $am_ar_try) 2>&5
3872 ac_status=$?
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }
3875 if test "$ac_status" -eq 0; then
3876 am_cv_ar_interface=lib
3877 else
3878 am_cv_ar_interface=unknown
3879 fi
3880 fi
3881 rm -f conftest.lib libconftest.a
3882
3883fi
3884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885
3886fi
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3888$as_echo "$am_cv_ar_interface" >&6; }
3889
3890case $am_cv_ar_interface in
3891ar)
3892 ;;
3893lib)
3894 # Microsoft lib, so override with the ar-lib wrapper script.
3895 # FIXME: It is wrong to rewrite AR.
3896 # But if we don't then we get into trouble of one sort or another.
3897 # A longer-term fix would be to have automake use am__AR in this case,
3898 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3899 # similar.
3900 AR="$am_aux_dir/ar-lib $AR"
3901 ;;
3902unknown)
3903 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3904 ;;
3905esac
3906
3907
3908MAJ_VERSION=3
3909
3910MIN_VERSION=2
3911
3912MIC_VERSION=25
3913
3914LIBNL_GIT_SHA=dcc537597728c84d47fe9aff32b982c72055a1ad
3915
3916LIBNL_VERSION=3.2.25
3917
3918
3919LT_CURRENT=220
3920
3921LT_REVISION=0
3922
3923LT_AGE=20
3924
3925
3926ac_ext=c
3927ac_cpp='$CPP $CPPFLAGS'
3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931if test -n "$ac_tool_prefix"; then
3932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3933set dummy ${ac_tool_prefix}gcc; ac_word=$2
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935$as_echo_n "checking for $ac_word... " >&6; }
3936if ${ac_cv_prog_CC+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938else
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3941else
3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH
3944do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3952 fi
3953done
3954 done
3955IFS=$as_save_IFS
3956
3957fi
3958fi
3959CC=$ac_cv_prog_CC
3960if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962$as_echo "$CC" >&6; }
3963else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
3966fi
3967
3968
3969fi
3970if test -z "$ac_cv_prog_CC"; then
3971 ac_ct_CC=$CC
3972 # Extract the first word of "gcc", so it can be a program name with args.
3973set dummy gcc; ac_word=$2
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975$as_echo_n "checking for $ac_word... " >&6; }
3976if ${ac_cv_prog_ac_ct_CC+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978else
3979 if test -n "$ac_ct_CC"; then
3980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3981else
3982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_ac_ct_CC="gcc"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993done
3994 done
3995IFS=$as_save_IFS
3996
3997fi
3998fi
3999ac_ct_CC=$ac_cv_prog_ac_ct_CC
4000if test -n "$ac_ct_CC"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4002$as_echo "$ac_ct_CC" >&6; }
4003else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005$as_echo "no" >&6; }
4006fi
4007
4008 if test "x$ac_ct_CC" = x; then
4009 CC=""
4010 else
4011 case $cross_compiling:$ac_tool_warned in
4012yes:)
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4015ac_tool_warned=yes ;;
4016esac
4017 CC=$ac_ct_CC
4018 fi
4019else
4020 CC="$ac_cv_prog_CC"
4021fi
4022
4023if test -z "$CC"; then
4024 if test -n "$ac_tool_prefix"; then
4025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4026set dummy ${ac_tool_prefix}cc; ac_word=$2
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028$as_echo_n "checking for $ac_word... " >&6; }
4029if ${ac_cv_prog_CC+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031else
4032 if test -n "$CC"; then
4033 ac_cv_prog_CC="$CC" # Let the user override the test.
4034else
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_CC="${ac_tool_prefix}cc"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046done
4047 done
4048IFS=$as_save_IFS
4049
4050fi
4051fi
4052CC=$ac_cv_prog_CC
4053if test -n "$CC"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4055$as_echo "$CC" >&6; }
4056else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058$as_echo "no" >&6; }
4059fi
4060
4061
4062 fi
4063fi
4064if test -z "$CC"; then
4065 # Extract the first word of "cc", so it can be a program name with args.
4066set dummy cc; ac_word=$2
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
4069if ${ac_cv_prog_CC+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071else
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074else
4075 ac_prog_rejected=no
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4084 ac_prog_rejected=yes
4085 continue
4086 fi
4087 ac_cv_prog_CC="cc"
4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 break 2
4090 fi
4091done
4092 done
4093IFS=$as_save_IFS
4094
4095if test $ac_prog_rejected = yes; then
4096 # We found a bogon in the path, so make sure we never use it.
4097 set dummy $ac_cv_prog_CC
4098 shift
4099 if test $# != 0; then
4100 # We chose a different compiler from the bogus one.
4101 # However, it has the same basename, so the bogon will be chosen
4102 # first if we set CC to just the basename; use the full file name.
4103 shift
4104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4105 fi
4106fi
4107fi
4108fi
4109CC=$ac_cv_prog_CC
4110if test -n "$CC"; then
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4112$as_echo "$CC" >&6; }
4113else
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115$as_echo "no" >&6; }
4116fi
4117
4118
4119fi
4120if test -z "$CC"; then
4121 if test -n "$ac_tool_prefix"; then
4122 for ac_prog in cl.exe
4123 do
4124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127$as_echo_n "checking for $ac_word... " >&6; }
4128if ${ac_cv_prog_CC+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130else
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4133else
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145done
4146 done
4147IFS=$as_save_IFS
4148
4149fi
4150fi
4151CC=$ac_cv_prog_CC
4152if test -n "$CC"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4154$as_echo "$CC" >&6; }
4155else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157$as_echo "no" >&6; }
4158fi
4159
4160
4161 test -n "$CC" && break
4162 done
4163fi
4164if test -z "$CC"; then
4165 ac_ct_CC=$CC
4166 for ac_prog in cl.exe
4167do
4168 # Extract the first word of "$ac_prog", so it can be a program name with args.
4169set dummy $ac_prog; ac_word=$2
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171$as_echo_n "checking for $ac_word... " >&6; }
4172if ${ac_cv_prog_ac_ct_CC+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174else
4175 if test -n "$ac_ct_CC"; then
4176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4177else
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_ac_ct_CC="$ac_prog"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4188 fi
4189done
4190 done
4191IFS=$as_save_IFS
4192
4193fi
4194fi
4195ac_ct_CC=$ac_cv_prog_ac_ct_CC
4196if test -n "$ac_ct_CC"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4198$as_echo "$ac_ct_CC" >&6; }
4199else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201$as_echo "no" >&6; }
4202fi
4203
4204
4205 test -n "$ac_ct_CC" && break
4206done
4207
4208 if test "x$ac_ct_CC" = x; then
4209 CC=""
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212yes:)
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215ac_tool_warned=yes ;;
4216esac
4217 CC=$ac_ct_CC
4218 fi
4219fi
4220
4221fi
4222
4223
4224test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226as_fn_error $? "no acceptable C compiler found in \$PATH
4227See \`config.log' for more details" "$LINENO" 5; }
4228
4229# Provide some information about the compiler.
4230$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4231set X $ac_compile
4232ac_compiler=$2
4233for ac_option in --version -v -V -qversion; do
4234 { { ac_try="$ac_compiler $ac_option >&5"
4235case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240$as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4242 ac_status=$?
4243 if test -s conftest.err; then
4244 sed '10a\
4245... rest of stderr output deleted ...
4246 10q' conftest.err >conftest.er1
4247 cat conftest.er1 >&5
4248 fi
4249 rm -f conftest.er1 conftest.err
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }
4252done
4253
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4255$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4256if ${ac_cv_c_compiler_gnu+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258else
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h. */
4261
4262int
4263main ()
4264{
4265#ifndef __GNUC__
4266 choke me
4267#endif
4268
4269 ;
4270 return 0;
4271}
4272_ACEOF
4273if ac_fn_c_try_compile "$LINENO"; then :
4274 ac_compiler_gnu=yes
4275else
4276 ac_compiler_gnu=no
4277fi
4278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279ac_cv_c_compiler_gnu=$ac_compiler_gnu
4280
4281fi
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4283$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4284if test $ac_compiler_gnu = yes; then
4285 GCC=yes
4286else
4287 GCC=
4288fi
4289ac_test_CFLAGS=${CFLAGS+set}
4290ac_save_CFLAGS=$CFLAGS
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4292$as_echo_n "checking whether $CC accepts -g... " >&6; }
4293if ${ac_cv_prog_cc_g+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295else
4296 ac_save_c_werror_flag=$ac_c_werror_flag
4297 ac_c_werror_flag=yes
4298 ac_cv_prog_cc_g=no
4299 CFLAGS="-g"
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h. */
4302
4303int
4304main ()
4305{
4306
4307 ;
4308 return 0;
4309}
4310_ACEOF
4311if ac_fn_c_try_compile "$LINENO"; then :
4312 ac_cv_prog_cc_g=yes
4313else
4314 CFLAGS=""
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h. */
4317
4318int
4319main ()
4320{
4321
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326if ac_fn_c_try_compile "$LINENO"; then :
4327
4328else
4329 ac_c_werror_flag=$ac_save_c_werror_flag
4330 CFLAGS="-g"
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h. */
4333
4334int
4335main ()
4336{
4337
4338 ;
4339 return 0;
4340}
4341_ACEOF
4342if ac_fn_c_try_compile "$LINENO"; then :
4343 ac_cv_prog_cc_g=yes
4344fi
4345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346fi
4347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348fi
4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_c_werror_flag=$ac_save_c_werror_flag
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4353$as_echo "$ac_cv_prog_cc_g" >&6; }
4354if test "$ac_test_CFLAGS" = set; then
4355 CFLAGS=$ac_save_CFLAGS
4356elif test $ac_cv_prog_cc_g = yes; then
4357 if test "$GCC" = yes; then
4358 CFLAGS="-g -O2"
4359 else
4360 CFLAGS="-g"
4361 fi
4362else
4363 if test "$GCC" = yes; then
4364 CFLAGS="-O2"
4365 else
4366 CFLAGS=
4367 fi
4368fi
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4370$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4371if ${ac_cv_prog_cc_c89+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373else
4374 ac_cv_prog_cc_c89=no
4375ac_save_CC=$CC
4376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h. */
4378#include <stdarg.h>
4379#include <stdio.h>
4380struct stat;
4381/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4382struct buf { int x; };
4383FILE * (*rcsopen) (struct buf *, struct stat *, int);
4384static char *e (p, i)
4385 char **p;
4386 int i;
4387{
4388 return p[i];
4389}
4390static char *f (char * (*g) (char **, int), char **p, ...)
4391{
4392 char *s;
4393 va_list v;
4394 va_start (v,p);
4395 s = g (p, va_arg (v,int));
4396 va_end (v);
4397 return s;
4398}
4399
4400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4401 function prototypes and stuff, but not '\xHH' hex character constants.
4402 These don't provoke an error unfortunately, instead are silently treated
4403 as 'x'. The following induces an error, until -std is added to get
4404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4405 array size at least. It's necessary to write '\x00'==0 to get something
4406 that's true only with -std. */
4407int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4408
4409/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4410 inside strings and character constants. */
4411#define FOO(x) 'x'
4412int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4413
4414int test (int i, double x);
4415struct s1 {int (*f) (int a);};
4416struct s2 {int (*f) (double a);};
4417int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4418int argc;
4419char **argv;
4420int
4421main ()
4422{
4423return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4424 ;
4425 return 0;
4426}
4427_ACEOF
4428for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4429 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4430do
4431 CC="$ac_save_CC $ac_arg"
4432 if ac_fn_c_try_compile "$LINENO"; then :
4433 ac_cv_prog_cc_c89=$ac_arg
4434fi
4435rm -f core conftest.err conftest.$ac_objext
4436 test "x$ac_cv_prog_cc_c89" != "xno" && break
4437done
4438rm -f conftest.$ac_ext
4439CC=$ac_save_CC
4440
4441fi
4442# AC_CACHE_VAL
4443case "x$ac_cv_prog_cc_c89" in
4444 x)
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4446$as_echo "none needed" >&6; } ;;
4447 xno)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4449$as_echo "unsupported" >&6; } ;;
4450 *)
4451 CC="$CC $ac_cv_prog_cc_c89"
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4453$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4454esac
4455if test "x$ac_cv_prog_cc_c89" != xno; then :
4456
4457fi
4458
4459ac_ext=c
4460ac_cpp='$CPP $CPPFLAGS'
4461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464
4465depcc="$CC" am_compiler_list=
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4468$as_echo_n "checking dependency style of $depcc... " >&6; }
4469if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471else
4472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4473 # We make a subdir and do the tests there. Otherwise we can end up
4474 # making bogus files that we don't know about and never remove. For
4475 # instance it was reported that on HP-UX the gcc test will end up
4476 # making a dummy file named 'D' -- because '-MD' means "put the output
4477 # in D".
4478 rm -rf conftest.dir
4479 mkdir conftest.dir
4480 # Copy depcomp to subdir because otherwise we won't find it if we're
4481 # using a relative directory.
4482 cp "$am_depcomp" conftest.dir
4483 cd conftest.dir
4484 # We will build objects and dependencies in a subdirectory because
4485 # it helps to detect inapplicable dependency modes. For instance
4486 # both Tru64's cc and ICC support -MD to output dependencies as a
4487 # side effect of compilation, but ICC will put the dependencies in
4488 # the current directory while Tru64 will put them in the object
4489 # directory.
4490 mkdir sub
4491
4492 am_cv_CC_dependencies_compiler_type=none
4493 if test "$am_compiler_list" = ""; then
4494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4495 fi
4496 am__universal=false
4497 case " $depcc " in #(
4498 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4499 esac
4500
4501 for depmode in $am_compiler_list; do
4502 # Setup a source with many dependencies, because some compilers
4503 # like to wrap large dependency lists on column 80 (with \), and
4504 # we should not choose a depcomp mode which is confused by this.
4505 #
4506 # We need to recreate these files for each test, as the compiler may
4507 # overwrite some of them when testing with obscure command lines.
4508 # This happens at least with the AIX C compiler.
4509 : > sub/conftest.c
4510 for i in 1 2 3 4 5 6; do
4511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4512 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4513 # Solaris 10 /bin/sh.
4514 echo '/* dummy */' > sub/conftst$i.h
4515 done
4516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4517
4518 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4519 # mode. It turns out that the SunPro C++ compiler does not properly
4520 # handle '-M -o', and we need to detect this. Also, some Intel
4521 # versions had trouble with output in subdirs.
4522 am__obj=sub/conftest.${OBJEXT-o}
4523 am__minus_obj="-o $am__obj"
4524 case $depmode in
4525 gcc)
4526 # This depmode causes a compiler race in universal mode.
4527 test "$am__universal" = false || continue
4528 ;;
4529 nosideeffect)
4530 # After this tag, mechanisms are not by side-effect, so they'll
4531 # only be used when explicitly requested.
4532 if test "x$enable_dependency_tracking" = xyes; then
4533 continue
4534 else
4535 break
4536 fi
4537 ;;
4538 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4539 # This compiler won't grok '-c -o', but also, the minuso test has
4540 # not run yet. These depmodes are late enough in the game, and
4541 # so weak that their functioning should not be impacted.
4542 am__obj=conftest.${OBJEXT-o}
4543 am__minus_obj=
4544 ;;
4545 none) break ;;
4546 esac
4547 if depmode=$depmode \
4548 source=sub/conftest.c object=$am__obj \
4549 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4550 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4551 >/dev/null 2>conftest.err &&
4552 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4554 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4556 # icc doesn't choke on unknown options, it will just issue warnings
4557 # or remarks (even with -Werror). So we grep stderr for any message
4558 # that says an option was ignored or not supported.
4559 # When given -MP, icc 7.0 and 7.1 complain thusly:
4560 # icc: Command line warning: ignoring option '-M'; no argument required
4561 # The diagnosis changed in icc 8.0:
4562 # icc: Command line remark: option '-MP' not supported
4563 if (grep 'ignoring option' conftest.err ||
4564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4565 am_cv_CC_dependencies_compiler_type=$depmode
4566 break
4567 fi
4568 fi
4569 done
4570
4571 cd ..
4572 rm -rf conftest.dir
4573else
4574 am_cv_CC_dependencies_compiler_type=none
4575fi
4576
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4579$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4580CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4581
4582 if
4583 test "x$enable_dependency_tracking" != xno \
4584 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4585 am__fastdepCC_TRUE=
4586 am__fastdepCC_FALSE='#'
4587else
4588 am__fastdepCC_TRUE='#'
4589 am__fastdepCC_FALSE=
4590fi
4591
4592
4593if test "x$CC" != xcc; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4595$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4596else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4598$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4599fi
4600set dummy $CC; ac_cc=`$as_echo "$2" |
4601 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4602if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606/* end confdefs.h. */
4607
4608int
4609main ()
4610{
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616# Make sure it works both with $CC and with simple cc.
4617# We do the test twice because some compilers refuse to overwrite an
4618# existing .o file with -o, though they will create one.
4619ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4620rm -f conftest2.*
4621if { { case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
4625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626$as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_try") 2>&5
4628 ac_status=$?
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; } &&
4631 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634esac
4635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636$as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; };
4641then
4642 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4643 if test "x$CC" != xcc; then
4644 # Test first that cc exists at all.
4645 if { ac_try='cc -c conftest.$ac_ext >&5'
4646 { { case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649esac
4650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651$as_echo "$ac_try_echo"; } >&5
4652 (eval "$ac_try") 2>&5
4653 ac_status=$?
4654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655 test $ac_status = 0; }; }; then
4656 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4657 rm -f conftest2.*
4658 if { { case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661esac
4662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663$as_echo "$ac_try_echo"; } >&5
4664 (eval "$ac_try") 2>&5
4665 ac_status=$?
4666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667 test $ac_status = 0; } &&
4668 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671esac
4672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673$as_echo "$ac_try_echo"; } >&5
4674 (eval "$ac_try") 2>&5
4675 ac_status=$?
4676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677 test $ac_status = 0; };
4678 then
4679 # cc works too.
4680 :
4681 else
4682 # cc exists but doesn't like -o.
4683 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4684 fi
4685 fi
4686 fi
4687else
4688 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4689fi
4690rm -f core conftest*
4691
4692fi
4693if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4695$as_echo "yes" >&6; }
4696else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698$as_echo "no" >&6; }
4699
4700$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4701
4702fi
4703
4704# FIXME: we rely on the cache variable name because
4705# there is no other way.
4706set dummy $CC
4707am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4708eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4709if test "$am_t" != yes; then
4710 # Losing compiler, so override with the script.
4711 # FIXME: It is wrong to rewrite CC.
4712 # But if we don't then we get into trouble of one sort or another.
4713 # A longer-term fix would be to have automake use am__CC in this case,
4714 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4715 CC="$am_aux_dir/compile $CC"
4716fi
4717
4718
4719
4720case `pwd` in
4721 *\ * | *\ *)
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4723$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4724esac
4725
4726
4727
4728macro_version='2.4.2'
4729macro_revision='1.3337'
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743ltmain="$ac_aux_dir/ltmain.sh"
4744
4745# Make sure we can run config.sub.
4746$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4750$as_echo_n "checking build system type... " >&6; }
4751if ${ac_cv_build+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753else
4754 ac_build_alias=$build_alias
4755test "x$ac_build_alias" = x &&
4756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4757test "x$ac_build_alias" = x &&
4758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4759ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4761
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4764$as_echo "$ac_cv_build" >&6; }
4765case $ac_cv_build in
4766*-*-*) ;;
4767*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4768esac
4769build=$ac_cv_build
4770ac_save_IFS=$IFS; IFS='-'
4771set x $ac_cv_build
4772shift
4773build_cpu=$1
4774build_vendor=$2
4775shift; shift
4776# Remember, the first character of IFS is used to create $*,
4777# except with old shells:
4778build_os=$*
4779IFS=$ac_save_IFS
4780case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4781
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4784$as_echo_n "checking host system type... " >&6; }
4785if ${ac_cv_host+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787else
4788 if test "x$host_alias" = x; then
4789 ac_cv_host=$ac_cv_build
4790else
4791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4793fi
4794
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4797$as_echo "$ac_cv_host" >&6; }
4798case $ac_cv_host in
4799*-*-*) ;;
4800*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4801esac
4802host=$ac_cv_host
4803ac_save_IFS=$IFS; IFS='-'
4804set x $ac_cv_host
4805shift
4806host_cpu=$1
4807host_vendor=$2
4808shift; shift
4809# Remember, the first character of IFS is used to create $*,
4810# except with old shells:
4811host_os=$*
4812IFS=$ac_save_IFS
4813case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4814
4815
4816# Backslashify metacharacters that are still active within
4817# double-quoted strings.
4818sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4819
4820# Same as above, but do not quote variable references.
4821double_quote_subst='s/\(["`\\]\)/\\\1/g'
4822
4823# Sed substitution to delay expansion of an escaped shell variable in a
4824# double_quote_subst'ed string.
4825delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4826
4827# Sed substitution to delay expansion of an escaped single quote.
4828delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4829
4830# Sed substitution to avoid accidental globbing in evaled expressions
4831no_glob_subst='s/\*/\\\*/g'
4832
4833ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4834ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4835ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4836
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4838$as_echo_n "checking how to print strings... " >&6; }
4839# Test print first, because it will be a builtin if present.
4840if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4841 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4842 ECHO='print -r --'
4843elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4844 ECHO='printf %s\n'
4845else
4846 # Use this function as a fallback that always works.
4847 func_fallback_echo ()
4848 {
4849 eval 'cat <<_LTECHO_EOF
4850$1
4851_LTECHO_EOF'
4852 }
4853 ECHO='func_fallback_echo'
4854fi
4855
4856# func_echo_all arg...
4857# Invoke $ECHO with all args, space-separated.
4858func_echo_all ()
4859{
4860 $ECHO ""
4861}
4862
4863case "$ECHO" in
4864 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4865$as_echo "printf" >&6; } ;;
4866 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4867$as_echo "print -r" >&6; } ;;
4868 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4869$as_echo "cat" >&6; } ;;
4870esac
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4886$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4887if ${ac_cv_path_SED+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889else
4890 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4891 for ac_i in 1 2 3 4 5 6 7; do
4892 ac_script="$ac_script$as_nl$ac_script"
4893 done
4894 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4895 { ac_script=; unset ac_script;}
4896 if test -z "$SED"; then
4897 ac_path_SED_found=false
4898 # Loop through the user's path and test for each of PROGNAME-LIST
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_prog in sed gsed; do
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4907 as_fn_executable_p "$ac_path_SED" || continue
4908# Check for GNU ac_path_SED and select it if it is found.
4909 # Check for GNU $ac_path_SED
4910case `"$ac_path_SED" --version 2>&1` in
4911*GNU*)
4912 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4913*)
4914 ac_count=0
4915 $as_echo_n 0123456789 >"conftest.in"
4916 while :
4917 do
4918 cat "conftest.in" "conftest.in" >"conftest.tmp"
4919 mv "conftest.tmp" "conftest.in"
4920 cp "conftest.in" "conftest.nl"
4921 $as_echo '' >> "conftest.nl"
4922 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4924 as_fn_arith $ac_count + 1 && ac_count=$as_val
4925 if test $ac_count -gt ${ac_path_SED_max-0}; then
4926 # Best one so far, save it but keep looking for a better one
4927 ac_cv_path_SED="$ac_path_SED"
4928 ac_path_SED_max=$ac_count
4929 fi
4930 # 10*(2^10) chars as input seems more than enough
4931 test $ac_count -gt 10 && break
4932 done
4933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4934esac
4935
4936 $ac_path_SED_found && break 3
4937 done
4938 done
4939 done
4940IFS=$as_save_IFS
4941 if test -z "$ac_cv_path_SED"; then
4942 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4943 fi
4944else
4945 ac_cv_path_SED=$SED
4946fi
4947
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4950$as_echo "$ac_cv_path_SED" >&6; }
4951 SED="$ac_cv_path_SED"
4952 rm -f conftest.sed
4953
4954test -z "$SED" && SED=sed
4955Xsed="$SED -e 1s/^X//"
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4968$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4969if ${ac_cv_path_GREP+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971else
4972 if test -z "$GREP"; then
4973 ac_path_GREP_found=false
4974 # Loop through the user's path and test for each of PROGNAME-LIST
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4977do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_prog in grep ggrep; do
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4983 as_fn_executable_p "$ac_path_GREP" || continue
4984# Check for GNU ac_path_GREP and select it if it is found.
4985 # Check for GNU $ac_path_GREP
4986case `"$ac_path_GREP" --version 2>&1` in
4987*GNU*)
4988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4989*)
4990 ac_count=0
4991 $as_echo_n 0123456789 >"conftest.in"
4992 while :
4993 do
4994 cat "conftest.in" "conftest.in" >"conftest.tmp"
4995 mv "conftest.tmp" "conftest.in"
4996 cp "conftest.in" "conftest.nl"
4997 $as_echo 'GREP' >> "conftest.nl"
4998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5000 as_fn_arith $ac_count + 1 && ac_count=$as_val
5001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5002 # Best one so far, save it but keep looking for a better one
5003 ac_cv_path_GREP="$ac_path_GREP"
5004 ac_path_GREP_max=$ac_count
5005 fi
5006 # 10*(2^10) chars as input seems more than enough
5007 test $ac_count -gt 10 && break
5008 done
5009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5010esac
5011
5012 $ac_path_GREP_found && break 3
5013 done
5014 done
5015 done
5016IFS=$as_save_IFS
5017 if test -z "$ac_cv_path_GREP"; then
5018 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5019 fi
5020else
5021 ac_cv_path_GREP=$GREP
5022fi
5023
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5026$as_echo "$ac_cv_path_GREP" >&6; }
5027 GREP="$ac_cv_path_GREP"
5028
5029
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5031$as_echo_n "checking for egrep... " >&6; }
5032if ${ac_cv_path_EGREP+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034else
5035 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5036 then ac_cv_path_EGREP="$GREP -E"
5037 else
5038 if test -z "$EGREP"; then
5039 ac_path_EGREP_found=false
5040 # Loop through the user's path and test for each of PROGNAME-LIST
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5043do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_prog in egrep; do
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5049 as_fn_executable_p "$ac_path_EGREP" || continue
5050# Check for GNU ac_path_EGREP and select it if it is found.
5051 # Check for GNU $ac_path_EGREP
5052case `"$ac_path_EGREP" --version 2>&1` in
5053*GNU*)
5054 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5055*)
5056 ac_count=0
5057 $as_echo_n 0123456789 >"conftest.in"
5058 while :
5059 do
5060 cat "conftest.in" "conftest.in" >"conftest.tmp"
5061 mv "conftest.tmp" "conftest.in"
5062 cp "conftest.in" "conftest.nl"
5063 $as_echo 'EGREP' >> "conftest.nl"
5064 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5066 as_fn_arith $ac_count + 1 && ac_count=$as_val
5067 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5068 # Best one so far, save it but keep looking for a better one
5069 ac_cv_path_EGREP="$ac_path_EGREP"
5070 ac_path_EGREP_max=$ac_count
5071 fi
5072 # 10*(2^10) chars as input seems more than enough
5073 test $ac_count -gt 10 && break
5074 done
5075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5076esac
5077
5078 $ac_path_EGREP_found && break 3
5079 done
5080 done
5081 done
5082IFS=$as_save_IFS
5083 if test -z "$ac_cv_path_EGREP"; then
5084 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5085 fi
5086else
5087 ac_cv_path_EGREP=$EGREP
5088fi
5089
5090 fi
5091fi
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5093$as_echo "$ac_cv_path_EGREP" >&6; }
5094 EGREP="$ac_cv_path_EGREP"
5095
5096
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5098$as_echo_n "checking for fgrep... " >&6; }
5099if ${ac_cv_path_FGREP+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101else
5102 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5103 then ac_cv_path_FGREP="$GREP -F"
5104 else
5105 if test -z "$FGREP"; then
5106 ac_path_FGREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in fgrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5116 as_fn_executable_p "$ac_path_FGREP" || continue
5117# Check for GNU ac_path_FGREP and select it if it is found.
5118 # Check for GNU $ac_path_FGREP
5119case `"$ac_path_FGREP" --version 2>&1` in
5120*GNU*)
5121 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5122*)
5123 ac_count=0
5124 $as_echo_n 0123456789 >"conftest.in"
5125 while :
5126 do
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'FGREP' >> "conftest.nl"
5131 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_FGREP="$ac_path_FGREP"
5137 ac_path_FGREP_max=$ac_count
5138 fi
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5141 done
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143esac
5144
5145 $ac_path_FGREP_found && break 3
5146 done
5147 done
5148 done
5149IFS=$as_save_IFS
5150 if test -z "$ac_cv_path_FGREP"; then
5151 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152 fi
5153else
5154 ac_cv_path_FGREP=$FGREP
5155fi
5156
5157 fi
5158fi
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5160$as_echo "$ac_cv_path_FGREP" >&6; }
5161 FGREP="$ac_cv_path_FGREP"
5162
5163
5164test -z "$GREP" && GREP=grep
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184# Check whether --with-gnu-ld was given.
5185if test "${with_gnu_ld+set}" = set; then :
5186 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5187else
5188 with_gnu_ld=no
5189fi
5190
5191ac_prog=ld
5192if test "$GCC" = yes; then
5193 # Check if gcc -print-prog-name=ld gives a path.
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5195$as_echo_n "checking for ld used by $CC... " >&6; }
5196 case $host in
5197 *-*-mingw*)
5198 # gcc leaves a trailing carriage return which upsets mingw
5199 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5200 *)
5201 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5202 esac
5203 case $ac_prog in
5204 # Accept absolute paths.
5205 [\\/]* | ?:[\\/]*)
5206 re_direlt='/[^/][^/]*/\.\./'
5207 # Canonicalize the pathname of ld
5208 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5209 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5210 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5211 done
5212 test -z "$LD" && LD="$ac_prog"
5213 ;;
5214 "")
5215 # If it fails, then pretend we aren't using GCC.
5216 ac_prog=ld
5217 ;;
5218 *)
5219 # If it is relative, then search for the first ld in PATH.
5220 with_gnu_ld=unknown
5221 ;;
5222 esac
5223elif test "$with_gnu_ld" = yes; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5225$as_echo_n "checking for GNU ld... " >&6; }
5226else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5228$as_echo_n "checking for non-GNU ld... " >&6; }
5229fi
5230if ${lt_cv_path_LD+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232else
5233 if test -z "$LD"; then
5234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5235 for ac_dir in $PATH; do
5236 IFS="$lt_save_ifs"
5237 test -z "$ac_dir" && ac_dir=.
5238 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5239 lt_cv_path_LD="$ac_dir/$ac_prog"
5240 # Check to see if the program is GNU ld. I'd rather use --version,
5241 # but apparently some variants of GNU ld only accept -v.
5242 # Break only if it was the GNU/non-GNU ld that we prefer.
5243 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5244 *GNU* | *'with BFD'*)
5245 test "$with_gnu_ld" != no && break
5246 ;;
5247 *)
5248 test "$with_gnu_ld" != yes && break
5249 ;;
5250 esac
5251 fi
5252 done
5253 IFS="$lt_save_ifs"
5254else
5255 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5256fi
5257fi
5258
5259LD="$lt_cv_path_LD"
5260if test -n "$LD"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5262$as_echo "$LD" >&6; }
5263else
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
5267test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5269$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5270if ${lt_cv_prog_gnu_ld+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272else
5273 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5274case `$LD -v 2>&1 </dev/null` in
5275*GNU* | *'with BFD'*)
5276 lt_cv_prog_gnu_ld=yes
5277 ;;
5278*)
5279 lt_cv_prog_gnu_ld=no
5280 ;;
5281esac
5282fi
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5284$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5285with_gnu_ld=$lt_cv_prog_gnu_ld
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5296$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5297if ${lt_cv_path_NM+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299else
5300 if test -n "$NM"; then
5301 # Let the user override the test.
5302 lt_cv_path_NM="$NM"
5303else
5304 lt_nm_to_check="${ac_tool_prefix}nm"
5305 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5306 lt_nm_to_check="$lt_nm_to_check nm"
5307 fi
5308 for lt_tmp_nm in $lt_nm_to_check; do
5309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5310 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5311 IFS="$lt_save_ifs"
5312 test -z "$ac_dir" && ac_dir=.
5313 tmp_nm="$ac_dir/$lt_tmp_nm"
5314 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5315 # Check to see if the nm accepts a BSD-compat flag.
5316 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5317 # nm: unknown option "B" ignored
5318 # Tru64's nm complains that /dev/null is an invalid object file
5319 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5320 */dev/null* | *'Invalid file or object type'*)
5321 lt_cv_path_NM="$tmp_nm -B"
5322 break
5323 ;;
5324 *)
5325 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5326 */dev/null*)
5327 lt_cv_path_NM="$tmp_nm -p"
5328 break
5329 ;;
5330 *)
5331 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5332 continue # so that we can try to find one that supports BSD flags
5333 ;;
5334 esac
5335 ;;
5336 esac
5337 fi
5338 done
5339 IFS="$lt_save_ifs"
5340 done
5341 : ${lt_cv_path_NM=no}
5342fi
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5345$as_echo "$lt_cv_path_NM" >&6; }
5346if test "$lt_cv_path_NM" != "no"; then
5347 NM="$lt_cv_path_NM"
5348else
5349 # Didn't find any BSD compatible name lister, look for dumpbin.
5350 if test -n "$DUMPBIN"; then :
5351 # Let the user override the test.
5352 else
5353 if test -n "$ac_tool_prefix"; then
5354 for ac_prog in dumpbin "link -dump"
5355 do
5356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5357set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359$as_echo_n "checking for $ac_word... " >&6; }
5360if ${ac_cv_prog_DUMPBIN+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362else
5363 if test -n "$DUMPBIN"; then
5364 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377done
5378 done
5379IFS=$as_save_IFS
5380
5381fi
5382fi
5383DUMPBIN=$ac_cv_prog_DUMPBIN
5384if test -n "$DUMPBIN"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5386$as_echo "$DUMPBIN" >&6; }
5387else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389$as_echo "no" >&6; }
5390fi
5391
5392
5393 test -n "$DUMPBIN" && break
5394 done
5395fi
5396if test -z "$DUMPBIN"; then
5397 ac_ct_DUMPBIN=$DUMPBIN
5398 for ac_prog in dumpbin "link -dump"
5399do
5400 # Extract the first word of "$ac_prog", so it can be a program name with args.
5401set dummy $ac_prog; ac_word=$2
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403$as_echo_n "checking for $ac_word... " >&6; }
5404if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406else
5407 if test -n "$ac_ct_DUMPBIN"; then
5408 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5409else
5410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411for as_dir in $PATH
5412do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421done
5422 done
5423IFS=$as_save_IFS
5424
5425fi
5426fi
5427ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5428if test -n "$ac_ct_DUMPBIN"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5430$as_echo "$ac_ct_DUMPBIN" >&6; }
5431else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433$as_echo "no" >&6; }
5434fi
5435
5436
5437 test -n "$ac_ct_DUMPBIN" && break
5438done
5439
5440 if test "x$ac_ct_DUMPBIN" = x; then
5441 DUMPBIN=":"
5442 else
5443 case $cross_compiling:$ac_tool_warned in
5444yes:)
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447ac_tool_warned=yes ;;
5448esac
5449 DUMPBIN=$ac_ct_DUMPBIN
5450 fi
5451fi
5452
5453 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5454 *COFF*)
5455 DUMPBIN="$DUMPBIN -symbols"
5456 ;;
5457 *)
5458 DUMPBIN=:
5459 ;;
5460 esac
5461 fi
5462
5463 if test "$DUMPBIN" != ":"; then
5464 NM="$DUMPBIN"
5465 fi
5466fi
5467test -z "$NM" && NM=nm
5468
5469
5470
5471
5472
5473
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5475$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5476if ${lt_cv_nm_interface+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478else
5479 lt_cv_nm_interface="BSD nm"
5480 echo "int some_variable = 0;" > conftest.$ac_ext
5481 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5482 (eval "$ac_compile" 2>conftest.err)
5483 cat conftest.err >&5
5484 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5485 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5486 cat conftest.err >&5
5487 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5488 cat conftest.out >&5
5489 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5490 lt_cv_nm_interface="MS dumpbin"
5491 fi
5492 rm -f conftest*
5493fi
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5495$as_echo "$lt_cv_nm_interface" >&6; }
5496
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5498$as_echo_n "checking whether ln -s works... " >&6; }
5499LN_S=$as_ln_s
5500if test "$LN_S" = "ln -s"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5502$as_echo "yes" >&6; }
5503else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5505$as_echo "no, using $LN_S" >&6; }
5506fi
5507
5508# find the maximum length of command line arguments
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5510$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5511if ${lt_cv_sys_max_cmd_len+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513else
5514 i=0
5515 teststring="ABCD"
5516
5517 case $build_os in
5518 msdosdjgpp*)
5519 # On DJGPP, this test can blow up pretty badly due to problems in libc
5520 # (any single argument exceeding 2000 bytes causes a buffer overrun
5521 # during glob expansion). Even if it were fixed, the result of this
5522 # check would be larger than it should be.
5523 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5524 ;;
5525
5526 gnu*)
5527 # Under GNU Hurd, this test is not required because there is
5528 # no limit to the length of command line arguments.
5529 # Libtool will interpret -1 as no limit whatsoever
5530 lt_cv_sys_max_cmd_len=-1;
5531 ;;
5532
5533 cygwin* | mingw* | cegcc*)
5534 # On Win9x/ME, this test blows up -- it succeeds, but takes
5535 # about 5 minutes as the teststring grows exponentially.
5536 # Worse, since 9x/ME are not pre-emptively multitasking,
5537 # you end up with a "frozen" computer, even though with patience
5538 # the test eventually succeeds (with a max line length of 256k).
5539 # Instead, let's just punt: use the minimum linelength reported by
5540 # all of the supported platforms: 8192 (on NT/2K/XP).
5541 lt_cv_sys_max_cmd_len=8192;
5542 ;;
5543
5544 mint*)
5545 # On MiNT this can take a long time and run out of memory.
5546 lt_cv_sys_max_cmd_len=8192;
5547 ;;
5548
5549 amigaos*)
5550 # On AmigaOS with pdksh, this test takes hours, literally.
5551 # So we just punt and use a minimum line length of 8192.
5552 lt_cv_sys_max_cmd_len=8192;
5553 ;;
5554
5555 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5556 # This has been around since 386BSD, at least. Likely further.
5557 if test -x /sbin/sysctl; then
5558 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5559 elif test -x /usr/sbin/sysctl; then
5560 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5561 else
5562 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5563 fi
5564 # And add a safety zone
5565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5567 ;;
5568
5569 interix*)
5570 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5571 lt_cv_sys_max_cmd_len=196608
5572 ;;
5573
5574 os2*)
5575 # The test takes a long time on OS/2.
5576 lt_cv_sys_max_cmd_len=8192
5577 ;;
5578
5579 osf*)
5580 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5581 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5582 # nice to cause kernel panics so lets avoid the loop below.
5583 # First set a reasonable default.
5584 lt_cv_sys_max_cmd_len=16384
5585 #
5586 if test -x /sbin/sysconfig; then
5587 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5588 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5589 esac
5590 fi
5591 ;;
5592 sco3.2v5*)
5593 lt_cv_sys_max_cmd_len=102400
5594 ;;
5595 sysv5* | sco5v6* | sysv4.2uw2*)
5596 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5597 if test -n "$kargmax"; then
5598 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5599 else
5600 lt_cv_sys_max_cmd_len=32768
5601 fi
5602 ;;
5603 *)
5604 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5605 if test -n "$lt_cv_sys_max_cmd_len"; then
5606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5608 else
5609 # Make teststring a little bigger before we do anything with it.
5610 # a 1K string should be a reasonable start.
5611 for i in 1 2 3 4 5 6 7 8 ; do
5612 teststring=$teststring$teststring
5613 done
5614 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5615 # If test is not a shell built-in, we'll probably end up computing a
5616 # maximum length that is only half of the actual maximum length, but
5617 # we can't tell.
5618 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5619 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5620 test $i != 17 # 1/2 MB should be enough
5621 do
5622 i=`expr $i + 1`
5623 teststring=$teststring$teststring
5624 done
5625 # Only check the string length outside the loop.
5626 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5627 teststring=
5628 # Add a significant safety factor because C++ compilers can tack on
5629 # massive amounts of additional arguments before passing them to the
5630 # linker. It appears as though 1/2 is a usable value.
5631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5632 fi
5633 ;;
5634 esac
5635
5636fi
5637
5638if test -n $lt_cv_sys_max_cmd_len ; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5640$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5641else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5643$as_echo "none" >&6; }
5644fi
5645max_cmd_len=$lt_cv_sys_max_cmd_len
5646
5647
5648
5649
5650
5651
5652: ${CP="cp -f"}
5653: ${MV="mv -f"}
5654: ${RM="rm -f"}
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5657$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5658# Try some XSI features
5659xsi_shell=no
5660( _lt_dummy="a/b/c"
5661 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5662 = c,a/b,b/c, \
5663 && eval 'test $(( 1 + 1 )) -eq 2 \
5664 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5665 && xsi_shell=yes
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5667$as_echo "$xsi_shell" >&6; }
5668
5669
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5671$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5672lt_shell_append=no
5673( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5674 >/dev/null 2>&1 \
5675 && lt_shell_append=yes
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5677$as_echo "$lt_shell_append" >&6; }
5678
5679
5680if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5681 lt_unset=unset
5682else
5683 lt_unset=false
5684fi
5685
5686
5687
5688
5689
5690# test EBCDIC or ASCII
5691case `echo X|tr X '\101'` in
5692 A) # ASCII based system
5693 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5694 lt_SP2NL='tr \040 \012'
5695 lt_NL2SP='tr \015\012 \040\040'
5696 ;;
5697 *) # EBCDIC based system
5698 lt_SP2NL='tr \100 \n'
5699 lt_NL2SP='tr \r\n \100\100'
5700 ;;
5701esac
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5712$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5713if ${lt_cv_to_host_file_cmd+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715else
5716 case $host in
5717 *-*-mingw* )
5718 case $build in
5719 *-*-mingw* ) # actually msys
5720 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5721 ;;
5722 *-*-cygwin* )
5723 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5724 ;;
5725 * ) # otherwise, assume *nix
5726 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5727 ;;
5728 esac
5729 ;;
5730 *-*-cygwin* )
5731 case $build in
5732 *-*-mingw* ) # actually msys
5733 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5734 ;;
5735 *-*-cygwin* )
5736 lt_cv_to_host_file_cmd=func_convert_file_noop
5737 ;;
5738 * ) # otherwise, assume *nix
5739 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5740 ;;
5741 esac
5742 ;;
5743 * ) # unhandled hosts (and "normal" native builds)
5744 lt_cv_to_host_file_cmd=func_convert_file_noop
5745 ;;
5746esac
5747
5748fi
5749
5750to_host_file_cmd=$lt_cv_to_host_file_cmd
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5752$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5753
5754
5755
5756
5757
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5759$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5760if ${lt_cv_to_tool_file_cmd+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762else
5763 #assume ordinary cross tools, or native build.
5764lt_cv_to_tool_file_cmd=func_convert_file_noop
5765case $host in
5766 *-*-mingw* )
5767 case $build in
5768 *-*-mingw* ) # actually msys
5769 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5770 ;;
5771 esac
5772 ;;
5773esac
5774
5775fi
5776
5777to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5779$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5780
5781
5782
5783
5784
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5786$as_echo_n "checking for $LD option to reload object files... " >&6; }
5787if ${lt_cv_ld_reload_flag+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789else
5790 lt_cv_ld_reload_flag='-r'
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5793$as_echo "$lt_cv_ld_reload_flag" >&6; }
5794reload_flag=$lt_cv_ld_reload_flag
5795case $reload_flag in
5796"" | " "*) ;;
5797*) reload_flag=" $reload_flag" ;;
5798esac
5799reload_cmds='$LD$reload_flag -o $output$reload_objs'
5800case $host_os in
5801 cygwin* | mingw* | pw32* | cegcc*)
5802 if test "$GCC" != yes; then
5803 reload_cmds=false
5804 fi
5805 ;;
5806 darwin*)
5807 if test "$GCC" = yes; then
5808 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5809 else
5810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5811 fi
5812 ;;
5813esac
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823if test -n "$ac_tool_prefix"; then
5824 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5825set dummy ${ac_tool_prefix}objdump; ac_word=$2
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if ${ac_cv_prog_OBJDUMP+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830else
5831 if test -n "$OBJDUMP"; then
5832 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5841 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846 done
5847IFS=$as_save_IFS
5848
5849fi
5850fi
5851OBJDUMP=$ac_cv_prog_OBJDUMP
5852if test -n "$OBJDUMP"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5854$as_echo "$OBJDUMP" >&6; }
5855else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858fi
5859
5860
5861fi
5862if test -z "$ac_cv_prog_OBJDUMP"; then
5863 ac_ct_OBJDUMP=$OBJDUMP
5864 # Extract the first word of "objdump", so it can be a program name with args.
5865set dummy objdump; ac_word=$2
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867$as_echo_n "checking for $ac_word... " >&6; }
5868if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870else
5871 if test -n "$ac_ct_OBJDUMP"; then
5872 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886 done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5892if test -n "$ac_ct_OBJDUMP"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5894$as_echo "$ac_ct_OBJDUMP" >&6; }
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
5899
5900 if test "x$ac_ct_OBJDUMP" = x; then
5901 OBJDUMP="false"
5902 else
5903 case $cross_compiling:$ac_tool_warned in
5904yes:)
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907ac_tool_warned=yes ;;
5908esac
5909 OBJDUMP=$ac_ct_OBJDUMP
5910 fi
5911else
5912 OBJDUMP="$ac_cv_prog_OBJDUMP"
5913fi
5914
5915test -z "$OBJDUMP" && OBJDUMP=objdump
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5926$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5927if ${lt_cv_deplibs_check_method+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929else
5930 lt_cv_file_magic_cmd='$MAGIC_CMD'
5931lt_cv_file_magic_test_file=
5932lt_cv_deplibs_check_method='unknown'
5933# Need to set the preceding variable on all platforms that support
5934# interlibrary dependencies.
5935# 'none' -- dependencies not supported.
5936# `unknown' -- same as none, but documents that we really don't know.
5937# 'pass_all' -- all dependencies passed with no checks.
5938# 'test_compile' -- check by making test program.
5939# 'file_magic [[regex]]' -- check by looking for files in library path
5940# which responds to the $file_magic_cmd with a given extended regex.
5941# If you have `file' or equivalent on your system and you're not sure
5942# whether `pass_all' will *always* work, you probably want this one.
5943
5944case $host_os in
5945aix[4-9]*)
5946 lt_cv_deplibs_check_method=pass_all
5947 ;;
5948
5949beos*)
5950 lt_cv_deplibs_check_method=pass_all
5951 ;;
5952
5953bsdi[45]*)
5954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5955 lt_cv_file_magic_cmd='/usr/bin/file -L'
5956 lt_cv_file_magic_test_file=/shlib/libc.so
5957 ;;
5958
5959cygwin*)
5960 # func_win32_libid is a shell function defined in ltmain.sh
5961 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5962 lt_cv_file_magic_cmd='func_win32_libid'
5963 ;;
5964
5965mingw* | pw32*)
5966 # Base MSYS/MinGW do not provide the 'file' command needed by
5967 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5968 # unless we find 'file', for example because we are cross-compiling.
5969 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5970 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5971 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5972 lt_cv_file_magic_cmd='func_win32_libid'
5973 else
5974 # Keep this pattern in sync with the one in func_win32_libid.
5975 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5976 lt_cv_file_magic_cmd='$OBJDUMP -f'
5977 fi
5978 ;;
5979
5980cegcc*)
5981 # use the weaker test based on 'objdump'. See mingw*.
5982 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5983 lt_cv_file_magic_cmd='$OBJDUMP -f'
5984 ;;
5985
5986darwin* | rhapsody*)
5987 lt_cv_deplibs_check_method=pass_all
5988 ;;
5989
5990freebsd* | dragonfly*)
5991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5992 case $host_cpu in
5993 i*86 )
5994 # Not sure whether the presence of OpenBSD here was a mistake.
5995 # Let's accept both of them until this is cleared up.
5996 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5997 lt_cv_file_magic_cmd=/usr/bin/file
5998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5999 ;;
6000 esac
6001 else
6002 lt_cv_deplibs_check_method=pass_all
6003 fi
6004 ;;
6005
6006gnu*)
6007 lt_cv_deplibs_check_method=pass_all
6008 ;;
6009
6010haiku*)
6011 lt_cv_deplibs_check_method=pass_all
6012 ;;
6013
6014hpux10.20* | hpux11*)
6015 lt_cv_file_magic_cmd=/usr/bin/file
6016 case $host_cpu in
6017 ia64*)
6018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6019 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6020 ;;
6021 hppa*64*)
6022 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]'
6023 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6024 ;;
6025 *)
6026 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6027 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6028 ;;
6029 esac
6030 ;;
6031
6032interix[3-9]*)
6033 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6035 ;;
6036
6037irix5* | irix6* | nonstopux*)
6038 case $LD in
6039 *-32|*"-32 ") libmagic=32-bit;;
6040 *-n32|*"-n32 ") libmagic=N32;;
6041 *-64|*"-64 ") libmagic=64-bit;;
6042 *) libmagic=never-match;;
6043 esac
6044 lt_cv_deplibs_check_method=pass_all
6045 ;;
6046
6047# This must be glibc/ELF.
6048linux* | k*bsd*-gnu | kopensolaris*-gnu)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051
6052netbsd*)
6053 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6055 else
6056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6057 fi
6058 ;;
6059
6060newos6*)
6061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6062 lt_cv_file_magic_cmd=/usr/bin/file
6063 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6064 ;;
6065
6066*nto* | *qnx*)
6067 lt_cv_deplibs_check_method=pass_all
6068 ;;
6069
6070openbsd*)
6071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6073 else
6074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6075 fi
6076 ;;
6077
6078osf3* | osf4* | osf5*)
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
6081
6082rdos*)
6083 lt_cv_deplibs_check_method=pass_all
6084 ;;
6085
6086solaris*)
6087 lt_cv_deplibs_check_method=pass_all
6088 ;;
6089
6090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093
6094sysv4 | sysv4.3*)
6095 case $host_vendor in
6096 motorola)
6097 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]'
6098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6099 ;;
6100 ncr)
6101 lt_cv_deplibs_check_method=pass_all
6102 ;;
6103 sequent)
6104 lt_cv_file_magic_cmd='/bin/file'
6105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6106 ;;
6107 sni)
6108 lt_cv_file_magic_cmd='/bin/file'
6109 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6110 lt_cv_file_magic_test_file=/lib/libc.so
6111 ;;
6112 siemens)
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
6115 pc)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
6118 esac
6119 ;;
6120
6121tpf*)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124esac
6125
6126fi
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6128$as_echo "$lt_cv_deplibs_check_method" >&6; }
6129
6130file_magic_glob=
6131want_nocaseglob=no
6132if test "$build" = "$host"; then
6133 case $host_os in
6134 mingw* | pw32*)
6135 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6136 want_nocaseglob=yes
6137 else
6138 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6139 fi
6140 ;;
6141 esac
6142fi
6143
6144file_magic_cmd=$lt_cv_file_magic_cmd
6145deplibs_check_method=$lt_cv_deplibs_check_method
6146test -z "$deplibs_check_method" && deplibs_check_method=unknown
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6171set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173$as_echo_n "checking for $ac_word... " >&6; }
6174if ${ac_cv_prog_DLLTOOL+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176else
6177 if test -n "$DLLTOOL"; then
6178 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192 done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197DLLTOOL=$ac_cv_prog_DLLTOOL
6198if test -n "$DLLTOOL"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6200$as_echo "$DLLTOOL" >&6; }
6201else
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203$as_echo "no" >&6; }
6204fi
6205
6206
6207fi
6208if test -z "$ac_cv_prog_DLLTOOL"; then
6209 ac_ct_DLLTOOL=$DLLTOOL
6210 # Extract the first word of "dlltool", so it can be a program name with args.
6211set dummy dlltool; ac_word=$2
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213$as_echo_n "checking for $ac_word... " >&6; }
6214if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216else
6217 if test -n "$ac_ct_DLLTOOL"; then
6218 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231done
6232 done
6233IFS=$as_save_IFS
6234
6235fi
6236fi
6237ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6238if test -n "$ac_ct_DLLTOOL"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6240$as_echo "$ac_ct_DLLTOOL" >&6; }
6241else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243$as_echo "no" >&6; }
6244fi
6245
6246 if test "x$ac_ct_DLLTOOL" = x; then
6247 DLLTOOL="false"
6248 else
6249 case $cross_compiling:$ac_tool_warned in
6250yes:)
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6253ac_tool_warned=yes ;;
6254esac
6255 DLLTOOL=$ac_ct_DLLTOOL
6256 fi
6257else
6258 DLLTOOL="$ac_cv_prog_DLLTOOL"
6259fi
6260
6261test -z "$DLLTOOL" && DLLTOOL=dlltool
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6273$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6274if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6275 $as_echo_n "(cached) " >&6
6276else
6277 lt_cv_sharedlib_from_linklib_cmd='unknown'
6278
6279case $host_os in
6280cygwin* | mingw* | pw32* | cegcc*)
6281 # two different shell functions defined in ltmain.sh
6282 # decide which to use based on capabilities of $DLLTOOL
6283 case `$DLLTOOL --help 2>&1` in
6284 *--identify-strict*)
6285 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6286 ;;
6287 *)
6288 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6289 ;;
6290 esac
6291 ;;
6292*)
6293 # fallback: assume linklib IS sharedlib
6294 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6295 ;;
6296esac
6297
6298fi
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6300$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6301sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6302test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6303
6304
6305
6306
6307
6308
6309
6310if test -n "$ac_tool_prefix"; then
6311 for ac_prog in ar
6312 do
6313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6314set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316$as_echo_n "checking for $ac_word... " >&6; }
6317if ${ac_cv_prog_AR+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319else
6320 if test -n "$AR"; then
6321 ac_cv_prog_AR="$AR" # Let the user override the test.
6322else
6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334done
6335 done
6336IFS=$as_save_IFS
6337
6338fi
6339fi
6340AR=$ac_cv_prog_AR
6341if test -n "$AR"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6343$as_echo "$AR" >&6; }
6344else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346$as_echo "no" >&6; }
6347fi
6348
6349
6350 test -n "$AR" && break
6351 done
6352fi
6353if test -z "$AR"; then
6354 ac_ct_AR=$AR
6355 for ac_prog in ar
6356do
6357 # Extract the first word of "$ac_prog", so it can be a program name with args.
6358set dummy $ac_prog; ac_word=$2
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360$as_echo_n "checking for $ac_word... " >&6; }
6361if ${ac_cv_prog_ac_ct_AR+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363else
6364 if test -n "$ac_ct_AR"; then
6365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6366else
6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374 ac_cv_prog_ac_ct_AR="$ac_prog"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378done
6379 done
6380IFS=$as_save_IFS
6381
6382fi
6383fi
6384ac_ct_AR=$ac_cv_prog_ac_ct_AR
6385if test -n "$ac_ct_AR"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6387$as_echo "$ac_ct_AR" >&6; }
6388else
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390$as_echo "no" >&6; }
6391fi
6392
6393
6394 test -n "$ac_ct_AR" && break
6395done
6396
6397 if test "x$ac_ct_AR" = x; then
6398 AR="false"
6399 else
6400 case $cross_compiling:$ac_tool_warned in
6401yes:)
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404ac_tool_warned=yes ;;
6405esac
6406 AR=$ac_ct_AR
6407 fi
6408fi
6409
6410: ${AR=ar}
6411: ${AR_FLAGS=cru}
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6424$as_echo_n "checking for archiver @FILE support... " >&6; }
6425if ${lt_cv_ar_at_file+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427else
6428 lt_cv_ar_at_file=no
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h. */
6431
6432int
6433main ()
6434{
6435
6436 ;
6437 return 0;
6438}
6439_ACEOF
6440if ac_fn_c_try_compile "$LINENO"; then :
6441 echo conftest.$ac_objext > conftest.lst
6442 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6444 (eval $lt_ar_try) 2>&5
6445 ac_status=$?
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }
6448 if test "$ac_status" -eq 0; then
6449 # Ensure the archiver fails upon bogus file names.
6450 rm -f conftest.$ac_objext libconftest.a
6451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6452 (eval $lt_ar_try) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }
6456 if test "$ac_status" -ne 0; then
6457 lt_cv_ar_at_file=@
6458 fi
6459 fi
6460 rm -f conftest.* libconftest.a
6461
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464
6465fi
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6467$as_echo "$lt_cv_ar_at_file" >&6; }
6468
6469if test "x$lt_cv_ar_at_file" = xno; then
6470 archiver_list_spec=
6471else
6472 archiver_list_spec=$lt_cv_ar_at_file
6473fi
6474
6475
6476
6477
6478
6479
6480
6481if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6483set dummy ${ac_tool_prefix}strip; ac_word=$2
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485$as_echo_n "checking for $ac_word... " >&6; }
6486if ${ac_cv_prog_STRIP+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488else
6489 if test -n "$STRIP"; then
6490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503done
6504 done
6505IFS=$as_save_IFS
6506
6507fi
6508fi
6509STRIP=$ac_cv_prog_STRIP
6510if test -n "$STRIP"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6512$as_echo "$STRIP" >&6; }
6513else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516fi
6517
6518
6519fi
6520if test -z "$ac_cv_prog_STRIP"; then
6521 ac_ct_STRIP=$STRIP
6522 # Extract the first word of "strip", so it can be a program name with args.
6523set dummy strip; ac_word=$2
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525$as_echo_n "checking for $ac_word... " >&6; }
6526if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528else
6529 if test -n "$ac_ct_STRIP"; then
6530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_ac_ct_STRIP="strip"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543done
6544 done
6545IFS=$as_save_IFS
6546
6547fi
6548fi
6549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6550if test -n "$ac_ct_STRIP"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6552$as_echo "$ac_ct_STRIP" >&6; }
6553else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556fi
6557
6558 if test "x$ac_ct_STRIP" = x; then
6559 STRIP=":"
6560 else
6561 case $cross_compiling:$ac_tool_warned in
6562yes:)
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565ac_tool_warned=yes ;;
6566esac
6567 STRIP=$ac_ct_STRIP
6568 fi
6569else
6570 STRIP="$ac_cv_prog_STRIP"
6571fi
6572
6573test -z "$STRIP" && STRIP=:
6574
6575
6576
6577
6578
6579
6580if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6582set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584$as_echo_n "checking for $ac_word... " >&6; }
6585if ${ac_cv_prog_RANLIB+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587else
6588 if test -n "$RANLIB"; then
6589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602done
6603 done
6604IFS=$as_save_IFS
6605
6606fi
6607fi
6608RANLIB=$ac_cv_prog_RANLIB
6609if test -n "$RANLIB"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6611$as_echo "$RANLIB" >&6; }
6612else
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614$as_echo "no" >&6; }
6615fi
6616
6617
6618fi
6619if test -z "$ac_cv_prog_RANLIB"; then
6620 ac_ct_RANLIB=$RANLIB
6621 # Extract the first word of "ranlib", so it can be a program name with args.
6622set dummy ranlib; ac_word=$2
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624$as_echo_n "checking for $ac_word... " >&6; }
6625if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627else
6628 if test -n "$ac_ct_RANLIB"; then
6629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_ac_ct_RANLIB="ranlib"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642done
6643 done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
6648ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6649if test -n "$ac_ct_RANLIB"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6651$as_echo "$ac_ct_RANLIB" >&6; }
6652else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654$as_echo "no" >&6; }
6655fi
6656
6657 if test "x$ac_ct_RANLIB" = x; then
6658 RANLIB=":"
6659 else
6660 case $cross_compiling:$ac_tool_warned in
6661yes:)
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664ac_tool_warned=yes ;;
6665esac
6666 RANLIB=$ac_ct_RANLIB
6667 fi
6668else
6669 RANLIB="$ac_cv_prog_RANLIB"
6670fi
6671
6672test -z "$RANLIB" && RANLIB=:
6673
6674
6675
6676
6677
6678
6679# Determine commands to create old-style static archives.
6680old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6681old_postinstall_cmds='chmod 644 $oldlib'
6682old_postuninstall_cmds=
6683
6684if test -n "$RANLIB"; then
6685 case $host_os in
6686 openbsd*)
6687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6688 ;;
6689 *)
6690 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6691 ;;
6692 esac
6693 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6694fi
6695
6696case $host_os in
6697 darwin*)
6698 lock_old_archive_extraction=yes ;;
6699 *)
6700 lock_old_archive_extraction=no ;;
6701esac
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741# If no C compiler was specified, use CC.
6742LTCC=${LTCC-"$CC"}
6743
6744# If no C compiler flags were specified, use CFLAGS.
6745LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6746
6747# Allow CC to be a program name with arguments.
6748compiler=$CC
6749
6750
6751# Check for command to grab the raw symbol name followed by C symbol from nm.
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6753$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6754if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756else
6757
6758# These are sane defaults that work on at least a few old systems.
6759# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6760
6761# Character class describing NM global symbol codes.
6762symcode='[BCDEGRST]'
6763
6764# Regexp to match symbols that can be accessed directly from C.
6765sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6766
6767# Define system-specific variables.
6768case $host_os in
6769aix*)
6770 symcode='[BCDT]'
6771 ;;
6772cygwin* | mingw* | pw32* | cegcc*)
6773 symcode='[ABCDGISTW]'
6774 ;;
6775hpux*)
6776 if test "$host_cpu" = ia64; then
6777 symcode='[ABCDEGRST]'
6778 fi
6779 ;;
6780irix* | nonstopux*)
6781 symcode='[BCDEGRST]'
6782 ;;
6783osf*)
6784 symcode='[BCDEGQRST]'
6785 ;;
6786solaris*)
6787 symcode='[BDRT]'
6788 ;;
6789sco3.2v5*)
6790 symcode='[DT]'
6791 ;;
6792sysv4.2uw2*)
6793 symcode='[DT]'
6794 ;;
6795sysv5* | sco5v6* | unixware* | OpenUNIX*)
6796 symcode='[ABDT]'
6797 ;;
6798sysv4)
6799 symcode='[DFNSTU]'
6800 ;;
6801esac
6802
6803# If we're using GNU nm, then use its standard symbol codes.
6804case `$NM -V 2>&1` in
6805*GNU* | *'with BFD'*)
6806 symcode='[ABCDGIRSTW]' ;;
6807esac
6808
6809# Transform an extracted symbol line into a proper C declaration.
6810# Some systems (esp. on ia64) link data and code symbols differently,
6811# so use this general approach.
6812lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6813
6814# Transform an extracted symbol line into symbol name and symbol address
6815lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6816lt_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'"
6817
6818# Handle CRLF in mingw tool chain
6819opt_cr=
6820case $build_os in
6821mingw*)
6822 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6823 ;;
6824esac
6825
6826# Try without a prefix underscore, then with it.
6827for ac_symprfx in "" "_"; do
6828
6829 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6830 symxfrm="\\1 $ac_symprfx\\2 \\2"
6831
6832 # Write the raw and C identifiers.
6833 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6834 # Fake it for dumpbin and say T for any non-static function
6835 # and D for any global variable.
6836 # Also find C++ and __fastcall symbols from MSVC++,
6837 # which start with @ or ?.
6838 lt_cv_sys_global_symbol_pipe="$AWK '"\
6839" {last_section=section; section=\$ 3};"\
6840" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6841" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6842" \$ 0!~/External *\|/{next};"\
6843" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6844" {if(hide[section]) next};"\
6845" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6846" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6847" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6848" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6849" ' prfx=^$ac_symprfx"
6850 else
6851 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6852 fi
6853 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6854
6855 # Check to see that the pipe works correctly.
6856 pipe_works=no
6857
6858 rm -f conftest*
6859 cat > conftest.$ac_ext <<_LT_EOF
6860#ifdef __cplusplus
6861extern "C" {
6862#endif
6863char nm_test_var;
6864void nm_test_func(void);
6865void nm_test_func(void){}
6866#ifdef __cplusplus
6867}
6868#endif
6869int main(){nm_test_var='a';nm_test_func();return(0);}
6870_LT_EOF
6871
6872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6873 (eval $ac_compile) 2>&5
6874 ac_status=$?
6875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876 test $ac_status = 0; }; then
6877 # Now try to grab the symbols.
6878 nlist=conftest.nm
6879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6880 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6881 ac_status=$?
6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883 test $ac_status = 0; } && test -s "$nlist"; then
6884 # Try sorting and uniquifying the output.
6885 if sort "$nlist" | uniq > "$nlist"T; then
6886 mv -f "$nlist"T "$nlist"
6887 else
6888 rm -f "$nlist"T
6889 fi
6890
6891 # Make sure that we snagged all the symbols we need.
6892 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6893 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6894 cat <<_LT_EOF > conftest.$ac_ext
6895/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6896#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6897/* DATA imports from DLLs on WIN32 con't be const, because runtime
6898 relocations are performed -- see ld's documentation on pseudo-relocs. */
6899# define LT_DLSYM_CONST
6900#elif defined(__osf__)
6901/* This system does not cope well with relocations in const data. */
6902# define LT_DLSYM_CONST
6903#else
6904# define LT_DLSYM_CONST const
6905#endif
6906
6907#ifdef __cplusplus
6908extern "C" {
6909#endif
6910
6911_LT_EOF
6912 # Now generate the symbol file.
6913 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6914
6915 cat <<_LT_EOF >> conftest.$ac_ext
6916
6917/* The mapping between symbol names and symbols. */
6918LT_DLSYM_CONST struct {
6919 const char *name;
6920 void *address;
6921}
6922lt__PROGRAM__LTX_preloaded_symbols[] =
6923{
6924 { "@PROGRAM@", (void *) 0 },
6925_LT_EOF
6926 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6927 cat <<\_LT_EOF >> conftest.$ac_ext
6928 {0, (void *) 0}
6929};
6930
6931/* This works around a problem in FreeBSD linker */
6932#ifdef FREEBSD_WORKAROUND
6933static const void *lt_preloaded_setup() {
6934 return lt__PROGRAM__LTX_preloaded_symbols;
6935}
6936#endif
6937
6938#ifdef __cplusplus
6939}
6940#endif
6941_LT_EOF
6942 # Now try linking the two files.
6943 mv conftest.$ac_objext conftstm.$ac_objext
6944 lt_globsym_save_LIBS=$LIBS
6945 lt_globsym_save_CFLAGS=$CFLAGS
6946 LIBS="conftstm.$ac_objext"
6947 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6949 (eval $ac_link) 2>&5
6950 ac_status=$?
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6953 pipe_works=yes
6954 fi
6955 LIBS=$lt_globsym_save_LIBS
6956 CFLAGS=$lt_globsym_save_CFLAGS
6957 else
6958 echo "cannot find nm_test_func in $nlist" >&5
6959 fi
6960 else
6961 echo "cannot find nm_test_var in $nlist" >&5
6962 fi
6963 else
6964 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6965 fi
6966 else
6967 echo "$progname: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6969 fi
6970 rm -rf conftest* conftst*
6971
6972 # Do not use the global_symbol_pipe unless it works.
6973 if test "$pipe_works" = yes; then
6974 break
6975 else
6976 lt_cv_sys_global_symbol_pipe=
6977 fi
6978done
6979
6980fi
6981
6982if test -z "$lt_cv_sys_global_symbol_pipe"; then
6983 lt_cv_sys_global_symbol_to_cdecl=
6984fi
6985if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6987$as_echo "failed" >&6; }
6988else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6990$as_echo "ok" >&6; }
6991fi
6992
6993# Response file support.
6994if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6995 nm_file_list_spec='@'
6996elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6997 nm_file_list_spec='@'
6998fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7027$as_echo_n "checking for sysroot... " >&6; }
7028
7029# Check whether --with-sysroot was given.
7030if test "${with_sysroot+set}" = set; then :
7031 withval=$with_sysroot;
7032else
7033 with_sysroot=no
7034fi
7035
7036
7037lt_sysroot=
7038case ${with_sysroot} in #(
7039 yes)
7040 if test "$GCC" = yes; then
7041 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7042 fi
7043 ;; #(
7044 /*)
7045 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7046 ;; #(
7047 no|'')
7048 ;; #(
7049 *)
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7051$as_echo "${with_sysroot}" >&6; }
7052 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7053 ;;
7054esac
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7057$as_echo "${lt_sysroot:-no}" >&6; }
7058
7059
7060
7061
7062
7063# Check whether --enable-libtool-lock was given.
7064if test "${enable_libtool_lock+set}" = set; then :
7065 enableval=$enable_libtool_lock;
7066fi
7067
7068test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7069
7070# Some flags need to be propagated to the compiler or linker for good
7071# libtool support.
7072case $host in
7073ia64-*-hpux*)
7074 # Find out which ABI we are using.
7075 echo 'int i;' > conftest.$ac_ext
7076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7077 (eval $ac_compile) 2>&5
7078 ac_status=$?
7079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080 test $ac_status = 0; }; then
7081 case `/usr/bin/file conftest.$ac_objext` in
7082 *ELF-32*)
7083 HPUX_IA64_MODE="32"
7084 ;;
7085 *ELF-64*)
7086 HPUX_IA64_MODE="64"
7087 ;;
7088 esac
7089 fi
7090 rm -rf conftest*
7091 ;;
7092*-*-irix6*)
7093 # Find out which ABI we are using.
7094 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7096 (eval $ac_compile) 2>&5
7097 ac_status=$?
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }; then
7100 if test "$lt_cv_prog_gnu_ld" = yes; then
7101 case `/usr/bin/file conftest.$ac_objext` in
7102 *32-bit*)
7103 LD="${LD-ld} -melf32bsmip"
7104 ;;
7105 *N32*)
7106 LD="${LD-ld} -melf32bmipn32"
7107 ;;
7108 *64-bit*)
7109 LD="${LD-ld} -melf64bmip"
7110 ;;
7111 esac
7112 else
7113 case `/usr/bin/file conftest.$ac_objext` in
7114 *32-bit*)
7115 LD="${LD-ld} -32"
7116 ;;
7117 *N32*)
7118 LD="${LD-ld} -n32"
7119 ;;
7120 *64-bit*)
7121 LD="${LD-ld} -64"
7122 ;;
7123 esac
7124 fi
7125 fi
7126 rm -rf conftest*
7127 ;;
7128
7129x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7130s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7131 # Find out which ABI we are using.
7132 echo 'int i;' > conftest.$ac_ext
7133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7134 (eval $ac_compile) 2>&5
7135 ac_status=$?
7136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137 test $ac_status = 0; }; then
7138 case `/usr/bin/file conftest.o` in
7139 *32-bit*)
7140 case $host in
7141 x86_64-*kfreebsd*-gnu)
7142 LD="${LD-ld} -m elf_i386_fbsd"
7143 ;;
7144 x86_64-*linux*)
7145 LD="${LD-ld} -m elf_i386"
7146 ;;
7147 powerpc64le-*linux*)
7148 LD="${LD-ld} -m elf32lppclinux"
7149 ;;
7150 powerpc64-*linux*)
7151 LD="${LD-ld} -m elf32ppclinux"
7152 ;;
7153 s390x-*linux*)
7154 LD="${LD-ld} -m elf_s390"
7155 ;;
7156 sparc64-*linux*)
7157 LD="${LD-ld} -m elf32_sparc"
7158 ;;
7159 esac
7160 ;;
7161 *64-bit*)
7162 case $host in
7163 x86_64-*kfreebsd*-gnu)
7164 LD="${LD-ld} -m elf_x86_64_fbsd"
7165 ;;
7166 x86_64-*linux*)
7167 LD="${LD-ld} -m elf_x86_64"
7168 ;;
7169 powerpcle-*linux*)
7170 LD="${LD-ld} -m elf64lppc"
7171 ;;
7172 powerpc-*linux*)
7173 LD="${LD-ld} -m elf64ppc"
7174 ;;
7175 s390*-*linux*|s390*-*tpf*)
7176 LD="${LD-ld} -m elf64_s390"
7177 ;;
7178 sparc*-*linux*)
7179 LD="${LD-ld} -m elf64_sparc"
7180 ;;
7181 esac
7182 ;;
7183 esac
7184 fi
7185 rm -rf conftest*
7186 ;;
7187
7188*-*-sco3.2v5*)
7189 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7190 SAVE_CFLAGS="$CFLAGS"
7191 CFLAGS="$CFLAGS -belf"
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7193$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7194if ${lt_cv_cc_needs_belf+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196else
7197 ac_ext=c
7198ac_cpp='$CPP $CPPFLAGS'
7199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7201ac_compiler_gnu=$ac_cv_c_compiler_gnu
7202
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h. */
7205
7206int
7207main ()
7208{
7209
7210 ;
7211 return 0;
7212}
7213_ACEOF
7214if ac_fn_c_try_link "$LINENO"; then :
7215 lt_cv_cc_needs_belf=yes
7216else
7217 lt_cv_cc_needs_belf=no
7218fi
7219rm -f core conftest.err conftest.$ac_objext \
7220 conftest$ac_exeext conftest.$ac_ext
7221 ac_ext=c
7222ac_cpp='$CPP $CPPFLAGS'
7223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7229$as_echo "$lt_cv_cc_needs_belf" >&6; }
7230 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7231 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7232 CFLAGS="$SAVE_CFLAGS"
7233 fi
7234 ;;
7235*-*solaris*)
7236 # Find out which ABI we are using.
7237 echo 'int i;' > conftest.$ac_ext
7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7239 (eval $ac_compile) 2>&5
7240 ac_status=$?
7241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242 test $ac_status = 0; }; then
7243 case `/usr/bin/file conftest.o` in
7244 *64-bit*)
7245 case $lt_cv_prog_gnu_ld in
7246 yes*)
7247 case $host in
7248 i?86-*-solaris*)
7249 LD="${LD-ld} -m elf_x86_64"
7250 ;;
7251 sparc*-*-solaris*)
7252 LD="${LD-ld} -m elf64_sparc"
7253 ;;
7254 esac
7255 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7256 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7257 LD="${LD-ld}_sol2"
7258 fi
7259 ;;
7260 *)
7261 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7262 LD="${LD-ld} -64"
7263 fi
7264 ;;
7265 esac
7266 ;;
7267 esac
7268 fi
7269 rm -rf conftest*
7270 ;;
7271esac
7272
7273need_locks="$enable_libtool_lock"
7274
7275if test -n "$ac_tool_prefix"; then
7276 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7277set dummy ${ac_tool_prefix}mt; ac_word=$2
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282else
7283 if test -n "$MANIFEST_TOOL"; then
7284 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297done
7298 done
7299IFS=$as_save_IFS
7300
7301fi
7302fi
7303MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7304if test -n "$MANIFEST_TOOL"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7306$as_echo "$MANIFEST_TOOL" >&6; }
7307else
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312
7313fi
7314if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7315 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7316 # Extract the first word of "mt", so it can be a program name with args.
7317set dummy mt; ac_word=$2
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319$as_echo_n "checking for $ac_word... " >&6; }
7320if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322else
7323 if test -n "$ac_ct_MANIFEST_TOOL"; then
7324 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337done
7338 done
7339IFS=$as_save_IFS
7340
7341fi
7342fi
7343ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7344if test -n "$ac_ct_MANIFEST_TOOL"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7346$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7347else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349$as_echo "no" >&6; }
7350fi
7351
7352 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7353 MANIFEST_TOOL=":"
7354 else
7355 case $cross_compiling:$ac_tool_warned in
7356yes:)
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7359ac_tool_warned=yes ;;
7360esac
7361 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7362 fi
7363else
7364 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7365fi
7366
7367test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7369$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7370if ${lt_cv_path_mainfest_tool+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372else
7373 lt_cv_path_mainfest_tool=no
7374 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7375 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7376 cat conftest.err >&5
7377 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7378 lt_cv_path_mainfest_tool=yes
7379 fi
7380 rm -f conftest*
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7383$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7384if test "x$lt_cv_path_mainfest_tool" != xyes; then
7385 MANIFEST_TOOL=:
7386fi
7387
7388
7389
7390
7391
7392
7393 case $host_os in
7394 rhapsody* | darwin*)
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7397set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399$as_echo_n "checking for $ac_word... " >&6; }
7400if ${ac_cv_prog_DSYMUTIL+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402else
7403 if test -n "$DSYMUTIL"; then
7404 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7405else
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417done
7418 done
7419IFS=$as_save_IFS
7420
7421fi
7422fi
7423DSYMUTIL=$ac_cv_prog_DSYMUTIL
7424if test -n "$DSYMUTIL"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7426$as_echo "$DSYMUTIL" >&6; }
7427else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
7430fi
7431
7432
7433fi
7434if test -z "$ac_cv_prog_DSYMUTIL"; then
7435 ac_ct_DSYMUTIL=$DSYMUTIL
7436 # Extract the first word of "dsymutil", so it can be a program name with args.
7437set dummy dsymutil; ac_word=$2
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439$as_echo_n "checking for $ac_word... " >&6; }
7440if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442else
7443 if test -n "$ac_ct_DSYMUTIL"; then
7444 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7445else
7446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH
7448do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7456 fi
7457done
7458 done
7459IFS=$as_save_IFS
7460
7461fi
7462fi
7463ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7464if test -n "$ac_ct_DSYMUTIL"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7466$as_echo "$ac_ct_DSYMUTIL" >&6; }
7467else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469$as_echo "no" >&6; }
7470fi
7471
7472 if test "x$ac_ct_DSYMUTIL" = x; then
7473 DSYMUTIL=":"
7474 else
7475 case $cross_compiling:$ac_tool_warned in
7476yes:)
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479ac_tool_warned=yes ;;
7480esac
7481 DSYMUTIL=$ac_ct_DSYMUTIL
7482 fi
7483else
7484 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7485fi
7486
7487 if test -n "$ac_tool_prefix"; then
7488 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7489set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491$as_echo_n "checking for $ac_word... " >&6; }
7492if ${ac_cv_prog_NMEDIT+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494else
7495 if test -n "$NMEDIT"; then
7496 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7497else
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510 done
7511IFS=$as_save_IFS
7512
7513fi
7514fi
7515NMEDIT=$ac_cv_prog_NMEDIT
7516if test -n "$NMEDIT"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7518$as_echo "$NMEDIT" >&6; }
7519else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521$as_echo "no" >&6; }
7522fi
7523
7524
7525fi
7526if test -z "$ac_cv_prog_NMEDIT"; then
7527 ac_ct_NMEDIT=$NMEDIT
7528 # Extract the first word of "nmedit", so it can be a program name with args.
7529set dummy nmedit; ac_word=$2
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531$as_echo_n "checking for $ac_word... " >&6; }
7532if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534else
7535 if test -n "$ac_ct_NMEDIT"; then
7536 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7537else
7538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549done
7550 done
7551IFS=$as_save_IFS
7552
7553fi
7554fi
7555ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7556if test -n "$ac_ct_NMEDIT"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7558$as_echo "$ac_ct_NMEDIT" >&6; }
7559else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
7562fi
7563
7564 if test "x$ac_ct_NMEDIT" = x; then
7565 NMEDIT=":"
7566 else
7567 case $cross_compiling:$ac_tool_warned in
7568yes:)
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571ac_tool_warned=yes ;;
7572esac
7573 NMEDIT=$ac_ct_NMEDIT
7574 fi
7575else
7576 NMEDIT="$ac_cv_prog_NMEDIT"
7577fi
7578
7579 if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7581set dummy ${ac_tool_prefix}lipo; ac_word=$2
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583$as_echo_n "checking for $ac_word... " >&6; }
7584if ${ac_cv_prog_LIPO+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586else
7587 if test -n "$LIPO"; then
7588 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7589else
7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7600 fi
7601done
7602 done
7603IFS=$as_save_IFS
7604
7605fi
7606fi
7607LIPO=$ac_cv_prog_LIPO
7608if test -n "$LIPO"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7610$as_echo "$LIPO" >&6; }
7611else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613$as_echo "no" >&6; }
7614fi
7615
7616
7617fi
7618if test -z "$ac_cv_prog_LIPO"; then
7619 ac_ct_LIPO=$LIPO
7620 # Extract the first word of "lipo", so it can be a program name with args.
7621set dummy lipo; ac_word=$2
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623$as_echo_n "checking for $ac_word... " >&6; }
7624if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7625 $as_echo_n "(cached) " >&6
7626else
7627 if test -n "$ac_ct_LIPO"; then
7628 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7629else
7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_prog_ac_ct_LIPO="lipo"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641done
7642 done
7643IFS=$as_save_IFS
7644
7645fi
7646fi
7647ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7648if test -n "$ac_ct_LIPO"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7650$as_echo "$ac_ct_LIPO" >&6; }
7651else
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653$as_echo "no" >&6; }
7654fi
7655
7656 if test "x$ac_ct_LIPO" = x; then
7657 LIPO=":"
7658 else
7659 case $cross_compiling:$ac_tool_warned in
7660yes:)
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663ac_tool_warned=yes ;;
7664esac
7665 LIPO=$ac_ct_LIPO
7666 fi
7667else
7668 LIPO="$ac_cv_prog_LIPO"
7669fi
7670
7671 if test -n "$ac_tool_prefix"; then
7672 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7673set dummy ${ac_tool_prefix}otool; ac_word=$2
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675$as_echo_n "checking for $ac_word... " >&6; }
7676if ${ac_cv_prog_OTOOL+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678else
7679 if test -n "$OTOOL"; then
7680 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7681else
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693done
7694 done
7695IFS=$as_save_IFS
7696
7697fi
7698fi
7699OTOOL=$ac_cv_prog_OTOOL
7700if test -n "$OTOOL"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7702$as_echo "$OTOOL" >&6; }
7703else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705$as_echo "no" >&6; }
7706fi
7707
7708
7709fi
7710if test -z "$ac_cv_prog_OTOOL"; then
7711 ac_ct_OTOOL=$OTOOL
7712 # Extract the first word of "otool", so it can be a program name with args.
7713set dummy otool; ac_word=$2
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715$as_echo_n "checking for $ac_word... " >&6; }
7716if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718else
7719 if test -n "$ac_ct_OTOOL"; then
7720 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_ac_ct_OTOOL="otool"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733done
7734 done
7735IFS=$as_save_IFS
7736
7737fi
7738fi
7739ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7740if test -n "$ac_ct_OTOOL"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7742$as_echo "$ac_ct_OTOOL" >&6; }
7743else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748 if test "x$ac_ct_OTOOL" = x; then
7749 OTOOL=":"
7750 else
7751 case $cross_compiling:$ac_tool_warned in
7752yes:)
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7755ac_tool_warned=yes ;;
7756esac
7757 OTOOL=$ac_ct_OTOOL
7758 fi
7759else
7760 OTOOL="$ac_cv_prog_OTOOL"
7761fi
7762
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7765set dummy ${ac_tool_prefix}otool64; ac_word=$2
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767$as_echo_n "checking for $ac_word... " >&6; }
7768if ${ac_cv_prog_OTOOL64+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770else
7771 if test -n "$OTOOL64"; then
7772 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7773else
7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775for as_dir in $PATH
7776do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785done
7786 done
7787IFS=$as_save_IFS
7788
7789fi
7790fi
7791OTOOL64=$ac_cv_prog_OTOOL64
7792if test -n "$OTOOL64"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7794$as_echo "$OTOOL64" >&6; }
7795else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
7798fi
7799
7800
7801fi
7802if test -z "$ac_cv_prog_OTOOL64"; then
7803 ac_ct_OTOOL64=$OTOOL64
7804 # Extract the first word of "otool64", so it can be a program name with args.
7805set dummy otool64; ac_word=$2
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807$as_echo_n "checking for $ac_word... " >&6; }
7808if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810else
7811 if test -n "$ac_ct_OTOOL64"; then
7812 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_ac_ct_OTOOL64="otool64"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825done
7826 done
7827IFS=$as_save_IFS
7828
7829fi
7830fi
7831ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7832if test -n "$ac_ct_OTOOL64"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7834$as_echo "$ac_ct_OTOOL64" >&6; }
7835else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
7838fi
7839
7840 if test "x$ac_ct_OTOOL64" = x; then
7841 OTOOL64=":"
7842 else
7843 case $cross_compiling:$ac_tool_warned in
7844yes:)
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847ac_tool_warned=yes ;;
7848esac
7849 OTOOL64=$ac_ct_OTOOL64
7850 fi
7851else
7852 OTOOL64="$ac_cv_prog_OTOOL64"
7853fi
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7882$as_echo_n "checking for -single_module linker flag... " >&6; }
7883if ${lt_cv_apple_cc_single_mod+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885else
7886 lt_cv_apple_cc_single_mod=no
7887 if test -z "${LT_MULTI_MODULE}"; then
7888 # By default we will add the -single_module flag. You can override
7889 # by either setting the environment variable LT_MULTI_MODULE
7890 # non-empty at configure time, or by adding -multi_module to the
7891 # link flags.
7892 rm -rf libconftest.dylib*
7893 echo "int foo(void){return 1;}" > conftest.c
7894 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7895-dynamiclib -Wl,-single_module conftest.c" >&5
7896 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7897 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7898 _lt_result=$?
7899 # If there is a non-empty error log, and "single_module"
7900 # appears in it, assume the flag caused a linker warning
7901 if test -s conftest.err && $GREP single_module conftest.err; then
7902 cat conftest.err >&5
7903 # Otherwise, if the output was created with a 0 exit code from
7904 # the compiler, it worked.
7905 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7906 lt_cv_apple_cc_single_mod=yes
7907 else
7908 cat conftest.err >&5
7909 fi
7910 rm -rf libconftest.dylib*
7911 rm -f conftest.*
7912 fi
7913fi
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7915$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7916
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7918$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7919if ${lt_cv_ld_exported_symbols_list+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921else
7922 lt_cv_ld_exported_symbols_list=no
7923 save_LDFLAGS=$LDFLAGS
7924 echo "_main" > conftest.sym
7925 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927/* end confdefs.h. */
7928
7929int
7930main ()
7931{
7932
7933 ;
7934 return 0;
7935}
7936_ACEOF
7937if ac_fn_c_try_link "$LINENO"; then :
7938 lt_cv_ld_exported_symbols_list=yes
7939else
7940 lt_cv_ld_exported_symbols_list=no
7941fi
7942rm -f core conftest.err conftest.$ac_objext \
7943 conftest$ac_exeext conftest.$ac_ext
7944 LDFLAGS="$save_LDFLAGS"
7945
7946fi
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7948$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7949
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7951$as_echo_n "checking for -force_load linker flag... " >&6; }
7952if ${lt_cv_ld_force_load+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954else
7955 lt_cv_ld_force_load=no
7956 cat > conftest.c << _LT_EOF
7957int forced_loaded() { return 2;}
7958_LT_EOF
7959 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7960 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7961 echo "$AR cru libconftest.a conftest.o" >&5
7962 $AR cru libconftest.a conftest.o 2>&5
7963 echo "$RANLIB libconftest.a" >&5
7964 $RANLIB libconftest.a 2>&5
7965 cat > conftest.c << _LT_EOF
7966int main() { return 0;}
7967_LT_EOF
7968 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7969 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7970 _lt_result=$?
7971 if test -s conftest.err && $GREP force_load conftest.err; then
7972 cat conftest.err >&5
7973 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7974 lt_cv_ld_force_load=yes
7975 else
7976 cat conftest.err >&5
7977 fi
7978 rm -f conftest.err libconftest.a conftest conftest.c
7979 rm -rf conftest.dSYM
7980
7981fi
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7983$as_echo "$lt_cv_ld_force_load" >&6; }
7984 case $host_os in
7985 rhapsody* | darwin1.[012])
7986 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7987 darwin1.*)
7988 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7989 darwin*) # darwin 5.x on
7990 # if running on 10.5 or later, the deployment target defaults
7991 # to the OS version, if on x86, and 10.4, the deployment
7992 # target defaults to 10.4. Don't you love it?
7993 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7994 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7995 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7996 10.[012]*)
7997 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7998 10.*)
7999 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8000 esac
8001 ;;
8002 esac
8003 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8004 _lt_dar_single_mod='$single_module'
8005 fi
8006 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8007 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8008 else
8009 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8010 fi
8011 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8012 _lt_dsymutil='~$DSYMUTIL $lib || :'
8013 else
8014 _lt_dsymutil=
8015 fi
8016 ;;
8017 esac
8018
8019ac_ext=c
8020ac_cpp='$CPP $CPPFLAGS'
8021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8025$as_echo_n "checking how to run the C preprocessor... " >&6; }
8026# On Suns, sometimes $CPP names a directory.
8027if test -n "$CPP" && test -d "$CPP"; then
8028 CPP=
8029fi
8030if test -z "$CPP"; then
8031 if ${ac_cv_prog_CPP+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033else
8034 # Double quotes because CPP needs to be expanded
8035 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8036 do
8037 ac_preproc_ok=false
8038for ac_c_preproc_warn_flag in '' yes
8039do
8040 # Use a header file that comes with gcc, so configuring glibc
8041 # with a fresh cross-compiler works.
8042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8043 # <limits.h> exists even on freestanding compilers.
8044 # On the NeXT, cc -E runs the code through the compiler's parser,
8045 # not just through cpp. "Syntax error" is here to catch this case.
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h. */
8048#ifdef __STDC__
8049# include <limits.h>
8050#else
8051# include <assert.h>
8052#endif
8053 Syntax error
8054_ACEOF
8055if ac_fn_c_try_cpp "$LINENO"; then :
8056
8057else
8058 # Broken: fails on valid input.
8059continue
8060fi
8061rm -f conftest.err conftest.i conftest.$ac_ext
8062
8063 # OK, works on sane cases. Now check whether nonexistent headers
8064 # can be detected and how.
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h. */
8067#include <ac_nonexistent.h>
8068_ACEOF
8069if ac_fn_c_try_cpp "$LINENO"; then :
8070 # Broken: success on invalid input.
8071continue
8072else
8073 # Passes both tests.
8074ac_preproc_ok=:
8075break
8076fi
8077rm -f conftest.err conftest.i conftest.$ac_ext
8078
8079done
8080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8081rm -f conftest.i conftest.err conftest.$ac_ext
8082if $ac_preproc_ok; then :
8083 break
8084fi
8085
8086 done
8087 ac_cv_prog_CPP=$CPP
8088
8089fi
8090 CPP=$ac_cv_prog_CPP
8091else
8092 ac_cv_prog_CPP=$CPP
8093fi
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8095$as_echo "$CPP" >&6; }
8096ac_preproc_ok=false
8097for ac_c_preproc_warn_flag in '' yes
8098do
8099 # Use a header file that comes with gcc, so configuring glibc
8100 # with a fresh cross-compiler works.
8101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8102 # <limits.h> exists even on freestanding compilers.
8103 # On the NeXT, cc -E runs the code through the compiler's parser,
8104 # not just through cpp. "Syntax error" is here to catch this case.
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106/* end confdefs.h. */
8107#ifdef __STDC__
8108# include <limits.h>
8109#else
8110# include <assert.h>
8111#endif
8112 Syntax error
8113_ACEOF
8114if ac_fn_c_try_cpp "$LINENO"; then :
8115
8116else
8117 # Broken: fails on valid input.
8118continue
8119fi
8120rm -f conftest.err conftest.i conftest.$ac_ext
8121
8122 # OK, works on sane cases. Now check whether nonexistent headers
8123 # can be detected and how.
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125/* end confdefs.h. */
8126#include <ac_nonexistent.h>
8127_ACEOF
8128if ac_fn_c_try_cpp "$LINENO"; then :
8129 # Broken: success on invalid input.
8130continue
8131else
8132 # Passes both tests.
8133ac_preproc_ok=:
8134break
8135fi
8136rm -f conftest.err conftest.i conftest.$ac_ext
8137
8138done
8139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8140rm -f conftest.i conftest.err conftest.$ac_ext
8141if $ac_preproc_ok; then :
8142
8143else
8144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8146as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8147See \`config.log' for more details" "$LINENO" 5; }
8148fi
8149
8150ac_ext=c
8151ac_cpp='$CPP $CPPFLAGS'
8152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154ac_compiler_gnu=$ac_cv_c_compiler_gnu
8155
8156
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8158$as_echo_n "checking for ANSI C header files... " >&6; }
8159if ${ac_cv_header_stdc+:} false; then :
8160 $as_echo_n "(cached) " >&6
8161else
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163/* end confdefs.h. */
8164#include <stdlib.h>
8165#include <stdarg.h>
8166#include <string.h>
8167#include <float.h>
8168
8169int
8170main ()
8171{
8172
8173 ;
8174 return 0;
8175}
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"; then :
8178 ac_cv_header_stdc=yes
8179else
8180 ac_cv_header_stdc=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183
8184if test $ac_cv_header_stdc = yes; then
8185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187/* end confdefs.h. */
8188#include <string.h>
8189
8190_ACEOF
8191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8192 $EGREP "memchr" >/dev/null 2>&1; then :
8193
8194else
8195 ac_cv_header_stdc=no
8196fi
8197rm -f conftest*
8198
8199fi
8200
8201if test $ac_cv_header_stdc = yes; then
8202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204/* end confdefs.h. */
8205#include <stdlib.h>
8206
8207_ACEOF
8208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8209 $EGREP "free" >/dev/null 2>&1; then :
8210
8211else
8212 ac_cv_header_stdc=no
8213fi
8214rm -f conftest*
8215
8216fi
8217
8218if test $ac_cv_header_stdc = yes; then
8219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8220 if test "$cross_compiling" = yes; then :
8221 :
8222else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h. */
8225#include <ctype.h>
8226#include <stdlib.h>
8227#if ((' ' & 0x0FF) == 0x020)
8228# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8229# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8230#else
8231# define ISLOWER(c) \
8232 (('a' <= (c) && (c) <= 'i') \
8233 || ('j' <= (c) && (c) <= 'r') \
8234 || ('s' <= (c) && (c) <= 'z'))
8235# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8236#endif
8237
8238#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8239int
8240main ()
8241{
8242 int i;
8243 for (i = 0; i < 256; i++)
8244 if (XOR (islower (i), ISLOWER (i))
8245 || toupper (i) != TOUPPER (i))
8246 return 2;
8247 return 0;
8248}
8249_ACEOF
8250if ac_fn_c_try_run "$LINENO"; then :
8251
8252else
8253 ac_cv_header_stdc=no
8254fi
8255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8256 conftest.$ac_objext conftest.beam conftest.$ac_ext
8257fi
8258
8259fi
8260fi
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8262$as_echo "$ac_cv_header_stdc" >&6; }
8263if test $ac_cv_header_stdc = yes; then
8264
8265$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8266
8267fi
8268
8269# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8270for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8271 inttypes.h stdint.h unistd.h
8272do :
8273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8275"
8276if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8277 cat >>confdefs.h <<_ACEOF
8278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8279_ACEOF
8280
8281fi
8282
8283done
8284
8285
8286for ac_header in dlfcn.h
8287do :
8288 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8289"
8290if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8291 cat >>confdefs.h <<_ACEOF
8292#define HAVE_DLFCN_H 1
8293_ACEOF
8294
8295fi
8296
8297done
8298
8299
8300
8301
8302
8303# Set options
8304
8305
8306
8307 enable_dlopen=no
8308
8309
8310 enable_win32_dll=no
8311
8312
8313 # Check whether --enable-shared was given.
8314if test "${enable_shared+set}" = set; then :
8315 enableval=$enable_shared; p=${PACKAGE-default}
8316 case $enableval in
8317 yes) enable_shared=yes ;;
8318 no) enable_shared=no ;;
8319 *)
8320 enable_shared=no
8321 # Look at the argument we got. We use all the common list separators.
8322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8323 for pkg in $enableval; do
8324 IFS="$lt_save_ifs"
8325 if test "X$pkg" = "X$p"; then
8326 enable_shared=yes
8327 fi
8328 done
8329 IFS="$lt_save_ifs"
8330 ;;
8331 esac
8332else
8333 enable_shared=yes
8334fi
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344 # Check whether --enable-static was given.
8345if test "${enable_static+set}" = set; then :
8346 enableval=$enable_static; p=${PACKAGE-default}
8347 case $enableval in
8348 yes) enable_static=yes ;;
8349 no) enable_static=no ;;
8350 *)
8351 enable_static=no
8352 # Look at the argument we got. We use all the common list separators.
8353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8354 for pkg in $enableval; do
8355 IFS="$lt_save_ifs"
8356 if test "X$pkg" = "X$p"; then
8357 enable_static=yes
8358 fi
8359 done
8360 IFS="$lt_save_ifs"
8361 ;;
8362 esac
8363else
8364 enable_static=yes
8365fi
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376# Check whether --with-pic was given.
8377if test "${with_pic+set}" = set; then :
8378 withval=$with_pic; lt_p=${PACKAGE-default}
8379 case $withval in
8380 yes|no) pic_mode=$withval ;;
8381 *)
8382 pic_mode=default
8383 # Look at the argument we got. We use all the common list separators.
8384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8385 for lt_pkg in $withval; do
8386 IFS="$lt_save_ifs"
8387 if test "X$lt_pkg" = "X$lt_p"; then
8388 pic_mode=yes
8389 fi
8390 done
8391 IFS="$lt_save_ifs"
8392 ;;
8393 esac
8394else
8395 pic_mode=default
8396fi
8397
8398
8399test -z "$pic_mode" && pic_mode=default
8400
8401
8402
8403
8404
8405
8406
8407 # Check whether --enable-fast-install was given.
8408if test "${enable_fast_install+set}" = set; then :
8409 enableval=$enable_fast_install; p=${PACKAGE-default}
8410 case $enableval in
8411 yes) enable_fast_install=yes ;;
8412 no) enable_fast_install=no ;;
8413 *)
8414 enable_fast_install=no
8415 # Look at the argument we got. We use all the common list separators.
8416 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8417 for pkg in $enableval; do
8418 IFS="$lt_save_ifs"
8419 if test "X$pkg" = "X$p"; then
8420 enable_fast_install=yes
8421 fi
8422 done
8423 IFS="$lt_save_ifs"
8424 ;;
8425 esac
8426else
8427 enable_fast_install=yes
8428fi
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440# This can be used to rebuild libtool when needed
8441LIBTOOL_DEPS="$ltmain"
8442
8443# Always use our own libtool.
8444LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475test -z "$LN_S" && LN_S="ln -s"
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490if test -n "${ZSH_VERSION+set}" ; then
8491 setopt NO_GLOB_SUBST
8492fi
8493
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8495$as_echo_n "checking for objdir... " >&6; }
8496if ${lt_cv_objdir+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498else
8499 rm -f .libs 2>/dev/null
8500mkdir .libs 2>/dev/null
8501if test -d .libs; then
8502 lt_cv_objdir=.libs
8503else
8504 # MS-DOS does not allow filenames that begin with a dot.
8505 lt_cv_objdir=_libs
8506fi
8507rmdir .libs 2>/dev/null
8508fi
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8510$as_echo "$lt_cv_objdir" >&6; }
8511objdir=$lt_cv_objdir
8512
8513
8514
8515
8516
8517cat >>confdefs.h <<_ACEOF
8518#define LT_OBJDIR "$lt_cv_objdir/"
8519_ACEOF
8520
8521
8522
8523
8524case $host_os in
8525aix3*)
8526 # AIX sometimes has problems with the GCC collect2 program. For some
8527 # reason, if we set the COLLECT_NAMES environment variable, the problems
8528 # vanish in a puff of smoke.
8529 if test "X${COLLECT_NAMES+set}" != Xset; then
8530 COLLECT_NAMES=
8531 export COLLECT_NAMES
8532 fi
8533 ;;
8534esac
8535
8536# Global variables:
8537ofile=libtool
8538can_build_shared=yes
8539
8540# All known linkers require a `.a' archive for static linking (except MSVC,
8541# which needs '.lib').
8542libext=a
8543
8544with_gnu_ld="$lt_cv_prog_gnu_ld"
8545
8546old_CC="$CC"
8547old_CFLAGS="$CFLAGS"
8548
8549# Set sane defaults for various variables
8550test -z "$CC" && CC=cc
8551test -z "$LTCC" && LTCC=$CC
8552test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8553test -z "$LD" && LD=ld
8554test -z "$ac_objext" && ac_objext=o
8555
8556for cc_temp in $compiler""; do
8557 case $cc_temp in
8558 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8559 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8560 \-*) ;;
8561 *) break;;
8562 esac
8563done
8564cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8565
8566
8567# Only perform the check for file, if the check method requires it
8568test -z "$MAGIC_CMD" && MAGIC_CMD=file
8569case $deplibs_check_method in
8570file_magic*)
8571 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8573$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8574if ${lt_cv_path_MAGIC_CMD+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576else
8577 case $MAGIC_CMD in
8578[\\/*] | ?:[\\/]*)
8579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8580 ;;
8581*)
8582 lt_save_MAGIC_CMD="$MAGIC_CMD"
8583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8584 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8585 for ac_dir in $ac_dummy; do
8586 IFS="$lt_save_ifs"
8587 test -z "$ac_dir" && ac_dir=.
8588 if test -f $ac_dir/${ac_tool_prefix}file; then
8589 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8590 if test -n "$file_magic_test_file"; then
8591 case $deplibs_check_method in
8592 "file_magic "*)
8593 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8595 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8596 $EGREP "$file_magic_regex" > /dev/null; then
8597 :
8598 else
8599 cat <<_LT_EOF 1>&2
8600
8601*** Warning: the command libtool uses to detect shared libraries,
8602*** $file_magic_cmd, produces output that libtool cannot recognize.
8603*** The result is that libtool may fail to recognize shared libraries
8604*** as such. This will affect the creation of libtool libraries that
8605*** depend on shared libraries, but programs linked with such libtool
8606*** libraries will work regardless of this problem. Nevertheless, you
8607*** may want to report the problem to your system manager and/or to
8608*** bug-libtool@gnu.org
8609
8610_LT_EOF
8611 fi ;;
8612 esac
8613 fi
8614 break
8615 fi
8616 done
8617 IFS="$lt_save_ifs"
8618 MAGIC_CMD="$lt_save_MAGIC_CMD"
8619 ;;
8620esac
8621fi
8622
8623MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8624if test -n "$MAGIC_CMD"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8626$as_echo "$MAGIC_CMD" >&6; }
8627else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
8630fi
8631
8632
8633
8634
8635
8636if test -z "$lt_cv_path_MAGIC_CMD"; then
8637 if test -n "$ac_tool_prefix"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8639$as_echo_n "checking for file... " >&6; }
8640if ${lt_cv_path_MAGIC_CMD+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642else
8643 case $MAGIC_CMD in
8644[\\/*] | ?:[\\/]*)
8645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8646 ;;
8647*)
8648 lt_save_MAGIC_CMD="$MAGIC_CMD"
8649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8651 for ac_dir in $ac_dummy; do
8652 IFS="$lt_save_ifs"
8653 test -z "$ac_dir" && ac_dir=.
8654 if test -f $ac_dir/file; then
8655 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8656 if test -n "$file_magic_test_file"; then
8657 case $deplibs_check_method in
8658 "file_magic "*)
8659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8662 $EGREP "$file_magic_regex" > /dev/null; then
8663 :
8664 else
8665 cat <<_LT_EOF 1>&2
8666
8667*** Warning: the command libtool uses to detect shared libraries,
8668*** $file_magic_cmd, produces output that libtool cannot recognize.
8669*** The result is that libtool may fail to recognize shared libraries
8670*** as such. This will affect the creation of libtool libraries that
8671*** depend on shared libraries, but programs linked with such libtool
8672*** libraries will work regardless of this problem. Nevertheless, you
8673*** may want to report the problem to your system manager and/or to
8674*** bug-libtool@gnu.org
8675
8676_LT_EOF
8677 fi ;;
8678 esac
8679 fi
8680 break
8681 fi
8682 done
8683 IFS="$lt_save_ifs"
8684 MAGIC_CMD="$lt_save_MAGIC_CMD"
8685 ;;
8686esac
8687fi
8688
8689MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8690if test -n "$MAGIC_CMD"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8692$as_echo "$MAGIC_CMD" >&6; }
8693else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695$as_echo "no" >&6; }
8696fi
8697
8698
8699 else
8700 MAGIC_CMD=:
8701 fi
8702fi
8703
8704 fi
8705 ;;
8706esac
8707
8708# Use C for the default configuration in the libtool script
8709
8710lt_save_CC="$CC"
8711ac_ext=c
8712ac_cpp='$CPP $CPPFLAGS'
8713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715ac_compiler_gnu=$ac_cv_c_compiler_gnu
8716
8717
8718# Source file extension for C test sources.
8719ac_ext=c
8720
8721# Object file extension for compiled C test sources.
8722objext=o
8723objext=$objext
8724
8725# Code to be used in simple compile tests
8726lt_simple_compile_test_code="int some_variable = 0;"
8727
8728# Code to be used in simple link tests
8729lt_simple_link_test_code='int main(){return(0);}'
8730
8731
8732
8733
8734
8735
8736
8737# If no C compiler was specified, use CC.
8738LTCC=${LTCC-"$CC"}
8739
8740# If no C compiler flags were specified, use CFLAGS.
8741LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8742
8743# Allow CC to be a program name with arguments.
8744compiler=$CC
8745
8746# Save the default compiler, since it gets overwritten when the other
8747# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8748compiler_DEFAULT=$CC
8749
8750# save warnings/boilerplate of simple test code
8751ac_outfile=conftest.$ac_objext
8752echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8753eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8754_lt_compiler_boilerplate=`cat conftest.err`
8755$RM conftest*
8756
8757ac_outfile=conftest.$ac_objext
8758echo "$lt_simple_link_test_code" >conftest.$ac_ext
8759eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8760_lt_linker_boilerplate=`cat conftest.err`
8761$RM -r conftest*
8762
8763
8764## CAVEAT EMPTOR:
8765## There is no encapsulation within the following macros, do not change
8766## the running order or otherwise move them around unless you know exactly
8767## what you are doing...
8768if test -n "$compiler"; then
8769
8770lt_prog_compiler_no_builtin_flag=
8771
8772if test "$GCC" = yes; then
8773 case $cc_basename in
8774 nvcc*)
8775 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8776 *)
8777 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8778 esac
8779
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8781$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8782if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784else
8785 lt_cv_prog_compiler_rtti_exceptions=no
8786 ac_outfile=conftest.$ac_objext
8787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8788 lt_compiler_flag="-fno-rtti -fno-exceptions"
8789 # Insert the option either (1) after the last *FLAGS variable, or
8790 # (2) before a word containing "conftest.", or (3) at the end.
8791 # Note that $ac_compile itself does not contain backslashes and begins
8792 # with a dollar sign (not a hyphen), so the echo should work correctly.
8793 # The option is referenced via a variable to avoid confusing sed.
8794 lt_compile=`echo "$ac_compile" | $SED \
8795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797 -e 's:$: $lt_compiler_flag:'`
8798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8799 (eval "$lt_compile" 2>conftest.err)
8800 ac_status=$?
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 if (exit $ac_status) && test -s "$ac_outfile"; then
8804 # The compiler can only warn and ignore the option if not recognized
8805 # So say no if there are warnings other than the usual output.
8806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8809 lt_cv_prog_compiler_rtti_exceptions=yes
8810 fi
8811 fi
8812 $RM conftest*
8813
8814fi
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8816$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8817
8818if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8819 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8820else
8821 :
8822fi
8823
8824fi
8825
8826
8827
8828
8829
8830
8831 lt_prog_compiler_wl=
8832lt_prog_compiler_pic=
8833lt_prog_compiler_static=
8834
8835
8836 if test "$GCC" = yes; then
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_static='-static'
8839
8840 case $host_os in
8841 aix*)
8842 # All AIX code is PIC.
8843 if test "$host_cpu" = ia64; then
8844 # AIX 5 now supports IA64 processor
8845 lt_prog_compiler_static='-Bstatic'
8846 fi
8847 ;;
8848
8849 amigaos*)
8850 case $host_cpu in
8851 powerpc)
8852 # see comment about AmigaOS4 .so support
8853 lt_prog_compiler_pic='-fPIC'
8854 ;;
8855 m68k)
8856 # FIXME: we need at least 68020 code to build shared libraries, but
8857 # adding the `-m68020' flag to GCC prevents building anything better,
8858 # like `-m68040'.
8859 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8860 ;;
8861 esac
8862 ;;
8863
8864 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8865 # PIC is the default for these OSes.
8866 ;;
8867
8868 mingw* | cygwin* | pw32* | os2* | cegcc*)
8869 # This hack is so that the source file can tell whether it is being
8870 # built for inclusion in a dll (and should export symbols for example).
8871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8872 # (--disable-auto-import) libraries
8873 lt_prog_compiler_pic='-DDLL_EXPORT'
8874 ;;
8875
8876 darwin* | rhapsody*)
8877 # PIC is the default on this platform
8878 # Common symbols not allowed in MH_DYLIB files
8879 lt_prog_compiler_pic='-fno-common'
8880 ;;
8881
8882 haiku*)
8883 # PIC is the default for Haiku.
8884 # The "-static" flag exists, but is broken.
8885 lt_prog_compiler_static=
8886 ;;
8887
8888 hpux*)
8889 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8890 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8891 # sets the default TLS model and affects inlining.
8892 case $host_cpu in
8893 hppa*64*)
8894 # +Z the default
8895 ;;
8896 *)
8897 lt_prog_compiler_pic='-fPIC'
8898 ;;
8899 esac
8900 ;;
8901
8902 interix[3-9]*)
8903 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8904 # Instead, we relocate shared libraries at runtime.
8905 ;;
8906
8907 msdosdjgpp*)
8908 # Just because we use GCC doesn't mean we suddenly get shared libraries
8909 # on systems that don't support them.
8910 lt_prog_compiler_can_build_shared=no
8911 enable_shared=no
8912 ;;
8913
8914 *nto* | *qnx*)
8915 # QNX uses GNU C++, but need to define -shared option too, otherwise
8916 # it will coredump.
8917 lt_prog_compiler_pic='-fPIC -shared'
8918 ;;
8919
8920 sysv4*MP*)
8921 if test -d /usr/nec; then
8922 lt_prog_compiler_pic=-Kconform_pic
8923 fi
8924 ;;
8925
8926 *)
8927 lt_prog_compiler_pic='-fPIC'
8928 ;;
8929 esac
8930
8931 case $cc_basename in
8932 nvcc*) # Cuda Compiler Driver 2.2
8933 lt_prog_compiler_wl='-Xlinker '
8934 if test -n "$lt_prog_compiler_pic"; then
8935 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8936 fi
8937 ;;
8938 esac
8939 else
8940 # PORTME Check for flag to pass linker flags through the system compiler.
8941 case $host_os in
8942 aix*)
8943 lt_prog_compiler_wl='-Wl,'
8944 if test "$host_cpu" = ia64; then
8945 # AIX 5 now supports IA64 processor
8946 lt_prog_compiler_static='-Bstatic'
8947 else
8948 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8949 fi
8950 ;;
8951
8952 mingw* | cygwin* | pw32* | os2* | cegcc*)
8953 # This hack is so that the source file can tell whether it is being
8954 # built for inclusion in a dll (and should export symbols for example).
8955 lt_prog_compiler_pic='-DDLL_EXPORT'
8956 ;;
8957
8958 hpux9* | hpux10* | hpux11*)
8959 lt_prog_compiler_wl='-Wl,'
8960 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8961 # not for PA HP-UX.
8962 case $host_cpu in
8963 hppa*64*|ia64*)
8964 # +Z the default
8965 ;;
8966 *)
8967 lt_prog_compiler_pic='+Z'
8968 ;;
8969 esac
8970 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8971 lt_prog_compiler_static='${wl}-a ${wl}archive'
8972 ;;
8973
8974 irix5* | irix6* | nonstopux*)
8975 lt_prog_compiler_wl='-Wl,'
8976 # PIC (with -KPIC) is the default.
8977 lt_prog_compiler_static='-non_shared'
8978 ;;
8979
8980 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8981 case $cc_basename in
8982 # old Intel for x86_64 which still supported -KPIC.
8983 ecc*)
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-static'
8987 ;;
8988 # icc used to be incompatible with GCC.
8989 # ICC 10 doesn't accept -KPIC any more.
8990 icc* | ifort*)
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_pic='-fPIC'
8993 lt_prog_compiler_static='-static'
8994 ;;
8995 # Lahey Fortran 8.1.
8996 lf95*)
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='--shared'
8999 lt_prog_compiler_static='--static'
9000 ;;
9001 nagfor*)
9002 # NAG Fortran compiler
9003 lt_prog_compiler_wl='-Wl,-Wl,,'
9004 lt_prog_compiler_pic='-PIC'
9005 lt_prog_compiler_static='-Bstatic'
9006 ;;
9007 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9008 # Portland Group compilers (*not* the Pentium gcc compiler,
9009 # which looks to be a dead project)
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_pic='-fpic'
9012 lt_prog_compiler_static='-Bstatic'
9013 ;;
9014 ccc*)
9015 lt_prog_compiler_wl='-Wl,'
9016 # All Alpha code is PIC.
9017 lt_prog_compiler_static='-non_shared'
9018 ;;
9019 xl* | bgxl* | bgf* | mpixl*)
9020 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-qpic'
9023 lt_prog_compiler_static='-qstaticlink'
9024 ;;
9025 *)
9026 case `$CC -V 2>&1 | sed 5q` in
9027 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9028 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9029 lt_prog_compiler_pic='-KPIC'
9030 lt_prog_compiler_static='-Bstatic'
9031 lt_prog_compiler_wl=''
9032 ;;
9033 *Sun\ F* | *Sun*Fortran*)
9034 lt_prog_compiler_pic='-KPIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 lt_prog_compiler_wl='-Qoption ld '
9037 ;;
9038 *Sun\ C*)
9039 # Sun C 5.9
9040 lt_prog_compiler_pic='-KPIC'
9041 lt_prog_compiler_static='-Bstatic'
9042 lt_prog_compiler_wl='-Wl,'
9043 ;;
9044 *Intel*\ [CF]*Compiler*)
9045 lt_prog_compiler_wl='-Wl,'
9046 lt_prog_compiler_pic='-fPIC'
9047 lt_prog_compiler_static='-static'
9048 ;;
9049 *Portland\ Group*)
9050 lt_prog_compiler_wl='-Wl,'
9051 lt_prog_compiler_pic='-fpic'
9052 lt_prog_compiler_static='-Bstatic'
9053 ;;
9054 esac
9055 ;;
9056 esac
9057 ;;
9058
9059 newsos6)
9060 lt_prog_compiler_pic='-KPIC'
9061 lt_prog_compiler_static='-Bstatic'
9062 ;;
9063
9064 *nto* | *qnx*)
9065 # QNX uses GNU C++, but need to define -shared option too, otherwise
9066 # it will coredump.
9067 lt_prog_compiler_pic='-fPIC -shared'
9068 ;;
9069
9070 osf3* | osf4* | osf5*)
9071 lt_prog_compiler_wl='-Wl,'
9072 # All OSF/1 code is PIC.
9073 lt_prog_compiler_static='-non_shared'
9074 ;;
9075
9076 rdos*)
9077 lt_prog_compiler_static='-non_shared'
9078 ;;
9079
9080 solaris*)
9081 lt_prog_compiler_pic='-KPIC'
9082 lt_prog_compiler_static='-Bstatic'
9083 case $cc_basename in
9084 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9085 lt_prog_compiler_wl='-Qoption ld ';;
9086 *)
9087 lt_prog_compiler_wl='-Wl,';;
9088 esac
9089 ;;
9090
9091 sunos4*)
9092 lt_prog_compiler_wl='-Qoption ld '
9093 lt_prog_compiler_pic='-PIC'
9094 lt_prog_compiler_static='-Bstatic'
9095 ;;
9096
9097 sysv4 | sysv4.2uw2* | sysv4.3*)
9098 lt_prog_compiler_wl='-Wl,'
9099 lt_prog_compiler_pic='-KPIC'
9100 lt_prog_compiler_static='-Bstatic'
9101 ;;
9102
9103 sysv4*MP*)
9104 if test -d /usr/nec ;then
9105 lt_prog_compiler_pic='-Kconform_pic'
9106 lt_prog_compiler_static='-Bstatic'
9107 fi
9108 ;;
9109
9110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_pic='-KPIC'
9113 lt_prog_compiler_static='-Bstatic'
9114 ;;
9115
9116 unicos*)
9117 lt_prog_compiler_wl='-Wl,'
9118 lt_prog_compiler_can_build_shared=no
9119 ;;
9120
9121 uts4*)
9122 lt_prog_compiler_pic='-pic'
9123 lt_prog_compiler_static='-Bstatic'
9124 ;;
9125
9126 *)
9127 lt_prog_compiler_can_build_shared=no
9128 ;;
9129 esac
9130 fi
9131
9132case $host_os in
9133 # For platforms which do not support PIC, -DPIC is meaningless:
9134 *djgpp*)
9135 lt_prog_compiler_pic=
9136 ;;
9137 *)
9138 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9139 ;;
9140esac
9141
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9143$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9144if ${lt_cv_prog_compiler_pic+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146else
9147 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9148fi
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9150$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9151lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9152
9153#
9154# Check to make sure the PIC flag actually works.
9155#
9156if test -n "$lt_prog_compiler_pic"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9158$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9159if ${lt_cv_prog_compiler_pic_works+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161else
9162 lt_cv_prog_compiler_pic_works=no
9163 ac_outfile=conftest.$ac_objext
9164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9166 # Insert the option either (1) after the last *FLAGS variable, or
9167 # (2) before a word containing "conftest.", or (3) at the end.
9168 # Note that $ac_compile itself does not contain backslashes and begins
9169 # with a dollar sign (not a hyphen), so the echo should work correctly.
9170 # The option is referenced via a variable to avoid confusing sed.
9171 lt_compile=`echo "$ac_compile" | $SED \
9172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174 -e 's:$: $lt_compiler_flag:'`
9175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176 (eval "$lt_compile" 2>conftest.err)
9177 ac_status=$?
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 if (exit $ac_status) && test -s "$ac_outfile"; then
9181 # The compiler can only warn and ignore the option if not recognized
9182 # So say no if there are warnings other than the usual output.
9183 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9185 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9186 lt_cv_prog_compiler_pic_works=yes
9187 fi
9188 fi
9189 $RM conftest*
9190
9191fi
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9193$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9194
9195if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9196 case $lt_prog_compiler_pic in
9197 "" | " "*) ;;
9198 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9199 esac
9200else
9201 lt_prog_compiler_pic=
9202 lt_prog_compiler_can_build_shared=no
9203fi
9204
9205fi
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217#
9218# Check to make sure the static flag actually works.
9219#
9220wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9222$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9223if ${lt_cv_prog_compiler_static_works+:} false; then :
9224 $as_echo_n "(cached) " >&6
9225else
9226 lt_cv_prog_compiler_static_works=no
9227 save_LDFLAGS="$LDFLAGS"
9228 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9229 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9231 # The linker can only warn and ignore the option if not recognized
9232 # So say no if there are warnings
9233 if test -s conftest.err; then
9234 # Append any errors to the config.log.
9235 cat conftest.err 1>&5
9236 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9238 if diff conftest.exp conftest.er2 >/dev/null; then
9239 lt_cv_prog_compiler_static_works=yes
9240 fi
9241 else
9242 lt_cv_prog_compiler_static_works=yes
9243 fi
9244 fi
9245 $RM -r conftest*
9246 LDFLAGS="$save_LDFLAGS"
9247
9248fi
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9250$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9251
9252if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9253 :
9254else
9255 lt_prog_compiler_static=
9256fi
9257
9258
9259
9260
9261
9262
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9265$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9266if ${lt_cv_prog_compiler_c_o+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268else
9269 lt_cv_prog_compiler_c_o=no
9270 $RM -r conftest 2>/dev/null
9271 mkdir conftest
9272 cd conftest
9273 mkdir out
9274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9275
9276 lt_compiler_flag="-o out/conftest2.$ac_objext"
9277 # Insert the option either (1) after the last *FLAGS variable, or
9278 # (2) before a word containing "conftest.", or (3) at the end.
9279 # Note that $ac_compile itself does not contain backslashes and begins
9280 # with a dollar sign (not a hyphen), so the echo should work correctly.
9281 lt_compile=`echo "$ac_compile" | $SED \
9282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9284 -e 's:$: $lt_compiler_flag:'`
9285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9286 (eval "$lt_compile" 2>out/conftest.err)
9287 ac_status=$?
9288 cat out/conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9291 then
9292 # The compiler can only warn and ignore the option if not recognized
9293 # So say no if there are warnings
9294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9297 lt_cv_prog_compiler_c_o=yes
9298 fi
9299 fi
9300 chmod u+w . 2>&5
9301 $RM conftest*
9302 # SGI C++ compiler will create directory out/ii_files/ for
9303 # template instantiation
9304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9305 $RM out/* && rmdir out
9306 cd ..
9307 $RM -r conftest
9308 $RM conftest*
9309
9310fi
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9312$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9313
9314
9315
9316
9317
9318
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9320$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9321if ${lt_cv_prog_compiler_c_o+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323else
9324 lt_cv_prog_compiler_c_o=no
9325 $RM -r conftest 2>/dev/null
9326 mkdir conftest
9327 cd conftest
9328 mkdir out
9329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9330
9331 lt_compiler_flag="-o out/conftest2.$ac_objext"
9332 # Insert the option either (1) after the last *FLAGS variable, or
9333 # (2) before a word containing "conftest.", or (3) at the end.
9334 # Note that $ac_compile itself does not contain backslashes and begins
9335 # with a dollar sign (not a hyphen), so the echo should work correctly.
9336 lt_compile=`echo "$ac_compile" | $SED \
9337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9339 -e 's:$: $lt_compiler_flag:'`
9340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9341 (eval "$lt_compile" 2>out/conftest.err)
9342 ac_status=$?
9343 cat out/conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9346 then
9347 # The compiler can only warn and ignore the option if not recognized
9348 # So say no if there are warnings
9349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9350 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9351 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9352 lt_cv_prog_compiler_c_o=yes
9353 fi
9354 fi
9355 chmod u+w . 2>&5
9356 $RM conftest*
9357 # SGI C++ compiler will create directory out/ii_files/ for
9358 # template instantiation
9359 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9360 $RM out/* && rmdir out
9361 cd ..
9362 $RM -r conftest
9363 $RM conftest*
9364
9365fi
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9367$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9368
9369
9370
9371
9372hard_links="nottested"
9373if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9374 # do not overwrite the value of need_locks provided by the user
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9376$as_echo_n "checking if we can lock with hard links... " >&6; }
9377 hard_links=yes
9378 $RM conftest*
9379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9380 touch conftest.a
9381 ln conftest.a conftest.b 2>&5 || hard_links=no
9382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9384$as_echo "$hard_links" >&6; }
9385 if test "$hard_links" = no; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9387$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9388 need_locks=warn
9389 fi
9390else
9391 need_locks=no
9392fi
9393
9394
9395
9396
9397
9398
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9400$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9401
9402 runpath_var=
9403 allow_undefined_flag=
9404 always_export_symbols=no
9405 archive_cmds=
9406 archive_expsym_cmds=
9407 compiler_needs_object=no
9408 enable_shared_with_static_runtimes=no
9409 export_dynamic_flag_spec=
9410 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9411 hardcode_automatic=no
9412 hardcode_direct=no
9413 hardcode_direct_absolute=no
9414 hardcode_libdir_flag_spec=
9415 hardcode_libdir_separator=
9416 hardcode_minus_L=no
9417 hardcode_shlibpath_var=unsupported
9418 inherit_rpath=no
9419 link_all_deplibs=unknown
9420 module_cmds=
9421 module_expsym_cmds=
9422 old_archive_from_new_cmds=
9423 old_archive_from_expsyms_cmds=
9424 thread_safe_flag_spec=
9425 whole_archive_flag_spec=
9426 # include_expsyms should be a list of space-separated symbols to be *always*
9427 # included in the symbol list
9428 include_expsyms=
9429 # exclude_expsyms can be an extended regexp of symbols to exclude
9430 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9431 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9432 # as well as any symbol that contains `d'.
9433 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9434 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9435 # platforms (ab)use it in PIC code, but their linkers get confused if
9436 # the symbol is explicitly referenced. Since portable code cannot
9437 # rely on this symbol name, it's probably fine to never include it in
9438 # preloaded symbol tables.
9439 # Exclude shared library initialization/finalization symbols.
9440 extract_expsyms_cmds=
9441
9442 case $host_os in
9443 cygwin* | mingw* | pw32* | cegcc*)
9444 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9445 # When not using gcc, we currently assume that we are using
9446 # Microsoft Visual C++.
9447 if test "$GCC" != yes; then
9448 with_gnu_ld=no
9449 fi
9450 ;;
9451 interix*)
9452 # we just hope/assume this is gcc and not c89 (= MSVC++)
9453 with_gnu_ld=yes
9454 ;;
9455 openbsd*)
9456 with_gnu_ld=no
9457 ;;
9458 esac
9459
9460 ld_shlibs=yes
9461
9462 # On some targets, GNU ld is compatible enough with the native linker
9463 # that we're better off using the native interface for both.
9464 lt_use_gnu_ld_interface=no
9465 if test "$with_gnu_ld" = yes; then
9466 case $host_os in
9467 aix*)
9468 # The AIX port of GNU ld has always aspired to compatibility
9469 # with the native linker. However, as the warning in the GNU ld
9470 # block says, versions before 2.19.5* couldn't really create working
9471 # shared libraries, regardless of the interface used.
9472 case `$LD -v 2>&1` in
9473 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9474 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9475 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9476 *)
9477 lt_use_gnu_ld_interface=yes
9478 ;;
9479 esac
9480 ;;
9481 *)
9482 lt_use_gnu_ld_interface=yes
9483 ;;
9484 esac
9485 fi
9486
9487 if test "$lt_use_gnu_ld_interface" = yes; then
9488 # If archive_cmds runs LD, not CC, wlarc should be empty
9489 wlarc='${wl}'
9490
9491 # Set some defaults for GNU ld with shared library support. These
9492 # are reset later if shared libraries are not supported. Putting them
9493 # here allows them to be overridden if necessary.
9494 runpath_var=LD_RUN_PATH
9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496 export_dynamic_flag_spec='${wl}--export-dynamic'
9497 # ancient GNU ld didn't support --whole-archive et. al.
9498 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9499 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9500 else
9501 whole_archive_flag_spec=
9502 fi
9503 supports_anon_versioning=no
9504 case `$LD -v 2>&1` in
9505 *GNU\ gold*) supports_anon_versioning=yes ;;
9506 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9507 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9508 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9509 *\ 2.11.*) ;; # other 2.11 versions
9510 *) supports_anon_versioning=yes ;;
9511 esac
9512
9513 # See if GNU ld supports shared libraries.
9514 case $host_os in
9515 aix[3-9]*)
9516 # On AIX/PPC, the GNU linker is very broken
9517 if test "$host_cpu" != ia64; then
9518 ld_shlibs=no
9519 cat <<_LT_EOF 1>&2
9520
9521*** Warning: the GNU linker, at least up to release 2.19, is reported
9522*** to be unable to reliably create shared libraries on AIX.
9523*** Therefore, libtool is disabling shared libraries support. If you
9524*** really care for shared libraries, you may want to install binutils
9525*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9526*** You will then need to restart the configuration process.
9527
9528_LT_EOF
9529 fi
9530 ;;
9531
9532 amigaos*)
9533 case $host_cpu in
9534 powerpc)
9535 # see comment about AmigaOS4 .so support
9536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537 archive_expsym_cmds=''
9538 ;;
9539 m68k)
9540 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)'
9541 hardcode_libdir_flag_spec='-L$libdir'
9542 hardcode_minus_L=yes
9543 ;;
9544 esac
9545 ;;
9546
9547 beos*)
9548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549 allow_undefined_flag=unsupported
9550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9551 # support --undefined. This deserves some investigation. FIXME
9552 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553 else
9554 ld_shlibs=no
9555 fi
9556 ;;
9557
9558 cygwin* | mingw* | pw32* | cegcc*)
9559 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9560 # as there is no search path for DLLs.
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 export_dynamic_flag_spec='${wl}--export-all-symbols'
9563 allow_undefined_flag=unsupported
9564 always_export_symbols=no
9565 enable_shared_with_static_runtimes=yes
9566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9567 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9568
9569 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9571 # If the export-symbols file already is a .def file (1st line
9572 # is EXPORTS), use it as is; otherwise, prepend...
9573 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9574 cp $export_symbols $output_objdir/$soname.def;
9575 else
9576 echo EXPORTS > $output_objdir/$soname.def;
9577 cat $export_symbols >> $output_objdir/$soname.def;
9578 fi~
9579 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9580 else
9581 ld_shlibs=no
9582 fi
9583 ;;
9584
9585 haiku*)
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 link_all_deplibs=yes
9588 ;;
9589
9590 interix[3-9]*)
9591 hardcode_direct=no
9592 hardcode_shlibpath_var=no
9593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9594 export_dynamic_flag_spec='${wl}-E'
9595 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9596 # Instead, shared libraries are loaded at an image base (0x10000000 by
9597 # default) and relocated if they conflict, which is a slow very memory
9598 # consuming and fragmenting process. To avoid this, we pick a random,
9599 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9600 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9602 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'
9603 ;;
9604
9605 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9606 tmp_diet=no
9607 if test "$host_os" = linux-dietlibc; then
9608 case $cc_basename in
9609 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9610 esac
9611 fi
9612 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9613 && test "$tmp_diet" = no
9614 then
9615 tmp_addflag=' $pic_flag'
9616 tmp_sharedflag='-shared'
9617 case $cc_basename,$host_cpu in
9618 pgcc*) # Portland Group C compiler
9619 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'
9620 tmp_addflag=' $pic_flag'
9621 ;;
9622 pgf77* | pgf90* | pgf95* | pgfortran*)
9623 # Portland Group f77 and f90 compilers
9624 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'
9625 tmp_addflag=' $pic_flag -Mnomain' ;;
9626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9627 tmp_addflag=' -i_dynamic' ;;
9628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9629 tmp_addflag=' -i_dynamic -nofor_main' ;;
9630 ifc* | ifort*) # Intel Fortran compiler
9631 tmp_addflag=' -nofor_main' ;;
9632 lf95*) # Lahey Fortran 8.1
9633 whole_archive_flag_spec=
9634 tmp_sharedflag='--shared' ;;
9635 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9636 tmp_sharedflag='-qmkshrobj'
9637 tmp_addflag= ;;
9638 nvcc*) # Cuda Compiler Driver 2.2
9639 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'
9640 compiler_needs_object=yes
9641 ;;
9642 esac
9643 case `$CC -V 2>&1 | sed 5q` in
9644 *Sun\ C*) # Sun C 5.9
9645 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'
9646 compiler_needs_object=yes
9647 tmp_sharedflag='-G' ;;
9648 *Sun\ F*) # Sun Fortran 8.3
9649 tmp_sharedflag='-G' ;;
9650 esac
9651 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652
9653 if test "x$supports_anon_versioning" = xyes; then
9654 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9656 echo "local: *; };" >> $output_objdir/$libname.ver~
9657 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9658 fi
9659
9660 case $cc_basename in
9661 xlf* | bgf* | bgxlf* | mpixlf*)
9662 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9663 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9666 if test "x$supports_anon_versioning" = xyes; then
9667 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9669 echo "local: *; };" >> $output_objdir/$libname.ver~
9670 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9671 fi
9672 ;;
9673 esac
9674 else
9675 ld_shlibs=no
9676 fi
9677 ;;
9678
9679 netbsd*)
9680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9681 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9682 wlarc=
9683 else
9684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9686 fi
9687 ;;
9688
9689 solaris*)
9690 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9691 ld_shlibs=no
9692 cat <<_LT_EOF 1>&2
9693
9694*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9695*** create shared libraries on Solaris systems. Therefore, libtool
9696*** is disabling shared libraries support. We urge you to upgrade GNU
9697*** binutils to release 2.9.1 or newer. Another option is to modify
9698*** your PATH or compiler configuration so that the native linker is
9699*** used, and then restart.
9700
9701_LT_EOF
9702 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9705 else
9706 ld_shlibs=no
9707 fi
9708 ;;
9709
9710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9711 case `$LD -v 2>&1` in
9712 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9713 ld_shlibs=no
9714 cat <<_LT_EOF 1>&2
9715
9716*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9717*** reliably create shared libraries on SCO systems. Therefore, libtool
9718*** is disabling shared libraries support. We urge you to upgrade GNU
9719*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9720*** your PATH or compiler configuration so that the native linker is
9721*** used, and then restart.
9722
9723_LT_EOF
9724 ;;
9725 *)
9726 # For security reasons, it is highly recommended that you always
9727 # use absolute paths for naming shared libraries, and exclude the
9728 # DT_RUNPATH tag from executables and libraries. But doing so
9729 # requires that you compile everything twice, which is a pain.
9730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9734 else
9735 ld_shlibs=no
9736 fi
9737 ;;
9738 esac
9739 ;;
9740
9741 sunos4*)
9742 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9743 wlarc=
9744 hardcode_direct=yes
9745 hardcode_shlibpath_var=no
9746 ;;
9747
9748 *)
9749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9752 else
9753 ld_shlibs=no
9754 fi
9755 ;;
9756 esac
9757
9758 if test "$ld_shlibs" = no; then
9759 runpath_var=
9760 hardcode_libdir_flag_spec=
9761 export_dynamic_flag_spec=
9762 whole_archive_flag_spec=
9763 fi
9764 else
9765 # PORTME fill in a description of your system's linker (not GNU ld)
9766 case $host_os in
9767 aix3*)
9768 allow_undefined_flag=unsupported
9769 always_export_symbols=yes
9770 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'
9771 # Note: this linker hardcodes the directories in LIBPATH if there
9772 # are no directories specified by -L.
9773 hardcode_minus_L=yes
9774 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9775 # Neither direct hardcoding nor static linking is supported with a
9776 # broken collect2.
9777 hardcode_direct=unsupported
9778 fi
9779 ;;
9780
9781 aix[4-9]*)
9782 if test "$host_cpu" = ia64; then
9783 # On IA64, the linker does run time linking by default, so we don't
9784 # have to do anything special.
9785 aix_use_runtimelinking=no
9786 exp_sym_flag='-Bexport'
9787 no_entry_flag=""
9788 else
9789 # If we're using GNU nm, then we don't want the "-C" option.
9790 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9791 # Also, AIX nm treats weak defined symbols like other global
9792 # defined symbols, whereas GNU nm marks them as "W".
9793 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9794 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'
9795 else
9796 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9797 fi
9798 aix_use_runtimelinking=no
9799
9800 # Test if we are trying to use run time linking or normal
9801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9802 # need to do runtime linking.
9803 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9804 for ld_flag in $LDFLAGS; do
9805 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9806 aix_use_runtimelinking=yes
9807 break
9808 fi
9809 done
9810 ;;
9811 esac
9812
9813 exp_sym_flag='-bexport'
9814 no_entry_flag='-bnoentry'
9815 fi
9816
9817 # When large executables or shared objects are built, AIX ld can
9818 # have problems creating the table of contents. If linking a library
9819 # or program results in "error TOC overflow" add -mminimal-toc to
9820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9822
9823 archive_cmds=''
9824 hardcode_direct=yes
9825 hardcode_direct_absolute=yes
9826 hardcode_libdir_separator=':'
9827 link_all_deplibs=yes
9828 file_list_spec='${wl}-f,'
9829
9830 if test "$GCC" = yes; then
9831 case $host_os in aix4.[012]|aix4.[012].*)
9832 # We only want to do this on AIX 4.2 and lower, the check
9833 # below for broken collect2 doesn't work under 4.3+
9834 collect2name=`${CC} -print-prog-name=collect2`
9835 if test -f "$collect2name" &&
9836 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9837 then
9838 # We have reworked collect2
9839 :
9840 else
9841 # We have old collect2
9842 hardcode_direct=unsupported
9843 # It fails to find uninstalled libraries when the uninstalled
9844 # path is not listed in the libpath. Setting hardcode_minus_L
9845 # to unsupported forces relinking
9846 hardcode_minus_L=yes
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_libdir_separator=
9849 fi
9850 ;;
9851 esac
9852 shared_flag='-shared'
9853 if test "$aix_use_runtimelinking" = yes; then
9854 shared_flag="$shared_flag "'${wl}-G'
9855 fi
9856 else
9857 # not using gcc
9858 if test "$host_cpu" = ia64; then
9859 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9860 # chokes on -Wl,-G. The following line is correct:
9861 shared_flag='-G'
9862 else
9863 if test "$aix_use_runtimelinking" = yes; then
9864 shared_flag='${wl}-G'
9865 else
9866 shared_flag='${wl}-bM:SRE'
9867 fi
9868 fi
9869 fi
9870
9871 export_dynamic_flag_spec='${wl}-bexpall'
9872 # It seems that -bexpall does not export symbols beginning with
9873 # underscore (_), so it is better to generate a list of symbols to export.
9874 always_export_symbols=yes
9875 if test "$aix_use_runtimelinking" = yes; then
9876 # Warning - without using the other runtime loading flags (-brtl),
9877 # -berok will link without error, but may produce a broken library.
9878 allow_undefined_flag='-berok'
9879 # Determine the default libpath from the value encoded in an
9880 # empty executable.
9881 if test "${lt_cv_aix_libpath+set}" = set; then
9882 aix_libpath=$lt_cv_aix_libpath
9883else
9884 if ${lt_cv_aix_libpath_+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h. */
9889
9890int
9891main ()
9892{
9893
9894 ;
9895 return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899
9900 lt_aix_libpath_sed='
9901 /Import File Strings/,/^$/ {
9902 /^0/ {
9903 s/^0 *\([^ ]*\) *$/\1/
9904 p
9905 }
9906 }'
9907 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9908 # Check for a 64-bit object if we didn't find anything.
9909 if test -z "$lt_cv_aix_libpath_"; then
9910 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9911 fi
9912fi
9913rm -f core conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
9915 if test -z "$lt_cv_aix_libpath_"; then
9916 lt_cv_aix_libpath_="/usr/lib:/lib"
9917 fi
9918
9919fi
9920
9921 aix_libpath=$lt_cv_aix_libpath_
9922fi
9923
9924 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9925 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"
9926 else
9927 if test "$host_cpu" = ia64; then
9928 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9929 allow_undefined_flag="-z nodefs"
9930 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"
9931 else
9932 # Determine the default libpath from the value encoded in an
9933 # empty executable.
9934 if test "${lt_cv_aix_libpath+set}" = set; then
9935 aix_libpath=$lt_cv_aix_libpath
9936else
9937 if ${lt_cv_aix_libpath_+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h. */
9942
9943int
9944main ()
9945{
9946
9947 ;
9948 return 0;
9949}
9950_ACEOF
9951if ac_fn_c_try_link "$LINENO"; then :
9952
9953 lt_aix_libpath_sed='
9954 /Import File Strings/,/^$/ {
9955 /^0/ {
9956 s/^0 *\([^ ]*\) *$/\1/
9957 p
9958 }
9959 }'
9960 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9961 # Check for a 64-bit object if we didn't find anything.
9962 if test -z "$lt_cv_aix_libpath_"; then
9963 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9964 fi
9965fi
9966rm -f core conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9968 if test -z "$lt_cv_aix_libpath_"; then
9969 lt_cv_aix_libpath_="/usr/lib:/lib"
9970 fi
9971
9972fi
9973
9974 aix_libpath=$lt_cv_aix_libpath_
9975fi
9976
9977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9978 # Warning - without using the other run time loading flags,
9979 # -berok will link without error, but may produce a broken library.
9980 no_undefined_flag=' ${wl}-bernotok'
9981 allow_undefined_flag=' ${wl}-berok'
9982 if test "$with_gnu_ld" = yes; then
9983 # We only use this code for GNU lds that support --whole-archive.
9984 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9985 else
9986 # Exported symbols can be pulled into shared objects from archives
9987 whole_archive_flag_spec='$convenience'
9988 fi
9989 archive_cmds_need_lc=yes
9990 # This is similar to how AIX traditionally builds its shared libraries.
9991 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'
9992 fi
9993 fi
9994 ;;
9995
9996 amigaos*)
9997 case $host_cpu in
9998 powerpc)
9999 # see comment about AmigaOS4 .so support
10000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10001 archive_expsym_cmds=''
10002 ;;
10003 m68k)
10004 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)'
10005 hardcode_libdir_flag_spec='-L$libdir'
10006 hardcode_minus_L=yes
10007 ;;
10008 esac
10009 ;;
10010
10011 bsdi[45]*)
10012 export_dynamic_flag_spec=-rdynamic
10013 ;;
10014
10015 cygwin* | mingw* | pw32* | cegcc*)
10016 # When not using gcc, we currently assume that we are using
10017 # Microsoft Visual C++.
10018 # hardcode_libdir_flag_spec is actually meaningless, as there is
10019 # no search path for DLLs.
10020 case $cc_basename in
10021 cl*)
10022 # Native MSVC
10023 hardcode_libdir_flag_spec=' '
10024 allow_undefined_flag=unsupported
10025 always_export_symbols=yes
10026 file_list_spec='@'
10027 # Tell ltmain to make .lib files, not .a files.
10028 libext=lib
10029 # Tell ltmain to make .dll files, not .so files.
10030 shrext_cmds=".dll"
10031 # FIXME: Setting linknames here is a bad hack.
10032 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10033 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10034 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10035 else
10036 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10037 fi~
10038 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10039 linknames='
10040 # The linker will not automatically build a static lib if we build a DLL.
10041 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10042 enable_shared_with_static_runtimes=yes
10043 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10044 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10045 # Don't use ranlib
10046 old_postinstall_cmds='chmod 644 $oldlib'
10047 postlink_cmds='lt_outputfile="@OUTPUT@"~
10048 lt_tool_outputfile="@TOOL_OUTPUT@"~
10049 case $lt_outputfile in
10050 *.exe|*.EXE) ;;
10051 *)
10052 lt_outputfile="$lt_outputfile.exe"
10053 lt_tool_outputfile="$lt_tool_outputfile.exe"
10054 ;;
10055 esac~
10056 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10057 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10058 $RM "$lt_outputfile.manifest";
10059 fi'
10060 ;;
10061 *)
10062 # Assume MSVC wrapper
10063 hardcode_libdir_flag_spec=' '
10064 allow_undefined_flag=unsupported
10065 # Tell ltmain to make .lib files, not .a files.
10066 libext=lib
10067 # Tell ltmain to make .dll files, not .so files.
10068 shrext_cmds=".dll"
10069 # FIXME: Setting linknames here is a bad hack.
10070 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10071 # The linker will automatically build a .lib file if we build a DLL.
10072 old_archive_from_new_cmds='true'
10073 # FIXME: Should let the user specify the lib program.
10074 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10075 enable_shared_with_static_runtimes=yes
10076 ;;
10077 esac
10078 ;;
10079
10080 darwin* | rhapsody*)
10081
10082
10083 archive_cmds_need_lc=no
10084 hardcode_direct=no
10085 hardcode_automatic=yes
10086 hardcode_shlibpath_var=unsupported
10087 if test "$lt_cv_ld_force_load" = "yes"; then
10088 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\"`'
10089
10090 else
10091 whole_archive_flag_spec=''
10092 fi
10093 link_all_deplibs=yes
10094 allow_undefined_flag="$_lt_dar_allow_undefined"
10095 case $cc_basename in
10096 ifort*) _lt_dar_can_shared=yes ;;
10097 *) _lt_dar_can_shared=$GCC ;;
10098 esac
10099 if test "$_lt_dar_can_shared" = "yes"; then
10100 output_verbose_link_cmd=func_echo_all
10101 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10102 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10103 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}"
10104 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}"
10105
10106 else
10107 ld_shlibs=no
10108 fi
10109
10110 ;;
10111
10112 dgux*)
10113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114 hardcode_libdir_flag_spec='-L$libdir'
10115 hardcode_shlibpath_var=no
10116 ;;
10117
10118 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10119 # support. Future versions do this automatically, but an explicit c++rt0.o
10120 # does not break anything, and helps significantly (at the cost of a little
10121 # extra space).
10122 freebsd2.2*)
10123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10124 hardcode_libdir_flag_spec='-R$libdir'
10125 hardcode_direct=yes
10126 hardcode_shlibpath_var=no
10127 ;;
10128
10129 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10130 freebsd2.*)
10131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10132 hardcode_direct=yes
10133 hardcode_minus_L=yes
10134 hardcode_shlibpath_var=no
10135 ;;
10136
10137 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10138 freebsd* | dragonfly*)
10139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10140 hardcode_libdir_flag_spec='-R$libdir'
10141 hardcode_direct=yes
10142 hardcode_shlibpath_var=no
10143 ;;
10144
10145 hpux9*)
10146 if test "$GCC" = yes; then
10147 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10148 else
10149 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'
10150 fi
10151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10152 hardcode_libdir_separator=:
10153 hardcode_direct=yes
10154
10155 # hardcode_minus_L: Not really in the search PATH,
10156 # but as the default location of the library.
10157 hardcode_minus_L=yes
10158 export_dynamic_flag_spec='${wl}-E'
10159 ;;
10160
10161 hpux10*)
10162 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10163 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10164 else
10165 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10166 fi
10167 if test "$with_gnu_ld" = no; then
10168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10169 hardcode_libdir_separator=:
10170 hardcode_direct=yes
10171 hardcode_direct_absolute=yes
10172 export_dynamic_flag_spec='${wl}-E'
10173 # hardcode_minus_L: Not really in the search PATH,
10174 # but as the default location of the library.
10175 hardcode_minus_L=yes
10176 fi
10177 ;;
10178
10179 hpux11*)
10180 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10181 case $host_cpu in
10182 hppa*64*)
10183 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 ;;
10185 ia64*)
10186 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10187 ;;
10188 *)
10189 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10190 ;;
10191 esac
10192 else
10193 case $host_cpu in
10194 hppa*64*)
10195 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 ;;
10197 ia64*)
10198 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10199 ;;
10200 *)
10201
10202 # Older versions of the 11.00 compiler do not understand -b yet
10203 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10205$as_echo_n "checking if $CC understands -b... " >&6; }
10206if ${lt_cv_prog_compiler__b+:} false; then :
10207 $as_echo_n "(cached) " >&6
10208else
10209 lt_cv_prog_compiler__b=no
10210 save_LDFLAGS="$LDFLAGS"
10211 LDFLAGS="$LDFLAGS -b"
10212 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10214 # The linker can only warn and ignore the option if not recognized
10215 # So say no if there are warnings
10216 if test -s conftest.err; then
10217 # Append any errors to the config.log.
10218 cat conftest.err 1>&5
10219 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10221 if diff conftest.exp conftest.er2 >/dev/null; then
10222 lt_cv_prog_compiler__b=yes
10223 fi
10224 else
10225 lt_cv_prog_compiler__b=yes
10226 fi
10227 fi
10228 $RM -r conftest*
10229 LDFLAGS="$save_LDFLAGS"
10230
10231fi
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10233$as_echo "$lt_cv_prog_compiler__b" >&6; }
10234
10235if test x"$lt_cv_prog_compiler__b" = xyes; then
10236 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10237else
10238 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10239fi
10240
10241 ;;
10242 esac
10243 fi
10244 if test "$with_gnu_ld" = no; then
10245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10246 hardcode_libdir_separator=:
10247
10248 case $host_cpu in
10249 hppa*64*|ia64*)
10250 hardcode_direct=no
10251 hardcode_shlibpath_var=no
10252 ;;
10253 *)
10254 hardcode_direct=yes
10255 hardcode_direct_absolute=yes
10256 export_dynamic_flag_spec='${wl}-E'
10257
10258 # hardcode_minus_L: Not really in the search PATH,
10259 # but as the default location of the library.
10260 hardcode_minus_L=yes
10261 ;;
10262 esac
10263 fi
10264 ;;
10265
10266 irix5* | irix6* | nonstopux*)
10267 if test "$GCC" = yes; then
10268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10269 # Try to use the -exported_symbol ld option, if it does not
10270 # work, assume that -exports_file does not work either and
10271 # implicitly export all symbols.
10272 # This should be the same for all languages, so no per-tag cache variable.
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10274$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10275if ${lt_cv_irix_exported_symbol+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277else
10278 save_LDFLAGS="$LDFLAGS"
10279 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h. */
10282int foo (void) { return 0; }
10283_ACEOF
10284if ac_fn_c_try_link "$LINENO"; then :
10285 lt_cv_irix_exported_symbol=yes
10286else
10287 lt_cv_irix_exported_symbol=no
10288fi
10289rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LDFLAGS="$save_LDFLAGS"
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10294$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10295 if test "$lt_cv_irix_exported_symbol" = yes; then
10296 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10297 fi
10298 else
10299 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'
10300 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'
10301 fi
10302 archive_cmds_need_lc='no'
10303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10304 hardcode_libdir_separator=:
10305 inherit_rpath=yes
10306 link_all_deplibs=yes
10307 ;;
10308
10309 netbsd*)
10310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10312 else
10313 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10314 fi
10315 hardcode_libdir_flag_spec='-R$libdir'
10316 hardcode_direct=yes
10317 hardcode_shlibpath_var=no
10318 ;;
10319
10320 newsos6)
10321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10322 hardcode_direct=yes
10323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10324 hardcode_libdir_separator=:
10325 hardcode_shlibpath_var=no
10326 ;;
10327
10328 *nto* | *qnx*)
10329 ;;
10330
10331 openbsd*)
10332 if test -f /usr/libexec/ld.so; then
10333 hardcode_direct=yes
10334 hardcode_shlibpath_var=no
10335 hardcode_direct_absolute=yes
10336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10340 export_dynamic_flag_spec='${wl}-E'
10341 else
10342 case $host_os in
10343 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10345 hardcode_libdir_flag_spec='-R$libdir'
10346 ;;
10347 *)
10348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10349 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10350 ;;
10351 esac
10352 fi
10353 else
10354 ld_shlibs=no
10355 fi
10356 ;;
10357
10358 os2*)
10359 hardcode_libdir_flag_spec='-L$libdir'
10360 hardcode_minus_L=yes
10361 allow_undefined_flag=unsupported
10362 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'
10363 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10364 ;;
10365
10366 osf3*)
10367 if test "$GCC" = yes; then
10368 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10369 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'
10370 else
10371 allow_undefined_flag=' -expect_unresolved \*'
10372 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'
10373 fi
10374 archive_cmds_need_lc='no'
10375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10376 hardcode_libdir_separator=:
10377 ;;
10378
10379 osf4* | osf5*) # as osf3* with the addition of -msym flag
10380 if test "$GCC" = yes; then
10381 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10382 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10384 else
10385 allow_undefined_flag=' -expect_unresolved \*'
10386 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'
10387 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~
10388 $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'
10389
10390 # Both c and cxx compiler support -rpath directly
10391 hardcode_libdir_flag_spec='-rpath $libdir'
10392 fi
10393 archive_cmds_need_lc='no'
10394 hardcode_libdir_separator=:
10395 ;;
10396
10397 solaris*)
10398 no_undefined_flag=' -z defs'
10399 if test "$GCC" = yes; then
10400 wlarc='${wl}'
10401 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10403 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10404 else
10405 case `$CC -V 2>&1` in
10406 *"Compilers 5.0"*)
10407 wlarc=''
10408 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10410 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10411 ;;
10412 *)
10413 wlarc='${wl}'
10414 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10415 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10416 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10417 ;;
10418 esac
10419 fi
10420 hardcode_libdir_flag_spec='-R$libdir'
10421 hardcode_shlibpath_var=no
10422 case $host_os in
10423 solaris2.[0-5] | solaris2.[0-5].*) ;;
10424 *)
10425 # The compiler driver will combine and reorder linker options,
10426 # but understands `-z linker_flag'. GCC discards it without `$wl',
10427 # but is careful enough not to reorder.
10428 # Supported since Solaris 2.6 (maybe 2.5.1?)
10429 if test "$GCC" = yes; then
10430 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10431 else
10432 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10433 fi
10434 ;;
10435 esac
10436 link_all_deplibs=yes
10437 ;;
10438
10439 sunos4*)
10440 if test "x$host_vendor" = xsequent; then
10441 # Use $CC to link under sequent, because it throws in some extra .o
10442 # files that make .init and .fini sections work.
10443 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10444 else
10445 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10446 fi
10447 hardcode_libdir_flag_spec='-L$libdir'
10448 hardcode_direct=yes
10449 hardcode_minus_L=yes
10450 hardcode_shlibpath_var=no
10451 ;;
10452
10453 sysv4)
10454 case $host_vendor in
10455 sni)
10456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10457 hardcode_direct=yes # is this really true???
10458 ;;
10459 siemens)
10460 ## LD is ld it makes a PLAMLIB
10461 ## CC just makes a GrossModule.
10462 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10463 reload_cmds='$CC -r -o $output$reload_objs'
10464 hardcode_direct=no
10465 ;;
10466 motorola)
10467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10469 ;;
10470 esac
10471 runpath_var='LD_RUN_PATH'
10472 hardcode_shlibpath_var=no
10473 ;;
10474
10475 sysv4.3*)
10476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477 hardcode_shlibpath_var=no
10478 export_dynamic_flag_spec='-Bexport'
10479 ;;
10480
10481 sysv4*MP*)
10482 if test -d /usr/nec; then
10483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484 hardcode_shlibpath_var=no
10485 runpath_var=LD_RUN_PATH
10486 hardcode_runpath_var=yes
10487 ld_shlibs=yes
10488 fi
10489 ;;
10490
10491 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10492 no_undefined_flag='${wl}-z,text'
10493 archive_cmds_need_lc=no
10494 hardcode_shlibpath_var=no
10495 runpath_var='LD_RUN_PATH'
10496
10497 if test "$GCC" = yes; then
10498 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500 else
10501 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10502 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10503 fi
10504 ;;
10505
10506 sysv5* | sco3.2v5* | sco5v6*)
10507 # Note: We can NOT use -z defs as we might desire, because we do not
10508 # link with -lc, and that would cause any symbols used from libc to
10509 # always be unresolved, which means just about no library would
10510 # ever link correctly. If we're not using GNU ld we use -z text
10511 # though, which does catch some bad symbols but isn't as heavy-handed
10512 # as -z defs.
10513 no_undefined_flag='${wl}-z,text'
10514 allow_undefined_flag='${wl}-z,nodefs'
10515 archive_cmds_need_lc=no
10516 hardcode_shlibpath_var=no
10517 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10518 hardcode_libdir_separator=':'
10519 link_all_deplibs=yes
10520 export_dynamic_flag_spec='${wl}-Bexport'
10521 runpath_var='LD_RUN_PATH'
10522
10523 if test "$GCC" = yes; then
10524 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 else
10527 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10528 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529 fi
10530 ;;
10531
10532 uts4*)
10533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534 hardcode_libdir_flag_spec='-L$libdir'
10535 hardcode_shlibpath_var=no
10536 ;;
10537
10538 *)
10539 ld_shlibs=no
10540 ;;
10541 esac
10542
10543 if test x$host_vendor = xsni; then
10544 case $host in
10545 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10546 export_dynamic_flag_spec='${wl}-Blargedynsym'
10547 ;;
10548 esac
10549 fi
10550 fi
10551
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10553$as_echo "$ld_shlibs" >&6; }
10554test "$ld_shlibs" = no && can_build_shared=no
10555
10556with_gnu_ld=$with_gnu_ld
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572#
10573# Do we need to explicitly link libc?
10574#
10575case "x$archive_cmds_need_lc" in
10576x|xyes)
10577 # Assume -lc should be added
10578 archive_cmds_need_lc=yes
10579
10580 if test "$enable_shared" = yes && test "$GCC" = yes; then
10581 case $archive_cmds in
10582 *'~'*)
10583 # FIXME: we may have to deal with multi-command sequences.
10584 ;;
10585 '$CC '*)
10586 # Test whether the compiler implicitly links with -lc since on some
10587 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10588 # to ld, don't add -lc before -lgcc.
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10590$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10591if ${lt_cv_archive_cmds_need_lc+:} false; then :
10592 $as_echo_n "(cached) " >&6
10593else
10594 $RM conftest*
10595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10596
10597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10598 (eval $ac_compile) 2>&5
10599 ac_status=$?
10600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10601 test $ac_status = 0; } 2>conftest.err; then
10602 soname=conftest
10603 lib=conftest
10604 libobjs=conftest.$ac_objext
10605 deplibs=
10606 wl=$lt_prog_compiler_wl
10607 pic_flag=$lt_prog_compiler_pic
10608 compiler_flags=-v
10609 linker_flags=-v
10610 verstring=
10611 output_objdir=.
10612 libname=conftest
10613 lt_save_allow_undefined_flag=$allow_undefined_flag
10614 allow_undefined_flag=
10615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10616 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10617 ac_status=$?
10618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10619 test $ac_status = 0; }
10620 then
10621 lt_cv_archive_cmds_need_lc=no
10622 else
10623 lt_cv_archive_cmds_need_lc=yes
10624 fi
10625 allow_undefined_flag=$lt_save_allow_undefined_flag
10626 else
10627 cat conftest.err 1>&5
10628 fi
10629 $RM conftest*
10630
10631fi
10632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10633$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10634 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10635 ;;
10636 esac
10637 fi
10638 ;;
10639esac
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10793$as_echo_n "checking dynamic linker characteristics... " >&6; }
10794
10795if test "$GCC" = yes; then
10796 case $host_os in
10797 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10798 *) lt_awk_arg="/^libraries:/" ;;
10799 esac
10800 case $host_os in
10801 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10802 *) lt_sed_strip_eq="s,=/,/,g" ;;
10803 esac
10804 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10805 case $lt_search_path_spec in
10806 *\;*)
10807 # if the path contains ";" then we assume it to be the separator
10808 # otherwise default to the standard path separator (i.e. ":") - it is
10809 # assumed that no part of a normal pathname contains ";" but that should
10810 # okay in the real world where ";" in dirpaths is itself problematic.
10811 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10812 ;;
10813 *)
10814 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10815 ;;
10816 esac
10817 # Ok, now we have the path, separated by spaces, we can step through it
10818 # and add multilib dir if necessary.
10819 lt_tmp_lt_search_path_spec=
10820 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10821 for lt_sys_path in $lt_search_path_spec; do
10822 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10824 else
10825 test -d "$lt_sys_path" && \
10826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10827 fi
10828 done
10829 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10830BEGIN {RS=" "; FS="/|\n";} {
10831 lt_foo="";
10832 lt_count=0;
10833 for (lt_i = NF; lt_i > 0; lt_i--) {
10834 if ($lt_i != "" && $lt_i != ".") {
10835 if ($lt_i == "..") {
10836 lt_count++;
10837 } else {
10838 if (lt_count == 0) {
10839 lt_foo="/" $lt_i lt_foo;
10840 } else {
10841 lt_count--;
10842 }
10843 }
10844 }
10845 }
10846 if (lt_foo != "") { lt_freq[lt_foo]++; }
10847 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10848}'`
10849 # AWK program above erroneously prepends '/' to C:/dos/paths
10850 # for these hosts.
10851 case $host_os in
10852 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10853 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10854 esac
10855 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10856else
10857 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10858fi
10859library_names_spec=
10860libname_spec='lib$name'
10861soname_spec=
10862shrext_cmds=".so"
10863postinstall_cmds=
10864postuninstall_cmds=
10865finish_cmds=
10866finish_eval=
10867shlibpath_var=
10868shlibpath_overrides_runpath=unknown
10869version_type=none
10870dynamic_linker="$host_os ld.so"
10871sys_lib_dlsearch_path_spec="/lib /usr/lib"
10872need_lib_prefix=unknown
10873hardcode_into_libs=no
10874
10875# when you set need_version to no, make sure it does not cause -set_version
10876# flags to be left without arguments
10877need_version=unknown
10878
10879case $host_os in
10880aix3*)
10881 version_type=linux # correct to gnu/linux during the next big refactor
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10883 shlibpath_var=LIBPATH
10884
10885 # AIX 3 has no versioning support, so we append a major version to the name.
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 ;;
10888
10889aix[4-9]*)
10890 version_type=linux # correct to gnu/linux during the next big refactor
10891 need_lib_prefix=no
10892 need_version=no
10893 hardcode_into_libs=yes
10894 if test "$host_cpu" = ia64; then
10895 # AIX 5 supports IA64
10896 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 else
10899 # With GCC up to 2.95.x, collect2 would create an import file
10900 # for dependence libraries. The import file would start with
10901 # the line `#! .'. This would cause the generated library to
10902 # depend on `.', always an invalid library. This was fixed in
10903 # development snapshots of GCC prior to 3.0.
10904 case $host_os in
10905 aix4 | aix4.[01] | aix4.[01].*)
10906 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10907 echo ' yes '
10908 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10909 :
10910 else
10911 can_build_shared=no
10912 fi
10913 ;;
10914 esac
10915 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10916 # soname into executable. Probably we can add versioning support to
10917 # collect2, so additional links can be useful in future.
10918 if test "$aix_use_runtimelinking" = yes; then
10919 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10920 # instead of lib<name>.a to let people know that these are not
10921 # typical AIX shared libraries.
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 else
10924 # We preserve .a as extension for shared libraries through AIX4.2
10925 # and later when we are not doing run time linking.
10926 library_names_spec='${libname}${release}.a $libname.a'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 fi
10929 shlibpath_var=LIBPATH
10930 fi
10931 ;;
10932
10933amigaos*)
10934 case $host_cpu in
10935 powerpc)
10936 # Since July 2007 AmigaOS4 officially supports .so libraries.
10937 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 ;;
10940 m68k)
10941 library_names_spec='$libname.ixlibrary $libname.a'
10942 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10943 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'
10944 ;;
10945 esac
10946 ;;
10947
10948beos*)
10949 library_names_spec='${libname}${shared_ext}'
10950 dynamic_linker="$host_os ld.so"
10951 shlibpath_var=LIBRARY_PATH
10952 ;;
10953
10954bsdi[45]*)
10955 version_type=linux # correct to gnu/linux during the next big refactor
10956 need_version=no
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10962 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10963 # the default ld.so.conf also contains /usr/contrib/lib and
10964 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10965 # libtool to hard-code these into programs
10966 ;;
10967
10968cygwin* | mingw* | pw32* | cegcc*)
10969 version_type=windows
10970 shrext_cmds=".dll"
10971 need_version=no
10972 need_lib_prefix=no
10973
10974 case $GCC,$cc_basename in
10975 yes,*)
10976 # gcc
10977 library_names_spec='$libname.dll.a'
10978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10979 postinstall_cmds='base_file=`basename \${file}`~
10980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10981 dldir=$destdir/`dirname \$dlpath`~
10982 test -d \$dldir || mkdir -p \$dldir~
10983 $install_prog $dir/$dlname \$dldir/$dlname~
10984 chmod a+x \$dldir/$dlname~
10985 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10986 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10987 fi'
10988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10989 dlpath=$dir/\$dldll~
10990 $RM \$dlpath'
10991 shlibpath_overrides_runpath=yes
10992
10993 case $host_os in
10994 cygwin*)
10995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10996 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10997
10998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10999 ;;
11000 mingw* | cegcc*)
11001 # MinGW DLLs use traditional 'lib' prefix
11002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11003 ;;
11004 pw32*)
11005 # pw32 DLLs use 'pw' prefix rather than 'lib'
11006 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11007 ;;
11008 esac
11009 dynamic_linker='Win32 ld.exe'
11010 ;;
11011
11012 *,cl*)
11013 # Native MSVC
11014 libname_spec='$name'
11015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11016 library_names_spec='${libname}.dll.lib'
11017
11018 case $build_os in
11019 mingw*)
11020 sys_lib_search_path_spec=
11021 lt_save_ifs=$IFS
11022 IFS=';'
11023 for lt_path in $LIB
11024 do
11025 IFS=$lt_save_ifs
11026 # Let DOS variable expansion print the short 8.3 style file name.
11027 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11028 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11029 done
11030 IFS=$lt_save_ifs
11031 # Convert to MSYS style.
11032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11033 ;;
11034 cygwin*)
11035 # Convert to unix form, then to dos form, then back to unix form
11036 # but this time dos style (no spaces!) so that the unix form looks
11037 # like /cygdrive/c/PROGRA~1:/cygdr...
11038 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11039 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11040 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11041 ;;
11042 *)
11043 sys_lib_search_path_spec="$LIB"
11044 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11045 # It is most probably a Windows format PATH.
11046 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11047 else
11048 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11049 fi
11050 # FIXME: find the short name or the path components, as spaces are
11051 # common. (e.g. "Program Files" -> "PROGRA~1")
11052 ;;
11053 esac
11054
11055 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11056 postinstall_cmds='base_file=`basename \${file}`~
11057 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11058 dldir=$destdir/`dirname \$dlpath`~
11059 test -d \$dldir || mkdir -p \$dldir~
11060 $install_prog $dir/$dlname \$dldir/$dlname'
11061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11062 dlpath=$dir/\$dldll~
11063 $RM \$dlpath'
11064 shlibpath_overrides_runpath=yes
11065 dynamic_linker='Win32 link.exe'
11066 ;;
11067
11068 *)
11069 # Assume MSVC wrapper
11070 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11071 dynamic_linker='Win32 ld.exe'
11072 ;;
11073 esac
11074 # FIXME: first we should search . and the directory the executable is in
11075 shlibpath_var=PATH
11076 ;;
11077
11078darwin* | rhapsody*)
11079 dynamic_linker="$host_os dyld"
11080 version_type=darwin
11081 need_lib_prefix=no
11082 need_version=no
11083 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11084 soname_spec='${libname}${release}${major}$shared_ext'
11085 shlibpath_overrides_runpath=yes
11086 shlibpath_var=DYLD_LIBRARY_PATH
11087 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11088
11089 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11091 ;;
11092
11093dgux*)
11094 version_type=linux # correct to gnu/linux during the next big refactor
11095 need_lib_prefix=no
11096 need_version=no
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 ;;
11101
11102freebsd* | dragonfly*)
11103 # DragonFly does not have aout. When/if they implement a new
11104 # versioning mechanism, adjust this.
11105 if test -x /usr/bin/objformat; then
11106 objformat=`/usr/bin/objformat`
11107 else
11108 case $host_os in
11109 freebsd[23].*) objformat=aout ;;
11110 *) objformat=elf ;;
11111 esac
11112 fi
11113 version_type=freebsd-$objformat
11114 case $version_type in
11115 freebsd-elf*)
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11117 need_version=no
11118 need_lib_prefix=no
11119 ;;
11120 freebsd-*)
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11122 need_version=yes
11123 ;;
11124 esac
11125 shlibpath_var=LD_LIBRARY_PATH
11126 case $host_os in
11127 freebsd2.*)
11128 shlibpath_overrides_runpath=yes
11129 ;;
11130 freebsd3.[01]* | freebsdelf3.[01]*)
11131 shlibpath_overrides_runpath=yes
11132 hardcode_into_libs=yes
11133 ;;
11134 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11135 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11136 shlibpath_overrides_runpath=no
11137 hardcode_into_libs=yes
11138 ;;
11139 *) # from 4.6 on, and DragonFly
11140 shlibpath_overrides_runpath=yes
11141 hardcode_into_libs=yes
11142 ;;
11143 esac
11144 ;;
11145
11146gnu*)
11147 version_type=linux # correct to gnu/linux during the next big refactor
11148 need_lib_prefix=no
11149 need_version=no
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=no
11154 hardcode_into_libs=yes
11155 ;;
11156
11157haiku*)
11158 version_type=linux # correct to gnu/linux during the next big refactor
11159 need_lib_prefix=no
11160 need_version=no
11161 dynamic_linker="$host_os runtime_loader"
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11166 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11167 hardcode_into_libs=yes
11168 ;;
11169
11170hpux9* | hpux10* | hpux11*)
11171 # Give a soname corresponding to the major version so that dld.sl refuses to
11172 # link against other versions.
11173 version_type=sunos
11174 need_lib_prefix=no
11175 need_version=no
11176 case $host_cpu in
11177 ia64*)
11178 shrext_cmds='.so'
11179 hardcode_into_libs=yes
11180 dynamic_linker="$host_os dld.so"
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 if test "X$HPUX_IA64_MODE" = X32; then
11186 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11187 else
11188 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11189 fi
11190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11191 ;;
11192 hppa*64*)
11193 shrext_cmds='.sl'
11194 hardcode_into_libs=yes
11195 dynamic_linker="$host_os dld.sl"
11196 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11202 ;;
11203 *)
11204 shrext_cmds='.sl'
11205 dynamic_linker="$host_os dld.sl"
11206 shlibpath_var=SHLIB_PATH
11207 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 ;;
11211 esac
11212 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11213 postinstall_cmds='chmod 555 $lib'
11214 # or fails outright, so override atomically:
11215 install_override_mode=555
11216 ;;
11217
11218interix[3-9]*)
11219 version_type=linux # correct to gnu/linux during the next big refactor
11220 need_lib_prefix=no
11221 need_version=no
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11225 shlibpath_var=LD_LIBRARY_PATH
11226 shlibpath_overrides_runpath=no
11227 hardcode_into_libs=yes
11228 ;;
11229
11230irix5* | irix6* | nonstopux*)
11231 case $host_os in
11232 nonstopux*) version_type=nonstopux ;;
11233 *)
11234 if test "$lt_cv_prog_gnu_ld" = yes; then
11235 version_type=linux # correct to gnu/linux during the next big refactor
11236 else
11237 version_type=irix
11238 fi ;;
11239 esac
11240 need_lib_prefix=no
11241 need_version=no
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11244 case $host_os in
11245 irix5* | nonstopux*)
11246 libsuff= shlibsuff=
11247 ;;
11248 *)
11249 case $LD in # libtool.m4 will add one of these switches to LD
11250 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11251 libsuff= shlibsuff= libmagic=32-bit;;
11252 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11253 libsuff=32 shlibsuff=N32 libmagic=N32;;
11254 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11255 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11256 *) libsuff= shlibsuff= libmagic=never-match;;
11257 esac
11258 ;;
11259 esac
11260 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11261 shlibpath_overrides_runpath=no
11262 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11263 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11264 hardcode_into_libs=yes
11265 ;;
11266
11267# No shared lib support for Linux oldld, aout, or coff.
11268linux*oldld* | linux*aout* | linux*coff*)
11269 dynamic_linker=no
11270 ;;
11271
11272# This must be glibc/ELF.
11273linux* | k*bsd*-gnu | kopensolaris*-gnu)
11274 version_type=linux # correct to gnu/linux during the next big refactor
11275 need_lib_prefix=no
11276 need_version=no
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=no
11282
11283 # Some binutils ld are patched to set DT_RUNPATH
11284 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286else
11287 lt_cv_shlibpath_overrides_runpath=no
11288 save_LDFLAGS=$LDFLAGS
11289 save_libdir=$libdir
11290 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11291 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293/* end confdefs.h. */
11294
11295int
11296main ()
11297{
11298
11299 ;
11300 return 0;
11301}
11302_ACEOF
11303if ac_fn_c_try_link "$LINENO"; then :
11304 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11305 lt_cv_shlibpath_overrides_runpath=yes
11306fi
11307fi
11308rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310 LDFLAGS=$save_LDFLAGS
11311 libdir=$save_libdir
11312
11313fi
11314
11315 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11316
11317 # This implies no fast_install, which is unacceptable.
11318 # Some rework will be needed to allow for fast_install
11319 # before this can be enabled.
11320 hardcode_into_libs=yes
11321
11322 # Add ABI-specific directories to the system library path.
11323 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11324
11325 # Append ld.so.conf contents to the search path
11326 if test -f /etc/ld.so.conf; then
11327 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' ' '`
11328 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11329
11330 fi
11331
11332 # We used to test for /lib/ld.so.1 and disable shared libraries on
11333 # powerpc, because MkLinux only supported shared libraries with the
11334 # GNU dynamic linker. Since this was broken with cross compilers,
11335 # most powerpc-linux boxes support dynamic linking these days and
11336 # people can always --disable-shared, the test was removed, and we
11337 # assume the GNU/Linux dynamic linker is in use.
11338 dynamic_linker='GNU/Linux ld.so'
11339 ;;
11340
11341netbsd*)
11342 version_type=sunos
11343 need_lib_prefix=no
11344 need_version=no
11345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11348 dynamic_linker='NetBSD (a.out) ld.so'
11349 else
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 dynamic_linker='NetBSD ld.elf_so'
11353 fi
11354 shlibpath_var=LD_LIBRARY_PATH
11355 shlibpath_overrides_runpath=yes
11356 hardcode_into_libs=yes
11357 ;;
11358
11359newsos6)
11360 version_type=linux # correct to gnu/linux during the next big refactor
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 shlibpath_overrides_runpath=yes
11364 ;;
11365
11366*nto* | *qnx*)
11367 version_type=qnx
11368 need_lib_prefix=no
11369 need_version=no
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 shlibpath_overrides_runpath=no
11374 hardcode_into_libs=yes
11375 dynamic_linker='ldqnx.so'
11376 ;;
11377
11378openbsd*)
11379 version_type=sunos
11380 sys_lib_dlsearch_path_spec="/usr/lib"
11381 need_lib_prefix=no
11382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11383 case $host_os in
11384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11385 *) need_version=no ;;
11386 esac
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11389 shlibpath_var=LD_LIBRARY_PATH
11390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11391 case $host_os in
11392 openbsd2.[89] | openbsd2.[89].*)
11393 shlibpath_overrides_runpath=no
11394 ;;
11395 *)
11396 shlibpath_overrides_runpath=yes
11397 ;;
11398 esac
11399 else
11400 shlibpath_overrides_runpath=yes
11401 fi
11402 ;;
11403
11404os2*)
11405 libname_spec='$name'
11406 shrext_cmds=".dll"
11407 need_lib_prefix=no
11408 library_names_spec='$libname${shared_ext} $libname.a'
11409 dynamic_linker='OS/2 ld.exe'
11410 shlibpath_var=LIBPATH
11411 ;;
11412
11413osf3* | osf4* | osf5*)
11414 version_type=osf
11415 need_lib_prefix=no
11416 need_version=no
11417 soname_spec='${libname}${release}${shared_ext}$major'
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11422 ;;
11423
11424rdos*)
11425 dynamic_linker=no
11426 ;;
11427
11428solaris*)
11429 version_type=linux # correct to gnu/linux during the next big refactor
11430 need_lib_prefix=no
11431 need_version=no
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11434 shlibpath_var=LD_LIBRARY_PATH
11435 shlibpath_overrides_runpath=yes
11436 hardcode_into_libs=yes
11437 # ldd complains unless libraries are executable
11438 postinstall_cmds='chmod +x $lib'
11439 ;;
11440
11441sunos4*)
11442 version_type=sunos
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=yes
11447 if test "$with_gnu_ld" = yes; then
11448 need_lib_prefix=no
11449 fi
11450 need_version=yes
11451 ;;
11452
11453sysv4 | sysv4.3*)
11454 version_type=linux # correct to gnu/linux during the next big refactor
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 case $host_vendor in
11459 sni)
11460 shlibpath_overrides_runpath=no
11461 need_lib_prefix=no
11462 runpath_var=LD_RUN_PATH
11463 ;;
11464 siemens)
11465 need_lib_prefix=no
11466 ;;
11467 motorola)
11468 need_lib_prefix=no
11469 need_version=no
11470 shlibpath_overrides_runpath=no
11471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11472 ;;
11473 esac
11474 ;;
11475
11476sysv4*MP*)
11477 if test -d /usr/nec ;then
11478 version_type=linux # correct to gnu/linux during the next big refactor
11479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11480 soname_spec='$libname${shared_ext}.$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 fi
11483 ;;
11484
11485sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11486 version_type=freebsd-elf
11487 need_lib_prefix=no
11488 need_version=no
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=yes
11493 hardcode_into_libs=yes
11494 if test "$with_gnu_ld" = yes; then
11495 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11496 else
11497 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11498 case $host_os in
11499 sco3.2v5*)
11500 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11501 ;;
11502 esac
11503 fi
11504 sys_lib_dlsearch_path_spec='/usr/lib'
11505 ;;
11506
11507tpf*)
11508 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11509 version_type=linux # correct to gnu/linux during the next big refactor
11510 need_lib_prefix=no
11511 need_version=no
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=no
11515 hardcode_into_libs=yes
11516 ;;
11517
11518uts4*)
11519 version_type=linux # correct to gnu/linux during the next big refactor
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 ;;
11524
11525*)
11526 dynamic_linker=no
11527 ;;
11528esac
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11530$as_echo "$dynamic_linker" >&6; }
11531test "$dynamic_linker" = no && can_build_shared=no
11532
11533variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11534if test "$GCC" = yes; then
11535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11536fi
11537
11538if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11539 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11540fi
11541if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11542 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11543fi
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11637$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11638hardcode_action=
11639if test -n "$hardcode_libdir_flag_spec" ||
11640 test -n "$runpath_var" ||
11641 test "X$hardcode_automatic" = "Xyes" ; then
11642
11643 # We can hardcode non-existent directories.
11644 if test "$hardcode_direct" != no &&
11645 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11646 # have to relink, otherwise we might link with an installed library
11647 # when we should be linking with a yet-to-be-installed one
11648 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11649 test "$hardcode_minus_L" != no; then
11650 # Linking always hardcodes the temporary library directory.
11651 hardcode_action=relink
11652 else
11653 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11654 hardcode_action=immediate
11655 fi
11656else
11657 # We cannot hardcode anything, or else we can only hardcode existing
11658 # directories.
11659 hardcode_action=unsupported
11660fi
11661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11662$as_echo "$hardcode_action" >&6; }
11663
11664if test "$hardcode_action" = relink ||
11665 test "$inherit_rpath" = yes; then
11666 # Fast installation is not supported
11667 enable_fast_install=no
11668elif test "$shlibpath_overrides_runpath" = yes ||
11669 test "$enable_shared" = no; then
11670 # Fast installation is not necessary
11671 enable_fast_install=needless
11672fi
11673
11674
11675
11676
11677
11678
11679 if test "x$enable_dlopen" != xyes; then
11680 enable_dlopen=unknown
11681 enable_dlopen_self=unknown
11682 enable_dlopen_self_static=unknown
11683else
11684 lt_cv_dlopen=no
11685 lt_cv_dlopen_libs=
11686
11687 case $host_os in
11688 beos*)
11689 lt_cv_dlopen="load_add_on"
11690 lt_cv_dlopen_libs=
11691 lt_cv_dlopen_self=yes
11692 ;;
11693
11694 mingw* | pw32* | cegcc*)
11695 lt_cv_dlopen="LoadLibrary"
11696 lt_cv_dlopen_libs=
11697 ;;
11698
11699 cygwin*)
11700 lt_cv_dlopen="dlopen"
11701 lt_cv_dlopen_libs=
11702 ;;
11703
11704 darwin*)
11705 # if libdl is installed we need to link against it
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11707$as_echo_n "checking for dlopen in -ldl... " >&6; }
11708if ${ac_cv_lib_dl_dlopen+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710else
11711 ac_check_lib_save_LIBS=$LIBS
11712LIBS="-ldl $LIBS"
11713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714/* end confdefs.h. */
11715
11716/* Override any GCC internal prototype to avoid an error.
11717 Use char because int might match the return type of a GCC
11718 builtin and then its argument prototype would still apply. */
11719#ifdef __cplusplus
11720extern "C"
11721#endif
11722char dlopen ();
11723int
11724main ()
11725{
11726return dlopen ();
11727 ;
11728 return 0;
11729}
11730_ACEOF
11731if ac_fn_c_try_link "$LINENO"; then :
11732 ac_cv_lib_dl_dlopen=yes
11733else
11734 ac_cv_lib_dl_dlopen=no
11735fi
11736rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738LIBS=$ac_check_lib_save_LIBS
11739fi
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11741$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11742if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11744else
11745
11746 lt_cv_dlopen="dyld"
11747 lt_cv_dlopen_libs=
11748 lt_cv_dlopen_self=yes
11749
11750fi
11751
11752 ;;
11753
11754 *)
11755 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11756if test "x$ac_cv_func_shl_load" = xyes; then :
11757 lt_cv_dlopen="shl_load"
11758else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11760$as_echo_n "checking for shl_load in -ldld... " >&6; }
11761if ${ac_cv_lib_dld_shl_load+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763else
11764 ac_check_lib_save_LIBS=$LIBS
11765LIBS="-ldld $LIBS"
11766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767/* end confdefs.h. */
11768
11769/* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11772#ifdef __cplusplus
11773extern "C"
11774#endif
11775char shl_load ();
11776int
11777main ()
11778{
11779return shl_load ();
11780 ;
11781 return 0;
11782}
11783_ACEOF
11784if ac_fn_c_try_link "$LINENO"; then :
11785 ac_cv_lib_dld_shl_load=yes
11786else
11787 ac_cv_lib_dld_shl_load=no
11788fi
11789rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791LIBS=$ac_check_lib_save_LIBS
11792fi
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11794$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11795if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11796 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11797else
11798 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11799if test "x$ac_cv_func_dlopen" = xyes; then :
11800 lt_cv_dlopen="dlopen"
11801else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11803$as_echo_n "checking for dlopen in -ldl... " >&6; }
11804if ${ac_cv_lib_dl_dlopen+:} false; then :
11805 $as_echo_n "(cached) " >&6
11806else
11807 ac_check_lib_save_LIBS=$LIBS
11808LIBS="-ldl $LIBS"
11809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810/* end confdefs.h. */
11811
11812/* Override any GCC internal prototype to avoid an error.
11813 Use char because int might match the return type of a GCC
11814 builtin and then its argument prototype would still apply. */
11815#ifdef __cplusplus
11816extern "C"
11817#endif
11818char dlopen ();
11819int
11820main ()
11821{
11822return dlopen ();
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827if ac_fn_c_try_link "$LINENO"; then :
11828 ac_cv_lib_dl_dlopen=yes
11829else
11830 ac_cv_lib_dl_dlopen=no
11831fi
11832rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834LIBS=$ac_check_lib_save_LIBS
11835fi
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11837$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11838if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11839 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11840else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11842$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11843if ${ac_cv_lib_svld_dlopen+:} false; then :
11844 $as_echo_n "(cached) " >&6
11845else
11846 ac_check_lib_save_LIBS=$LIBS
11847LIBS="-lsvld $LIBS"
11848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849/* end confdefs.h. */
11850
11851/* Override any GCC internal prototype to avoid an error.
11852 Use char because int might match the return type of a GCC
11853 builtin and then its argument prototype would still apply. */
11854#ifdef __cplusplus
11855extern "C"
11856#endif
11857char dlopen ();
11858int
11859main ()
11860{
11861return dlopen ();
11862 ;
11863 return 0;
11864}
11865_ACEOF
11866if ac_fn_c_try_link "$LINENO"; then :
11867 ac_cv_lib_svld_dlopen=yes
11868else
11869 ac_cv_lib_svld_dlopen=no
11870fi
11871rm -f core conftest.err conftest.$ac_objext \
11872 conftest$ac_exeext conftest.$ac_ext
11873LIBS=$ac_check_lib_save_LIBS
11874fi
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11876$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11877if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11879else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11881$as_echo_n "checking for dld_link in -ldld... " >&6; }
11882if ${ac_cv_lib_dld_dld_link+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884else
11885 ac_check_lib_save_LIBS=$LIBS
11886LIBS="-ldld $LIBS"
11887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h. */
11889
11890/* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893#ifdef __cplusplus
11894extern "C"
11895#endif
11896char dld_link ();
11897int
11898main ()
11899{
11900return dld_link ();
11901 ;
11902 return 0;
11903}
11904_ACEOF
11905if ac_fn_c_try_link "$LINENO"; then :
11906 ac_cv_lib_dld_dld_link=yes
11907else
11908 ac_cv_lib_dld_dld_link=no
11909fi
11910rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912LIBS=$ac_check_lib_save_LIBS
11913fi
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11915$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11916if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11917 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11918fi
11919
11920
11921fi
11922
11923
11924fi
11925
11926
11927fi
11928
11929
11930fi
11931
11932
11933fi
11934
11935 ;;
11936 esac
11937
11938 if test "x$lt_cv_dlopen" != xno; then
11939 enable_dlopen=yes
11940 else
11941 enable_dlopen=no
11942 fi
11943
11944 case $lt_cv_dlopen in
11945 dlopen)
11946 save_CPPFLAGS="$CPPFLAGS"
11947 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11948
11949 save_LDFLAGS="$LDFLAGS"
11950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11951
11952 save_LIBS="$LIBS"
11953 LIBS="$lt_cv_dlopen_libs $LIBS"
11954
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11956$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11957if ${lt_cv_dlopen_self+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959else
11960 if test "$cross_compiling" = yes; then :
11961 lt_cv_dlopen_self=cross
11962else
11963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11964 lt_status=$lt_dlunknown
11965 cat > conftest.$ac_ext <<_LT_EOF
11966#line $LINENO "configure"
11967#include "confdefs.h"
11968
11969#if HAVE_DLFCN_H
11970#include <dlfcn.h>
11971#endif
11972
11973#include <stdio.h>
11974
11975#ifdef RTLD_GLOBAL
11976# define LT_DLGLOBAL RTLD_GLOBAL
11977#else
11978# ifdef DL_GLOBAL
11979# define LT_DLGLOBAL DL_GLOBAL
11980# else
11981# define LT_DLGLOBAL 0
11982# endif
11983#endif
11984
11985/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11986 find out it does not work in some platform. */
11987#ifndef LT_DLLAZY_OR_NOW
11988# ifdef RTLD_LAZY
11989# define LT_DLLAZY_OR_NOW RTLD_LAZY
11990# else
11991# ifdef DL_LAZY
11992# define LT_DLLAZY_OR_NOW DL_LAZY
11993# else
11994# ifdef RTLD_NOW
11995# define LT_DLLAZY_OR_NOW RTLD_NOW
11996# else
11997# ifdef DL_NOW
11998# define LT_DLLAZY_OR_NOW DL_NOW
11999# else
12000# define LT_DLLAZY_OR_NOW 0
12001# endif
12002# endif
12003# endif
12004# endif
12005#endif
12006
12007/* When -fvisbility=hidden is used, assume the code has been annotated
12008 correspondingly for the symbols needed. */
12009#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12010int fnord () __attribute__((visibility("default")));
12011#endif
12012
12013int fnord () { return 42; }
12014int main ()
12015{
12016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12017 int status = $lt_dlunknown;
12018
12019 if (self)
12020 {
12021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12022 else
12023 {
12024 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12025 else puts (dlerror ());
12026 }
12027 /* dlclose (self); */
12028 }
12029 else
12030 puts (dlerror ());
12031
12032 return status;
12033}
12034_LT_EOF
12035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12036 (eval $ac_link) 2>&5
12037 ac_status=$?
12038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12039 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12040 (./conftest; exit; ) >&5 2>/dev/null
12041 lt_status=$?
12042 case x$lt_status in
12043 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12044 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12045 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12046 esac
12047 else :
12048 # compilation failed
12049 lt_cv_dlopen_self=no
12050 fi
12051fi
12052rm -fr conftest*
12053
12054
12055fi
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12057$as_echo "$lt_cv_dlopen_self" >&6; }
12058
12059 if test "x$lt_cv_dlopen_self" = xyes; then
12060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12062$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12063if ${lt_cv_dlopen_self_static+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065else
12066 if test "$cross_compiling" = yes; then :
12067 lt_cv_dlopen_self_static=cross
12068else
12069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12070 lt_status=$lt_dlunknown
12071 cat > conftest.$ac_ext <<_LT_EOF
12072#line $LINENO "configure"
12073#include "confdefs.h"
12074
12075#if HAVE_DLFCN_H
12076#include <dlfcn.h>
12077#endif
12078
12079#include <stdio.h>
12080
12081#ifdef RTLD_GLOBAL
12082# define LT_DLGLOBAL RTLD_GLOBAL
12083#else
12084# ifdef DL_GLOBAL
12085# define LT_DLGLOBAL DL_GLOBAL
12086# else
12087# define LT_DLGLOBAL 0
12088# endif
12089#endif
12090
12091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12092 find out it does not work in some platform. */
12093#ifndef LT_DLLAZY_OR_NOW
12094# ifdef RTLD_LAZY
12095# define LT_DLLAZY_OR_NOW RTLD_LAZY
12096# else
12097# ifdef DL_LAZY
12098# define LT_DLLAZY_OR_NOW DL_LAZY
12099# else
12100# ifdef RTLD_NOW
12101# define LT_DLLAZY_OR_NOW RTLD_NOW
12102# else
12103# ifdef DL_NOW
12104# define LT_DLLAZY_OR_NOW DL_NOW
12105# else
12106# define LT_DLLAZY_OR_NOW 0
12107# endif
12108# endif
12109# endif
12110# endif
12111#endif
12112
12113/* When -fvisbility=hidden is used, assume the code has been annotated
12114 correspondingly for the symbols needed. */
12115#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12116int fnord () __attribute__((visibility("default")));
12117#endif
12118
12119int fnord () { return 42; }
12120int main ()
12121{
12122 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12123 int status = $lt_dlunknown;
12124
12125 if (self)
12126 {
12127 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12128 else
12129 {
12130 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12131 else puts (dlerror ());
12132 }
12133 /* dlclose (self); */
12134 }
12135 else
12136 puts (dlerror ());
12137
12138 return status;
12139}
12140_LT_EOF
12141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12142 (eval $ac_link) 2>&5
12143 ac_status=$?
12144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12146 (./conftest; exit; ) >&5 2>/dev/null
12147 lt_status=$?
12148 case x$lt_status in
12149 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12150 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12151 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12152 esac
12153 else :
12154 # compilation failed
12155 lt_cv_dlopen_self_static=no
12156 fi
12157fi
12158rm -fr conftest*
12159
12160
12161fi
12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12163$as_echo "$lt_cv_dlopen_self_static" >&6; }
12164 fi
12165
12166 CPPFLAGS="$save_CPPFLAGS"
12167 LDFLAGS="$save_LDFLAGS"
12168 LIBS="$save_LIBS"
12169 ;;
12170 esac
12171
12172 case $lt_cv_dlopen_self in
12173 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12174 *) enable_dlopen_self=unknown ;;
12175 esac
12176
12177 case $lt_cv_dlopen_self_static in
12178 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12179 *) enable_dlopen_self_static=unknown ;;
12180 esac
12181fi
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199striplib=
12200old_striplib=
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12202$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12203if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12204 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12205 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12207$as_echo "yes" >&6; }
12208else
12209# FIXME - insert some real tests, host_os isn't really good enough
12210 case $host_os in
12211 darwin*)
12212 if test -n "$STRIP" ; then
12213 striplib="$STRIP -x"
12214 old_striplib="$STRIP -S"
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216$as_echo "yes" >&6; }
12217 else
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
12220 fi
12221 ;;
12222 *)
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224$as_echo "no" >&6; }
12225 ;;
12226 esac
12227fi
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240 # Report which library types will actually be built
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12242$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12244$as_echo "$can_build_shared" >&6; }
12245
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12247$as_echo_n "checking whether to build shared libraries... " >&6; }
12248 test "$can_build_shared" = "no" && enable_shared=no
12249
12250 # On AIX, shared libraries and static libraries use the same namespace, and
12251 # are all built from PIC.
12252 case $host_os in
12253 aix3*)
12254 test "$enable_shared" = yes && enable_static=no
12255 if test -n "$RANLIB"; then
12256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12257 postinstall_cmds='$RANLIB $lib'
12258 fi
12259 ;;
12260
12261 aix[4-9]*)
12262 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12263 test "$enable_shared" = yes && enable_static=no
12264 fi
12265 ;;
12266 esac
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12268$as_echo "$enable_shared" >&6; }
12269
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12271$as_echo_n "checking whether to build static libraries... " >&6; }
12272 # Make sure either enable_shared or enable_static is yes.
12273 test "$enable_shared" = yes || enable_static=yes
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12275$as_echo "$enable_static" >&6; }
12276
12277
12278
12279
12280fi
12281ac_ext=c
12282ac_cpp='$CPP $CPPFLAGS'
12283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12285ac_compiler_gnu=$ac_cv_c_compiler_gnu
12286
12287CC="$lt_save_CC"
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303 ac_config_commands="$ac_config_commands libtool"
12304
12305
12306
12307
12308# Only expand once:
12309
12310
12311
12312for ac_prog in 'flex'
12313do
12314 # Extract the first word of "$ac_prog", so it can be a program name with args.
12315set dummy $ac_prog; ac_word=$2
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317$as_echo_n "checking for $ac_word... " >&6; }
12318if ${ac_cv_prog_FLEX+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320else
12321 if test -n "$FLEX"; then
12322 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
12323else
12324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325for as_dir in $PATH
12326do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331 ac_cv_prog_FLEX="$ac_prog"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12334 fi
12335done
12336 done
12337IFS=$as_save_IFS
12338
12339fi
12340fi
12341FLEX=$ac_cv_prog_FLEX
12342if test -n "$FLEX"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
12344$as_echo "$FLEX" >&6; }
12345else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347$as_echo "no" >&6; }
12348fi
12349
12350
12351 test -n "$FLEX" && break
12352done
12353
12354for ac_prog in 'bison -y'
12355do
12356 # Extract the first word of "$ac_prog", so it can be a program name with args.
12357set dummy $ac_prog; ac_word=$2
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359$as_echo_n "checking for $ac_word... " >&6; }
12360if ${ac_cv_prog_YACC+:} false; then :
12361 $as_echo_n "(cached) " >&6
12362else
12363 if test -n "$YACC"; then
12364 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12365else
12366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367for as_dir in $PATH
12368do
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12373 ac_cv_prog_YACC="$ac_prog"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12376 fi
12377done
12378 done
12379IFS=$as_save_IFS
12380
12381fi
12382fi
12383YACC=$ac_cv_prog_YACC
12384if test -n "$YACC"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12386$as_echo "$YACC" >&6; }
12387else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389$as_echo "no" >&6; }
12390fi
12391
12392
12393 test -n "$YACC" && break
12394done
12395
12396
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12398$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12399if ${ac_cv_c_const+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401else
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403/* end confdefs.h. */
12404
12405int
12406main ()
12407{
12408
12409#ifndef __cplusplus
12410 /* Ultrix mips cc rejects this sort of thing. */
12411 typedef int charset[2];
12412 const charset cs = { 0, 0 };
12413 /* SunOS 4.1.1 cc rejects this. */
12414 char const *const *pcpcc;
12415 char **ppc;
12416 /* NEC SVR4.0.2 mips cc rejects this. */
12417 struct point {int x, y;};
12418 static struct point const zero = {0,0};
12419 /* AIX XL C 1.02.0.0 rejects this.
12420 It does not let you subtract one const X* pointer from another in
12421 an arm of an if-expression whose if-part is not a constant
12422 expression */
12423 const char *g = "string";
12424 pcpcc = &g + (g ? g-g : 0);
12425 /* HPUX 7.0 cc rejects these. */
12426 ++pcpcc;
12427 ppc = (char**) pcpcc;
12428 pcpcc = (char const *const *) ppc;
12429 { /* SCO 3.2v4 cc rejects this sort of thing. */
12430 char tx;
12431 char *t = &tx;
12432 char const *s = 0 ? (char *) 0 : (char const *) 0;
12433
12434 *t++ = 0;
12435 if (s) return 0;
12436 }
12437 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12438 int x[] = {25, 17};
12439 const int *foo = &x[0];
12440 ++foo;
12441 }
12442 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12443 typedef const int *iptr;
12444 iptr p = 0;
12445 ++p;
12446 }
12447 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12448 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12449 struct s { int j; const int *ap[3]; } bx;
12450 struct s *b = &bx; b->j = 5;
12451 }
12452 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12453 const int foo = 10;
12454 if (!foo) return 0;
12455 }
12456 return !cs[0] && !zero.x;
12457#endif
12458
12459 ;
12460 return 0;
12461}
12462_ACEOF
12463if ac_fn_c_try_compile "$LINENO"; then :
12464 ac_cv_c_const=yes
12465else
12466 ac_cv_c_const=no
12467fi
12468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469fi
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12471$as_echo "$ac_cv_c_const" >&6; }
12472if test $ac_cv_c_const = no; then
12473
12474$as_echo "#define const /**/" >>confdefs.h
12475
12476fi
12477
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12479$as_echo_n "checking for inline... " >&6; }
12480if ${ac_cv_c_inline+:} false; then :
12481 $as_echo_n "(cached) " >&6
12482else
12483 ac_cv_c_inline=no
12484for ac_kw in inline __inline__ __inline; do
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h. */
12487#ifndef __cplusplus
12488typedef int foo_t;
12489static $ac_kw foo_t static_foo () {return 0; }
12490$ac_kw foo_t foo () {return 0; }
12491#endif
12492
12493_ACEOF
12494if ac_fn_c_try_compile "$LINENO"; then :
12495 ac_cv_c_inline=$ac_kw
12496fi
12497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 test "$ac_cv_c_inline" != no && break
12499done
12500
12501fi
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12503$as_echo "$ac_cv_c_inline" >&6; }
12504
12505case $ac_cv_c_inline in
12506 inline | yes) ;;
12507 *)
12508 case $ac_cv_c_inline in
12509 no) ac_val=;;
12510 *) ac_val=$ac_cv_c_inline;;
12511 esac
12512 cat >>confdefs.h <<_ACEOF
12513#ifndef __cplusplus
12514#define inline $ac_val
12515#endif
12516_ACEOF
12517 ;;
12518esac
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12529 if test -n "$ac_tool_prefix"; then
12530 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12531set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533$as_echo_n "checking for $ac_word... " >&6; }
12534if ${ac_cv_path_PKG_CONFIG+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536else
12537 case $PKG_CONFIG in
12538 [\\/]* | ?:[\\/]*)
12539 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12540 ;;
12541 *)
12542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12543for as_dir in $PATH
12544do
12545 IFS=$as_save_IFS
12546 test -z "$as_dir" && as_dir=.
12547 for ac_exec_ext in '' $ac_executable_extensions; do
12548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12549 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12551 break 2
12552 fi
12553done
12554 done
12555IFS=$as_save_IFS
12556
12557 ;;
12558esac
12559fi
12560PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12561if test -n "$PKG_CONFIG"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12563$as_echo "$PKG_CONFIG" >&6; }
12564else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566$as_echo "no" >&6; }
12567fi
12568
12569
12570fi
12571if test -z "$ac_cv_path_PKG_CONFIG"; then
12572 ac_pt_PKG_CONFIG=$PKG_CONFIG
12573 # Extract the first word of "pkg-config", so it can be a program name with args.
12574set dummy pkg-config; ac_word=$2
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576$as_echo_n "checking for $ac_word... " >&6; }
12577if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12578 $as_echo_n "(cached) " >&6
12579else
12580 case $ac_pt_PKG_CONFIG in
12581 [\\/]* | ?:[\\/]*)
12582 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12583 ;;
12584 *)
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586for as_dir in $PATH
12587do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12595 fi
12596done
12597 done
12598IFS=$as_save_IFS
12599
12600 ;;
12601esac
12602fi
12603ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12604if test -n "$ac_pt_PKG_CONFIG"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12606$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12607else
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609$as_echo "no" >&6; }
12610fi
12611
12612 if test "x$ac_pt_PKG_CONFIG" = x; then
12613 PKG_CONFIG=""
12614 else
12615 case $cross_compiling:$ac_tool_warned in
12616yes:)
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12619ac_tool_warned=yes ;;
12620esac
12621 PKG_CONFIG=$ac_pt_PKG_CONFIG
12622 fi
12623else
12624 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12625fi
12626
12627fi
12628if test -n "$PKG_CONFIG"; then
12629 _pkg_min_version=0.9.0
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12631$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12632 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12634$as_echo "yes" >&6; }
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637$as_echo "no" >&6; }
12638 PKG_CONFIG=""
12639 fi
12640fi
12641
12642pkg_failed=no
12643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
12644$as_echo_n "checking for CHECK... " >&6; }
12645
12646if test -n "$CHECK_CFLAGS"; then
12647 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
12648 elif test -n "$PKG_CONFIG"; then
12649 if test -n "$PKG_CONFIG" && \
12650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
12651 ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
12652 ac_status=$?
12653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12654 test $ac_status = 0; }; then
12655 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.0" 2>/dev/null`
12656 test "x$?" != "x0" && pkg_failed=yes
12657else
12658 pkg_failed=yes
12659fi
12660 else
12661 pkg_failed=untried
12662fi
12663if test -n "$CHECK_LIBS"; then
12664 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
12665 elif test -n "$PKG_CONFIG"; then
12666 if test -n "$PKG_CONFIG" && \
12667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
12668 ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
12669 ac_status=$?
12670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12671 test $ac_status = 0; }; then
12672 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.0" 2>/dev/null`
12673 test "x$?" != "x0" && pkg_failed=yes
12674else
12675 pkg_failed=yes
12676fi
12677 else
12678 pkg_failed=untried
12679fi
12680
12681
12682
12683if test $pkg_failed = yes; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685$as_echo "no" >&6; }
12686
12687if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12688 _pkg_short_errors_supported=yes
12689else
12690 _pkg_short_errors_supported=no
12691fi
12692 if test $_pkg_short_errors_supported = yes; then
12693 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
12694 else
12695 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
12696 fi
12697 # Put the nasty error message in config.log where it belongs
12698 echo "$CHECK_PKG_ERRORS" >&5
12699
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
12701$as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
12702 enable_unit_tests="no"
12703elif test $pkg_failed = untried; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705$as_echo "no" >&6; }
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
12707$as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
12708 enable_unit_tests="no"
12709else
12710 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
12711 CHECK_LIBS=$pkg_cv_CHECK_LIBS
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12713$as_echo "yes" >&6; }
12714 enable_unit_tests="yes"
12715fi
12716
12717 if test "$enable_unit_tests" = "yes"; then
12718 ENABLE_UNIT_TESTS_TRUE=
12719 ENABLE_UNIT_TESTS_FALSE='#'
12720else
12721 ENABLE_UNIT_TESTS_TRUE='#'
12722 ENABLE_UNIT_TESTS_FALSE=
12723fi
12724
12725
12726
12727# Check whether --with-pkgconfigdir was given.
12728if test "${with_pkgconfigdir+set}" = set; then :
12729 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
12730else
12731 pkgconfigdir='${libdir}/pkgconfig'
12732fi
12733
12734
12735
12736# Check whether --enable-cli was given.
12737if test "${enable_cli+set}" = set; then :
12738 enableval=$enable_cli; enable_cli="$enableval"
12739else
12740 enable_cli="yes"
12741fi
12742
12743 if test "$enable_cli" = "yes"; then
12744 ENABLE_CLI_TRUE=
12745 ENABLE_CLI_FALSE='#'
12746else
12747 ENABLE_CLI_TRUE='#'
12748 ENABLE_CLI_FALSE=
12749fi
12750
12751
12752# Check whether --enable-pthreads was given.
12753if test "${enable_pthreads+set}" = set; then :
12754 enableval=$enable_pthreads; enable_pthreads="$enableval"
12755else
12756 enable_pthreads="yes"
12757fi
12758
12759 if test "$enable_pthreads" = "no"; then
12760 DISABLE_PTHREADS_TRUE=
12761 DISABLE_PTHREADS_FALSE='#'
12762else
12763 DISABLE_PTHREADS_TRUE='#'
12764 DISABLE_PTHREADS_FALSE=
12765fi
12766
12767
12768# Check whether --enable-debug was given.
12769if test "${enable_debug+set}" = set; then :
12770 enableval=$enable_debug; enable_debug="$enableval"
12771else
12772 enable_debug="yes"
12773fi
12774
12775 if test "$enable_debug" = "no" ; then
12776 ENABLE_DEBUG_TRUE=
12777 ENABLE_DEBUG_FALSE='#'
12778else
12779 ENABLE_DEBUG_TRUE='#'
12780 ENABLE_DEBUG_FALSE=
12781fi
12782
12783
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12785$as_echo_n "checking for pow in -lm... " >&6; }
12786if ${ac_cv_lib_m_pow+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788else
12789 ac_check_lib_save_LIBS=$LIBS
12790LIBS="-lm $LIBS"
12791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792/* end confdefs.h. */
12793
12794/* Override any GCC internal prototype to avoid an error.
12795 Use char because int might match the return type of a GCC
12796 builtin and then its argument prototype would still apply. */
12797#ifdef __cplusplus
12798extern "C"
12799#endif
12800char pow ();
12801int
12802main ()
12803{
12804return pow ();
12805 ;
12806 return 0;
12807}
12808_ACEOF
12809if ac_fn_c_try_link "$LINENO"; then :
12810 ac_cv_lib_m_pow=yes
12811else
12812 ac_cv_lib_m_pow=no
12813fi
12814rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816LIBS=$ac_check_lib_save_LIBS
12817fi
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12819$as_echo "$ac_cv_lib_m_pow" >&6; }
12820if test "x$ac_cv_lib_m_pow" = xyes; then :
12821 cat >>confdefs.h <<_ACEOF
12822#define HAVE_LIBM 1
12823_ACEOF
12824
12825 LIBS="-lm $LIBS"
12826
12827else
12828 as_fn_error $? "libm is required" "$LINENO" 5
12829fi
12830
12831
12832if test "x$enable_pthreads" = "xno"; then
12833
12834$as_echo "#define DISABLE_PTHREADS 1" >>confdefs.h
12835
12836else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
12838$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12839if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
12840 $as_echo_n "(cached) " >&6
12841else
12842 ac_check_lib_save_LIBS=$LIBS
12843LIBS="-lpthread $LIBS"
12844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h. */
12846
12847/* Override any GCC internal prototype to avoid an error.
12848 Use char because int might match the return type of a GCC
12849 builtin and then its argument prototype would still apply. */
12850#ifdef __cplusplus
12851extern "C"
12852#endif
12853char pthread_mutex_lock ();
12854int
12855main ()
12856{
12857return pthread_mutex_lock ();
12858 ;
12859 return 0;
12860}
12861_ACEOF
12862if ac_fn_c_try_link "$LINENO"; then :
12863 ac_cv_lib_pthread_pthread_mutex_lock=yes
12864else
12865 ac_cv_lib_pthread_pthread_mutex_lock=no
12866fi
12867rm -f core conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12869LIBS=$ac_check_lib_save_LIBS
12870fi
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12872$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12873if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
12874 cat >>confdefs.h <<_ACEOF
12875#define HAVE_LIBPTHREAD 1
12876_ACEOF
12877
12878 LIBS="-lpthread $LIBS"
12879
12880else
12881 as_fn_error $? "libpthread is required" "$LINENO" 5
12882fi
12883
12884fi
12885
12886if test "x$enable_debug" = "xyes"; then
12887
12888$as_echo "#define NL_DEBUG 1" >>confdefs.h
12889
12890fi
12891
12892
12893
12894subdirs="$subdirs doc"
12895
12896
12897ac_config_files="$ac_config_files Makefile libnl.sym libnl-3.0.pc libnl-route-3.0.pc libnl-genl-3.0.pc libnl-nf-3.0.pc libnl-cli-3.0.pc lib/Makefile include/Makefile src/Makefile src/lib/Makefile tests/Makefile man/Makefile python/Makefile python/setup.py python/doc/Makefile python/examples/Makefile python/netlink/Makefile python/netlink/genl/Makefile python/netlink/route/Makefile python/tests/Makefile include/netlink/version.h"
12898
12899
12900ac_errcount=0
12901if test -z "$YACC"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not found. Please install before continuing." >&5
12903$as_echo "$as_me: WARNING: bison not found. Please install before continuing." >&2;}
12904 ac_errcount=$((ac_errcount + 1))
12905fi
12906if test -z "$FLEX"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: flex not found. Please install before continuing." >&5
12908$as_echo "$as_me: WARNING: flex not found. Please install before continuing." >&2;}
12909 ac_errcount=$((ac_errcount + 1))
12910fi
12911if test $ac_errcount -gt 0; then
12912 as_fn_error $? "Required packages are missing. Please install them and rerun ./configure" "$LINENO" 5
12913fi
12914
12915cat >confcache <<\_ACEOF
12916# This file is a shell script that caches the results of configure
12917# tests run on this system so they can be shared between configure
12918# scripts and configure runs, see configure's option --config-cache.
12919# It is not useful on other systems. If it contains results you don't
12920# want to keep, you may remove or edit it.
12921#
12922# config.status only pays attention to the cache file if you give it
12923# the --recheck option to rerun configure.
12924#
12925# `ac_cv_env_foo' variables (set or unset) will be overridden when
12926# loading this file, other *unset* `ac_cv_foo' will be assigned the
12927# following values.
12928
12929_ACEOF
12930
12931# The following way of writing the cache mishandles newlines in values,
12932# but we know of no workaround that is simple, portable, and efficient.
12933# So, we kill variables containing newlines.
12934# Ultrix sh set writes to stderr and can't be redirected directly,
12935# and sets the high bit in the cache file unless we assign to the vars.
12936(
12937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12938 eval ac_val=\$$ac_var
12939 case $ac_val in #(
12940 *${as_nl}*)
12941 case $ac_var in #(
12942 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12943$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12944 esac
12945 case $ac_var in #(
12946 _ | IFS | as_nl) ;; #(
12947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12948 *) { eval $ac_var=; unset $ac_var;} ;;
12949 esac ;;
12950 esac
12951 done
12952
12953 (set) 2>&1 |
12954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12955 *${as_nl}ac_space=\ *)
12956 # `set' does not quote correctly, so add quotes: double-quote
12957 # substitution turns \\\\ into \\, and sed turns \\ into \.
12958 sed -n \
12959 "s/'/'\\\\''/g;
12960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12961 ;; #(
12962 *)
12963 # `set' quotes correctly as required by POSIX, so do not add quotes.
12964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12965 ;;
12966 esac |
12967 sort
12968) |
12969 sed '
12970 /^ac_cv_env_/b end
12971 t clear
12972 :clear
12973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12974 t end
12975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12976 :end' >>confcache
12977if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12978 if test -w "$cache_file"; then
12979 if test "x$cache_file" != "x/dev/null"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12981$as_echo "$as_me: updating cache $cache_file" >&6;}
12982 if test ! -f "$cache_file" || test -h "$cache_file"; then
12983 cat confcache >"$cache_file"
12984 else
12985 case $cache_file in #(
12986 */* | ?:*)
12987 mv -f confcache "$cache_file"$$ &&
12988 mv -f "$cache_file"$$ "$cache_file" ;; #(
12989 *)
12990 mv -f confcache "$cache_file" ;;
12991 esac
12992 fi
12993 fi
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12996$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12997 fi
12998fi
12999rm -f confcache
13000
13001test "x$prefix" = xNONE && prefix=$ac_default_prefix
13002# Let make expand exec_prefix.
13003test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13004
13005DEFS=-DHAVE_CONFIG_H
13006
13007ac_libobjs=
13008ac_ltlibobjs=
13009U=
13010for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13011 # 1. Remove the extension, and $U if already installed.
13012 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13013 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13015 # will be set to the directory where LIBOBJS objects are built.
13016 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13017 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13018done
13019LIBOBJS=$ac_libobjs
13020
13021LTLIBOBJS=$ac_ltlibobjs
13022
13023
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13025$as_echo_n "checking that generated files are newer than configure... " >&6; }
13026 if test -n "$am_sleep_pid"; then
13027 # Hide warnings about reused PIDs.
13028 wait $am_sleep_pid 2>/dev/null
13029 fi
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13031$as_echo "done" >&6; }
13032 if test -n "$EXEEXT"; then
13033 am__EXEEXT_TRUE=
13034 am__EXEEXT_FALSE='#'
13035else
13036 am__EXEEXT_TRUE='#'
13037 am__EXEEXT_FALSE=
13038fi
13039
13040if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13041 as_fn_error $? "conditional \"AMDEP\" was never defined.
13042Usually this means the macro was only invoked conditionally." "$LINENO" 5
13043fi
13044if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13045 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13046Usually this means the macro was only invoked conditionally." "$LINENO" 5
13047fi
13048if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13049 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13050Usually this means the macro was only invoked conditionally." "$LINENO" 5
13051fi
13052if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
13053 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
13054Usually this means the macro was only invoked conditionally." "$LINENO" 5
13055fi
13056if test -z "${ENABLE_CLI_TRUE}" && test -z "${ENABLE_CLI_FALSE}"; then
13057 as_fn_error $? "conditional \"ENABLE_CLI\" was never defined.
13058Usually this means the macro was only invoked conditionally." "$LINENO" 5
13059fi
13060if test -z "${DISABLE_PTHREADS_TRUE}" && test -z "${DISABLE_PTHREADS_FALSE}"; then
13061 as_fn_error $? "conditional \"DISABLE_PTHREADS\" was never defined.
13062Usually this means the macro was only invoked conditionally." "$LINENO" 5
13063fi
13064if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
13065 as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined.
13066Usually this means the macro was only invoked conditionally." "$LINENO" 5
13067fi
13068
13069: "${CONFIG_STATUS=./config.status}"
13070ac_write_fail=0
13071ac_clean_files_save=$ac_clean_files
13072ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13074$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13075as_write_fail=0
13076cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13077#! $SHELL
13078# Generated by $as_me.
13079# Run this file to recreate the current configuration.
13080# Compiler output produced by configure, useful for debugging
13081# configure, is in config.log if it exists.
13082
13083debug=false
13084ac_cs_recheck=false
13085ac_cs_silent=false
13086
13087SHELL=\${CONFIG_SHELL-$SHELL}
13088export SHELL
13089_ASEOF
13090cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13091## -------------------- ##
13092## M4sh Initialization. ##
13093## -------------------- ##
13094
13095# Be more Bourne compatible
13096DUALCASE=1; export DUALCASE # for MKS sh
13097if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13098 emulate sh
13099 NULLCMD=:
13100 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13101 # is contrary to our usage. Disable this feature.
13102 alias -g '${1+"$@"}'='"$@"'
13103 setopt NO_GLOB_SUBST
13104else
13105 case `(set -o) 2>/dev/null` in #(
13106 *posix*) :
13107 set -o posix ;; #(
13108 *) :
13109 ;;
13110esac
13111fi
13112
13113
13114as_nl='
13115'
13116export as_nl
13117# Printing a long string crashes Solaris 7 /usr/bin/printf.
13118as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13119as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13120as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13121# Prefer a ksh shell builtin over an external printf program on Solaris,
13122# but without wasting forks for bash or zsh.
13123if test -z "$BASH_VERSION$ZSH_VERSION" \
13124 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13125 as_echo='print -r --'
13126 as_echo_n='print -rn --'
13127elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13128 as_echo='printf %s\n'
13129 as_echo_n='printf %s'
13130else
13131 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13132 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13133 as_echo_n='/usr/ucb/echo -n'
13134 else
13135 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13136 as_echo_n_body='eval
13137 arg=$1;
13138 case $arg in #(
13139 *"$as_nl"*)
13140 expr "X$arg" : "X\\(.*\\)$as_nl";
13141 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13142 esac;
13143 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13144 '
13145 export as_echo_n_body
13146 as_echo_n='sh -c $as_echo_n_body as_echo'
13147 fi
13148 export as_echo_body
13149 as_echo='sh -c $as_echo_body as_echo'
13150fi
13151
13152# The user is always right.
13153if test "${PATH_SEPARATOR+set}" != set; then
13154 PATH_SEPARATOR=:
13155 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13156 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13157 PATH_SEPARATOR=';'
13158 }
13159fi
13160
13161
13162# IFS
13163# We need space, tab and new line, in precisely that order. Quoting is
13164# there to prevent editors from complaining about space-tab.
13165# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13166# splitting by setting IFS to empty value.)
13167IFS=" "" $as_nl"
13168
13169# Find who we are. Look in the path if we contain no directory separator.
13170as_myself=
13171case $0 in #((
13172 *[\\/]* ) as_myself=$0 ;;
13173 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174for as_dir in $PATH
13175do
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13179 done
13180IFS=$as_save_IFS
13181
13182 ;;
13183esac
13184# We did not find ourselves, most probably we were run as `sh COMMAND'
13185# in which case we are not to be found in the path.
13186if test "x$as_myself" = x; then
13187 as_myself=$0
13188fi
13189if test ! -f "$as_myself"; then
13190 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13191 exit 1
13192fi
13193
13194# Unset variables that we do not need and which cause bugs (e.g. in
13195# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13196# suppresses any "Segmentation fault" message there. '((' could
13197# trigger a bug in pdksh 5.2.14.
13198for as_var in BASH_ENV ENV MAIL MAILPATH
13199do eval test x\${$as_var+set} = xset \
13200 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13201done
13202PS1='$ '
13203PS2='> '
13204PS4='+ '
13205
13206# NLS nuisances.
13207LC_ALL=C
13208export LC_ALL
13209LANGUAGE=C
13210export LANGUAGE
13211
13212# CDPATH.
13213(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13214
13215
13216# as_fn_error STATUS ERROR [LINENO LOG_FD]
13217# ----------------------------------------
13218# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13219# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13220# script with STATUS, using 1 if that was 0.
13221as_fn_error ()
13222{
13223 as_status=$1; test $as_status -eq 0 && as_status=1
13224 if test "$4"; then
13225 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13226 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13227 fi
13228 $as_echo "$as_me: error: $2" >&2
13229 as_fn_exit $as_status
13230} # as_fn_error
13231
13232
13233# as_fn_set_status STATUS
13234# -----------------------
13235# Set $? to STATUS, without forking.
13236as_fn_set_status ()
13237{
13238 return $1
13239} # as_fn_set_status
13240
13241# as_fn_exit STATUS
13242# -----------------
13243# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13244as_fn_exit ()
13245{
13246 set +e
13247 as_fn_set_status $1
13248 exit $1
13249} # as_fn_exit
13250
13251# as_fn_unset VAR
13252# ---------------
13253# Portably unset VAR.
13254as_fn_unset ()
13255{
13256 { eval $1=; unset $1;}
13257}
13258as_unset=as_fn_unset
13259# as_fn_append VAR VALUE
13260# ----------------------
13261# Append the text in VALUE to the end of the definition contained in VAR. Take
13262# advantage of any shell optimizations that allow amortized linear growth over
13263# repeated appends, instead of the typical quadratic growth present in naive
13264# implementations.
13265if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13266 eval 'as_fn_append ()
13267 {
13268 eval $1+=\$2
13269 }'
13270else
13271 as_fn_append ()
13272 {
13273 eval $1=\$$1\$2
13274 }
13275fi # as_fn_append
13276
13277# as_fn_arith ARG...
13278# ------------------
13279# Perform arithmetic evaluation on the ARGs, and store the result in the
13280# global $as_val. Take advantage of shells that can avoid forks. The arguments
13281# must be portable across $(()) and expr.
13282if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13283 eval 'as_fn_arith ()
13284 {
13285 as_val=$(( $* ))
13286 }'
13287else
13288 as_fn_arith ()
13289 {
13290 as_val=`expr "$@" || test $? -eq 1`
13291 }
13292fi # as_fn_arith
13293
13294
13295if expr a : '\(a\)' >/dev/null 2>&1 &&
13296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13297 as_expr=expr
13298else
13299 as_expr=false
13300fi
13301
13302if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13303 as_basename=basename
13304else
13305 as_basename=false
13306fi
13307
13308if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13309 as_dirname=dirname
13310else
13311 as_dirname=false
13312fi
13313
13314as_me=`$as_basename -- "$0" ||
13315$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13316 X"$0" : 'X\(//\)$' \| \
13317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13318$as_echo X/"$0" |
13319 sed '/^.*\/\([^/][^/]*\)\/*$/{
13320 s//\1/
13321 q
13322 }
13323 /^X\/\(\/\/\)$/{
13324 s//\1/
13325 q
13326 }
13327 /^X\/\(\/\).*/{
13328 s//\1/
13329 q
13330 }
13331 s/.*/./; q'`
13332
13333# Avoid depending upon Character Ranges.
13334as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13335as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13336as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13337as_cr_digits='0123456789'
13338as_cr_alnum=$as_cr_Letters$as_cr_digits
13339
13340ECHO_C= ECHO_N= ECHO_T=
13341case `echo -n x` in #(((((
13342-n*)
13343 case `echo 'xy\c'` in
13344 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13345 xy) ECHO_C='\c';;
13346 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13347 ECHO_T=' ';;
13348 esac;;
13349*)
13350 ECHO_N='-n';;
13351esac
13352
13353rm -f conf$$ conf$$.exe conf$$.file
13354if test -d conf$$.dir; then
13355 rm -f conf$$.dir/conf$$.file
13356else
13357 rm -f conf$$.dir
13358 mkdir conf$$.dir 2>/dev/null
13359fi
13360if (echo >conf$$.file) 2>/dev/null; then
13361 if ln -s conf$$.file conf$$ 2>/dev/null; then
13362 as_ln_s='ln -s'
13363 # ... but there are two gotchas:
13364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13366 # In both cases, we have to default to `cp -pR'.
13367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13368 as_ln_s='cp -pR'
13369 elif ln conf$$.file conf$$ 2>/dev/null; then
13370 as_ln_s=ln
13371 else
13372 as_ln_s='cp -pR'
13373 fi
13374else
13375 as_ln_s='cp -pR'
13376fi
13377rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13378rmdir conf$$.dir 2>/dev/null
13379
13380
13381# as_fn_mkdir_p
13382# -------------
13383# Create "$as_dir" as a directory, including parents if necessary.
13384as_fn_mkdir_p ()
13385{
13386
13387 case $as_dir in #(
13388 -*) as_dir=./$as_dir;;
13389 esac
13390 test -d "$as_dir" || eval $as_mkdir_p || {
13391 as_dirs=
13392 while :; do
13393 case $as_dir in #(
13394 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13395 *) as_qdir=$as_dir;;
13396 esac
13397 as_dirs="'$as_qdir' $as_dirs"
13398 as_dir=`$as_dirname -- "$as_dir" ||
13399$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13400 X"$as_dir" : 'X\(//\)[^/]' \| \
13401 X"$as_dir" : 'X\(//\)$' \| \
13402 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13403$as_echo X"$as_dir" |
13404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13405 s//\1/
13406 q
13407 }
13408 /^X\(\/\/\)[^/].*/{
13409 s//\1/
13410 q
13411 }
13412 /^X\(\/\/\)$/{
13413 s//\1/
13414 q
13415 }
13416 /^X\(\/\).*/{
13417 s//\1/
13418 q
13419 }
13420 s/.*/./; q'`
13421 test -d "$as_dir" && break
13422 done
13423 test -z "$as_dirs" || eval "mkdir $as_dirs"
13424 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13425
13426
13427} # as_fn_mkdir_p
13428if mkdir -p . 2>/dev/null; then
13429 as_mkdir_p='mkdir -p "$as_dir"'
13430else
13431 test -d ./-p && rmdir ./-p
13432 as_mkdir_p=false
13433fi
13434
13435
13436# as_fn_executable_p FILE
13437# -----------------------
13438# Test if FILE is an executable regular file.
13439as_fn_executable_p ()
13440{
13441 test -f "$1" && test -x "$1"
13442} # as_fn_executable_p
13443as_test_x='test -x'
13444as_executable_p=as_fn_executable_p
13445
13446# Sed expression to map a string onto a valid CPP name.
13447as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13448
13449# Sed expression to map a string onto a valid variable name.
13450as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13451
13452
13453exec 6>&1
13454## ----------------------------------- ##
13455## Main body of $CONFIG_STATUS script. ##
13456## ----------------------------------- ##
13457_ASEOF
13458test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13459
13460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13461# Save the log message, to keep $0 and so on meaningful, and to
13462# report actual input values of CONFIG_FILES etc. instead of their
13463# values after options handling.
13464ac_log="
13465This file was extended by libnl $as_me 3.2.25, which was
13466generated by GNU Autoconf 2.69. Invocation command line was
13467
13468 CONFIG_FILES = $CONFIG_FILES
13469 CONFIG_HEADERS = $CONFIG_HEADERS
13470 CONFIG_LINKS = $CONFIG_LINKS
13471 CONFIG_COMMANDS = $CONFIG_COMMANDS
13472 $ $0 $@
13473
13474on `(hostname || uname -n) 2>/dev/null | sed 1q`
13475"
13476
13477_ACEOF
13478
13479case $ac_config_files in *"
13480"*) set x $ac_config_files; shift; ac_config_files=$*;;
13481esac
13482
13483case $ac_config_headers in *"
13484"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13485esac
13486
13487
13488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489# Files that config.status was made for.
13490config_files="$ac_config_files"
13491config_headers="$ac_config_headers"
13492config_commands="$ac_config_commands"
13493
13494_ACEOF
13495
13496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13497ac_cs_usage="\
13498\`$as_me' instantiates files and other configuration actions
13499from templates according to the current configuration. Unless the files
13500and actions are specified as TAGs, all are instantiated by default.
13501
13502Usage: $0 [OPTION]... [TAG]...
13503
13504 -h, --help print this help, then exit
13505 -V, --version print version number and configuration settings, then exit
13506 --config print configuration, then exit
13507 -q, --quiet, --silent
13508 do not print progress messages
13509 -d, --debug don't remove temporary files
13510 --recheck update $as_me by reconfiguring in the same conditions
13511 --file=FILE[:TEMPLATE]
13512 instantiate the configuration file FILE
13513 --header=FILE[:TEMPLATE]
13514 instantiate the configuration header FILE
13515
13516Configuration files:
13517$config_files
13518
13519Configuration headers:
13520$config_headers
13521
13522Configuration commands:
13523$config_commands
13524
13525Report bugs to the package provider.
13526libnl home page: <http://www.infradead.org/~tgr/libnl/>."
13527
13528_ACEOF
13529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13530ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13531ac_cs_version="\\
13532libnl config.status 3.2.25
13533configured by $0, generated by GNU Autoconf 2.69,
13534 with options \\"\$ac_cs_config\\"
13535
13536Copyright (C) 2012 Free Software Foundation, Inc.
13537This config.status script is free software; the Free Software Foundation
13538gives unlimited permission to copy, distribute and modify it."
13539
13540ac_pwd='$ac_pwd'
13541srcdir='$srcdir'
13542INSTALL='$INSTALL'
13543MKDIR_P='$MKDIR_P'
13544AWK='$AWK'
13545test -n "\$AWK" || AWK=awk
13546_ACEOF
13547
13548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13549# The default lists apply if the user does not specify any file.
13550ac_need_defaults=:
13551while test $# != 0
13552do
13553 case $1 in
13554 --*=?*)
13555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13557 ac_shift=:
13558 ;;
13559 --*=)
13560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13561 ac_optarg=
13562 ac_shift=:
13563 ;;
13564 *)
13565 ac_option=$1
13566 ac_optarg=$2
13567 ac_shift=shift
13568 ;;
13569 esac
13570
13571 case $ac_option in
13572 # Handling of the options.
13573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13574 ac_cs_recheck=: ;;
13575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13576 $as_echo "$ac_cs_version"; exit ;;
13577 --config | --confi | --conf | --con | --co | --c )
13578 $as_echo "$ac_cs_config"; exit ;;
13579 --debug | --debu | --deb | --de | --d | -d )
13580 debug=: ;;
13581 --file | --fil | --fi | --f )
13582 $ac_shift
13583 case $ac_optarg in
13584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13585 '') as_fn_error $? "missing file argument" ;;
13586 esac
13587 as_fn_append CONFIG_FILES " '$ac_optarg'"
13588 ac_need_defaults=false;;
13589 --header | --heade | --head | --hea )
13590 $ac_shift
13591 case $ac_optarg in
13592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13593 esac
13594 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13595 ac_need_defaults=false;;
13596 --he | --h)
13597 # Conflict between --help and --header
13598 as_fn_error $? "ambiguous option: \`$1'
13599Try \`$0 --help' for more information.";;
13600 --help | --hel | -h )
13601 $as_echo "$ac_cs_usage"; exit ;;
13602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13603 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13604 ac_cs_silent=: ;;
13605
13606 # This is an error.
13607 -*) as_fn_error $? "unrecognized option: \`$1'
13608Try \`$0 --help' for more information." ;;
13609
13610 *) as_fn_append ac_config_targets " $1"
13611 ac_need_defaults=false ;;
13612
13613 esac
13614 shift
13615done
13616
13617ac_configure_extra_args=
13618
13619if $ac_cs_silent; then
13620 exec 6>/dev/null
13621 ac_configure_extra_args="$ac_configure_extra_args --silent"
13622fi
13623
13624_ACEOF
13625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13626if \$ac_cs_recheck; then
13627 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13628 shift
13629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13630 CONFIG_SHELL='$SHELL'
13631 export CONFIG_SHELL
13632 exec "\$@"
13633fi
13634
13635_ACEOF
13636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13637exec 5>>config.log
13638{
13639 echo
13640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13641## Running $as_me. ##
13642_ASBOX
13643 $as_echo "$ac_log"
13644} >&5
13645
13646_ACEOF
13647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13648#
13649# INIT-COMMANDS
13650#
13651AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13652
13653
13654# The HP-UX ksh and POSIX shell print the target directory to stdout
13655# if CDPATH is set.
13656(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13657
13658sed_quote_subst='$sed_quote_subst'
13659double_quote_subst='$double_quote_subst'
13660delay_variable_subst='$delay_variable_subst'
13661macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13662macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13663enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13664enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13665pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13666enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13667SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13668ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13669PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13670host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13671host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13672host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13673build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13674build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13675build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13676SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13677Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13678GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13679EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13680FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13681LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13682NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13683LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13684max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13685ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13686exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13687lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13688lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13689lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13690lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13691lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13692reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13693reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13694OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13695deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13696file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13697file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13698want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13699DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13700sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13701AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13702AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13703archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13704STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13705RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13706old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13707old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13708old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13709lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13710CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13711CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13712compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13713GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13714lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13715lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13716lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13717lt_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"`'
13718nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13719lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13720objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13721MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13722lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13723lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13724lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13725lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13726lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13727need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13728MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13729DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13730NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13731LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13732OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13733OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13734libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13735shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13736extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13737archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13738enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13739export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13740whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13741compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13742old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13743old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13744archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13745archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13746module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13747module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13748with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13749allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13750no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13751hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13752hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13753hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13754hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13755hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13756hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13757hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13758inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13759link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13760always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13761export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13762exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13763include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13764prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13765postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13766file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13767variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13768need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13769need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13770version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13771runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13772shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13773shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13774libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13775library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13776soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13777install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13778postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13779postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13780finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13781finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13782hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13783sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13784sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13785hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13786enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13787enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13788enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13789old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13790striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13791
13792LTCC='$LTCC'
13793LTCFLAGS='$LTCFLAGS'
13794compiler='$compiler_DEFAULT'
13795
13796# A function that is used when there is no print builtin or printf.
13797func_fallback_echo ()
13798{
13799 eval 'cat <<_LTECHO_EOF
13800\$1
13801_LTECHO_EOF'
13802}
13803
13804# Quote evaled strings.
13805for var in SHELL \
13806ECHO \
13807PATH_SEPARATOR \
13808SED \
13809GREP \
13810EGREP \
13811FGREP \
13812LD \
13813NM \
13814LN_S \
13815lt_SP2NL \
13816lt_NL2SP \
13817reload_flag \
13818OBJDUMP \
13819deplibs_check_method \
13820file_magic_cmd \
13821file_magic_glob \
13822want_nocaseglob \
13823DLLTOOL \
13824sharedlib_from_linklib_cmd \
13825AR \
13826AR_FLAGS \
13827archiver_list_spec \
13828STRIP \
13829RANLIB \
13830CC \
13831CFLAGS \
13832compiler \
13833lt_cv_sys_global_symbol_pipe \
13834lt_cv_sys_global_symbol_to_cdecl \
13835lt_cv_sys_global_symbol_to_c_name_address \
13836lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13837nm_file_list_spec \
13838lt_prog_compiler_no_builtin_flag \
13839lt_prog_compiler_pic \
13840lt_prog_compiler_wl \
13841lt_prog_compiler_static \
13842lt_cv_prog_compiler_c_o \
13843need_locks \
13844MANIFEST_TOOL \
13845DSYMUTIL \
13846NMEDIT \
13847LIPO \
13848OTOOL \
13849OTOOL64 \
13850shrext_cmds \
13851export_dynamic_flag_spec \
13852whole_archive_flag_spec \
13853compiler_needs_object \
13854with_gnu_ld \
13855allow_undefined_flag \
13856no_undefined_flag \
13857hardcode_libdir_flag_spec \
13858hardcode_libdir_separator \
13859exclude_expsyms \
13860include_expsyms \
13861file_list_spec \
13862variables_saved_for_relink \
13863libname_spec \
13864library_names_spec \
13865soname_spec \
13866install_override_mode \
13867finish_eval \
13868old_striplib \
13869striplib; do
13870 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13871 *[\\\\\\\`\\"\\\$]*)
13872 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13873 ;;
13874 *)
13875 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13876 ;;
13877 esac
13878done
13879
13880# Double-quote double-evaled strings.
13881for var in reload_cmds \
13882old_postinstall_cmds \
13883old_postuninstall_cmds \
13884old_archive_cmds \
13885extract_expsyms_cmds \
13886old_archive_from_new_cmds \
13887old_archive_from_expsyms_cmds \
13888archive_cmds \
13889archive_expsym_cmds \
13890module_cmds \
13891module_expsym_cmds \
13892export_symbols_cmds \
13893prelink_cmds \
13894postlink_cmds \
13895postinstall_cmds \
13896postuninstall_cmds \
13897finish_cmds \
13898sys_lib_search_path_spec \
13899sys_lib_dlsearch_path_spec; do
13900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13901 *[\\\\\\\`\\"\\\$]*)
13902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13903 ;;
13904 *)
13905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13906 ;;
13907 esac
13908done
13909
13910ac_aux_dir='$ac_aux_dir'
13911xsi_shell='$xsi_shell'
13912lt_shell_append='$lt_shell_append'
13913
13914# See if we are running on zsh, and set the options which allow our
13915# commands through without removal of \ escapes INIT.
13916if test -n "\${ZSH_VERSION+set}" ; then
13917 setopt NO_GLOB_SUBST
13918fi
13919
13920
13921 PACKAGE='$PACKAGE'
13922 VERSION='$VERSION'
13923 TIMESTAMP='$TIMESTAMP'
13924 RM='$RM'
13925 ofile='$ofile'
13926
13927
13928
13929
13930_ACEOF
13931
13932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13933
13934# Handling of arguments.
13935for ac_config_target in $ac_config_targets
13936do
13937 case $ac_config_target in
13938 "lib/defs.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/defs.h" ;;
13939 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13940 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13941 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13942 "libnl.sym") CONFIG_FILES="$CONFIG_FILES libnl.sym" ;;
13943 "libnl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-3.0.pc" ;;
13944 "libnl-route-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-route-3.0.pc" ;;
13945 "libnl-genl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-genl-3.0.pc" ;;
13946 "libnl-nf-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-nf-3.0.pc" ;;
13947 "libnl-cli-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-cli-3.0.pc" ;;
13948 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13949 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13950 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13951 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
13952 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13953 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13954 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
13955 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
13956 "python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES python/doc/Makefile" ;;
13957 "python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES python/examples/Makefile" ;;
13958 "python/netlink/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/Makefile" ;;
13959 "python/netlink/genl/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/genl/Makefile" ;;
13960 "python/netlink/route/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/route/Makefile" ;;
13961 "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
13962 "include/netlink/version.h") CONFIG_FILES="$CONFIG_FILES include/netlink/version.h" ;;
13963
13964 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13965 esac
13966done
13967
13968
13969# If the user did not use the arguments to specify the items to instantiate,
13970# then the envvar interface is used. Set only those that are not.
13971# We use the long form for the default assignment because of an extremely
13972# bizarre bug on SunOS 4.1.3.
13973if $ac_need_defaults; then
13974 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13975 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13976 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13977fi
13978
13979# Have a temporary directory for convenience. Make it in the build tree
13980# simply because there is no reason against having it here, and in addition,
13981# creating and moving files from /tmp can sometimes cause problems.
13982# Hook for its removal unless debugging.
13983# Note that there is a small window in which the directory will not be cleaned:
13984# after its creation but before its name has been assigned to `$tmp'.
13985$debug ||
13986{
13987 tmp= ac_tmp=
13988 trap 'exit_status=$?
13989 : "${ac_tmp:=$tmp}"
13990 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13991' 0
13992 trap 'as_fn_exit 1' 1 2 13 15
13993}
13994# Create a (secure) tmp directory for tmp files.
13995
13996{
13997 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13998 test -d "$tmp"
13999} ||
14000{
14001 tmp=./conf$$-$RANDOM
14002 (umask 077 && mkdir "$tmp")
14003} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14004ac_tmp=$tmp
14005
14006# Set up the scripts for CONFIG_FILES section.
14007# No need to generate them if there are no CONFIG_FILES.
14008# This happens for instance with `./config.status config.h'.
14009if test -n "$CONFIG_FILES"; then
14010
14011
14012ac_cr=`echo X | tr X '\015'`
14013# On cygwin, bash can eat \r inside `` if the user requested igncr.
14014# But we know of no other shell where ac_cr would be empty at this
14015# point, so we can use a bashism as a fallback.
14016if test "x$ac_cr" = x; then
14017 eval ac_cr=\$\'\\r\'
14018fi
14019ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14020if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14021 ac_cs_awk_cr='\\r'
14022else
14023 ac_cs_awk_cr=$ac_cr
14024fi
14025
14026echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14027_ACEOF
14028
14029
14030{
14031 echo "cat >conf$$subs.awk <<_ACEOF" &&
14032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14033 echo "_ACEOF"
14034} >conf$$subs.sh ||
14035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14036ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14037ac_delim='%!_!# '
14038for ac_last_try in false false false false false :; do
14039 . ./conf$$subs.sh ||
14040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14041
14042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14043 if test $ac_delim_n = $ac_delim_num; then
14044 break
14045 elif $ac_last_try; then
14046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14047 else
14048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14049 fi
14050done
14051rm -f conf$$subs.sh
14052
14053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14055_ACEOF
14056sed -n '
14057h
14058s/^/S["/; s/!.*/"]=/
14059p
14060g
14061s/^[^!]*!//
14062:repl
14063t repl
14064s/'"$ac_delim"'$//
14065t delim
14066:nl
14067h
14068s/\(.\{148\}\)..*/\1/
14069t more1
14070s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14071p
14072n
14073b repl
14074:more1
14075s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14076p
14077g
14078s/.\{148\}//
14079t nl
14080:delim
14081h
14082s/\(.\{148\}\)..*/\1/
14083t more2
14084s/["\\]/\\&/g; s/^/"/; s/$/"/
14085p
14086b
14087:more2
14088s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14089p
14090g
14091s/.\{148\}//
14092t delim
14093' <conf$$subs.awk | sed '
14094/^[^""]/{
14095 N
14096 s/\n//
14097}
14098' >>$CONFIG_STATUS || ac_write_fail=1
14099rm -f conf$$subs.awk
14100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14101_ACAWK
14102cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14103 for (key in S) S_is_set[key] = 1
14104 FS = ""
14105
14106}
14107{
14108 line = $ 0
14109 nfields = split(line, field, "@")
14110 substed = 0
14111 len = length(field[1])
14112 for (i = 2; i < nfields; i++) {
14113 key = field[i]
14114 keylen = length(key)
14115 if (S_is_set[key]) {
14116 value = S[key]
14117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14118 len += length(value) + length(field[++i])
14119 substed = 1
14120 } else
14121 len += 1 + keylen
14122 }
14123
14124 print line
14125}
14126
14127_ACAWK
14128_ACEOF
14129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14130if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14131 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14132else
14133 cat
14134fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14135 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14136_ACEOF
14137
14138# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14139# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14140# trailing colons and then remove the whole line if VPATH becomes empty
14141# (actually we leave an empty line to preserve line numbers).
14142if test "x$srcdir" = x.; then
14143 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14144h
14145s///
14146s/^/:/
14147s/[ ]*$/:/
14148s/:\$(srcdir):/:/g
14149s/:\${srcdir}:/:/g
14150s/:@srcdir@:/:/g
14151s/^:*//
14152s/:*$//
14153x
14154s/\(=[ ]*\).*/\1/
14155G
14156s/\n//
14157s/^[^=]*=[ ]*$//
14158}'
14159fi
14160
14161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14162fi # test -n "$CONFIG_FILES"
14163
14164# Set up the scripts for CONFIG_HEADERS section.
14165# No need to generate them if there are no CONFIG_HEADERS.
14166# This happens for instance with `./config.status Makefile'.
14167if test -n "$CONFIG_HEADERS"; then
14168cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14169BEGIN {
14170_ACEOF
14171
14172# Transform confdefs.h into an awk script `defines.awk', embedded as
14173# here-document in config.status, that substitutes the proper values into
14174# config.h.in to produce config.h.
14175
14176# Create a delimiter string that does not exist in confdefs.h, to ease
14177# handling of long lines.
14178ac_delim='%!_!# '
14179for ac_last_try in false false :; do
14180 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14181 if test -z "$ac_tt"; then
14182 break
14183 elif $ac_last_try; then
14184 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14185 else
14186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14187 fi
14188done
14189
14190# For the awk script, D is an array of macro values keyed by name,
14191# likewise P contains macro parameters if any. Preserve backslash
14192# newline sequences.
14193
14194ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14195sed -n '
14196s/.\{148\}/&'"$ac_delim"'/g
14197t rset
14198:rset
14199s/^[ ]*#[ ]*define[ ][ ]*/ /
14200t def
14201d
14202:def
14203s/\\$//
14204t bsnl
14205s/["\\]/\\&/g
14206s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14207D["\1"]=" \3"/p
14208s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14209d
14210:bsnl
14211s/["\\]/\\&/g
14212s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14213D["\1"]=" \3\\\\\\n"\\/p
14214t cont
14215s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14216t cont
14217d
14218:cont
14219n
14220s/.\{148\}/&'"$ac_delim"'/g
14221t clear
14222:clear
14223s/\\$//
14224t bsnlc
14225s/["\\]/\\&/g; s/^/"/; s/$/"/p
14226d
14227:bsnlc
14228s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14229b cont
14230' <confdefs.h | sed '
14231s/'"$ac_delim"'/"\\\
14232"/g' >>$CONFIG_STATUS || ac_write_fail=1
14233
14234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14235 for (key in D) D_is_set[key] = 1
14236 FS = ""
14237}
14238/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14239 line = \$ 0
14240 split(line, arg, " ")
14241 if (arg[1] == "#") {
14242 defundef = arg[2]
14243 mac1 = arg[3]
14244 } else {
14245 defundef = substr(arg[1], 2)
14246 mac1 = arg[2]
14247 }
14248 split(mac1, mac2, "(") #)
14249 macro = mac2[1]
14250 prefix = substr(line, 1, index(line, defundef) - 1)
14251 if (D_is_set[macro]) {
14252 # Preserve the white space surrounding the "#".
14253 print prefix "define", macro P[macro] D[macro]
14254 next
14255 } else {
14256 # Replace #undef with comments. This is necessary, for example,
14257 # in the case of _POSIX_SOURCE, which is predefined and required
14258 # on some systems where configure will not decide to define it.
14259 if (defundef == "undef") {
14260 print "/*", prefix defundef, macro, "*/"
14261 next
14262 }
14263 }
14264}
14265{ print }
14266_ACAWK
14267_ACEOF
14268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14269 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14270fi # test -n "$CONFIG_HEADERS"
14271
14272
14273eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14274shift
14275for ac_tag
14276do
14277 case $ac_tag in
14278 :[FHLC]) ac_mode=$ac_tag; continue;;
14279 esac
14280 case $ac_mode$ac_tag in
14281 :[FHL]*:*);;
14282 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14283 :[FH]-) ac_tag=-:-;;
14284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14285 esac
14286 ac_save_IFS=$IFS
14287 IFS=:
14288 set x $ac_tag
14289 IFS=$ac_save_IFS
14290 shift
14291 ac_file=$1
14292 shift
14293
14294 case $ac_mode in
14295 :L) ac_source=$1;;
14296 :[FH])
14297 ac_file_inputs=
14298 for ac_f
14299 do
14300 case $ac_f in
14301 -) ac_f="$ac_tmp/stdin";;
14302 *) # Look for the file first in the build tree, then in the source tree
14303 # (if the path is not absolute). The absolute path cannot be DOS-style,
14304 # because $ac_f cannot contain `:'.
14305 test -f "$ac_f" ||
14306 case $ac_f in
14307 [\\/$]*) false;;
14308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14309 esac ||
14310 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14311 esac
14312 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14313 as_fn_append ac_file_inputs " '$ac_f'"
14314 done
14315
14316 # Let's still pretend it is `configure' which instantiates (i.e., don't
14317 # use $as_me), people would be surprised to read:
14318 # /* config.h. Generated by config.status. */
14319 configure_input='Generated from '`
14320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14321 `' by configure.'
14322 if test x"$ac_file" != x-; then
14323 configure_input="$ac_file. $configure_input"
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14325$as_echo "$as_me: creating $ac_file" >&6;}
14326 fi
14327 # Neutralize special characters interpreted by sed in replacement strings.
14328 case $configure_input in #(
14329 *\&* | *\|* | *\\* )
14330 ac_sed_conf_input=`$as_echo "$configure_input" |
14331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14332 *) ac_sed_conf_input=$configure_input;;
14333 esac
14334
14335 case $ac_tag in
14336 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14338 esac
14339 ;;
14340 esac
14341
14342 ac_dir=`$as_dirname -- "$ac_file" ||
14343$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14344 X"$ac_file" : 'X\(//\)[^/]' \| \
14345 X"$ac_file" : 'X\(//\)$' \| \
14346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14347$as_echo X"$ac_file" |
14348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14349 s//\1/
14350 q
14351 }
14352 /^X\(\/\/\)[^/].*/{
14353 s//\1/
14354 q
14355 }
14356 /^X\(\/\/\)$/{
14357 s//\1/
14358 q
14359 }
14360 /^X\(\/\).*/{
14361 s//\1/
14362 q
14363 }
14364 s/.*/./; q'`
14365 as_dir="$ac_dir"; as_fn_mkdir_p
14366 ac_builddir=.
14367
14368case "$ac_dir" in
14369.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14370*)
14371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14372 # A ".." for each directory in $ac_dir_suffix.
14373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14374 case $ac_top_builddir_sub in
14375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14377 esac ;;
14378esac
14379ac_abs_top_builddir=$ac_pwd
14380ac_abs_builddir=$ac_pwd$ac_dir_suffix
14381# for backward compatibility:
14382ac_top_builddir=$ac_top_build_prefix
14383
14384case $srcdir in
14385 .) # We are building in place.
14386 ac_srcdir=.
14387 ac_top_srcdir=$ac_top_builddir_sub
14388 ac_abs_top_srcdir=$ac_pwd ;;
14389 [\\/]* | ?:[\\/]* ) # Absolute name.
14390 ac_srcdir=$srcdir$ac_dir_suffix;
14391 ac_top_srcdir=$srcdir
14392 ac_abs_top_srcdir=$srcdir ;;
14393 *) # Relative name.
14394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14395 ac_top_srcdir=$ac_top_build_prefix$srcdir
14396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14397esac
14398ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14399
14400
14401 case $ac_mode in
14402 :F)
14403 #
14404 # CONFIG_FILE
14405 #
14406
14407 case $INSTALL in
14408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14410 esac
14411 ac_MKDIR_P=$MKDIR_P
14412 case $MKDIR_P in
14413 [\\/$]* | ?:[\\/]* ) ;;
14414 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14415 esac
14416_ACEOF
14417
14418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14419# If the template does not know about datarootdir, expand it.
14420# FIXME: This hack should be removed a few years after 2.60.
14421ac_datarootdir_hack=; ac_datarootdir_seen=
14422ac_sed_dataroot='
14423/datarootdir/ {
14424 p
14425 q
14426}
14427/@datadir@/p
14428/@docdir@/p
14429/@infodir@/p
14430/@localedir@/p
14431/@mandir@/p'
14432case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14433*datarootdir*) ac_datarootdir_seen=yes;;
14434*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14436$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14437_ACEOF
14438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14439 ac_datarootdir_hack='
14440 s&@datadir@&$datadir&g
14441 s&@docdir@&$docdir&g
14442 s&@infodir@&$infodir&g
14443 s&@localedir@&$localedir&g
14444 s&@mandir@&$mandir&g
14445 s&\\\${datarootdir}&$datarootdir&g' ;;
14446esac
14447_ACEOF
14448
14449# Neutralize VPATH when `$srcdir' = `.'.
14450# Shell code in configure.ac might set extrasub.
14451# FIXME: do we really want to maintain this feature?
14452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14453ac_sed_extra="$ac_vpsub
14454$extrasub
14455_ACEOF
14456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14457:t
14458/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14459s|@configure_input@|$ac_sed_conf_input|;t t
14460s&@top_builddir@&$ac_top_builddir_sub&;t t
14461s&@top_build_prefix@&$ac_top_build_prefix&;t t
14462s&@srcdir@&$ac_srcdir&;t t
14463s&@abs_srcdir@&$ac_abs_srcdir&;t t
14464s&@top_srcdir@&$ac_top_srcdir&;t t
14465s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14466s&@builddir@&$ac_builddir&;t t
14467s&@abs_builddir@&$ac_abs_builddir&;t t
14468s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14469s&@INSTALL@&$ac_INSTALL&;t t
14470s&@MKDIR_P@&$ac_MKDIR_P&;t t
14471$ac_datarootdir_hack
14472"
14473eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14474 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14475
14476test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14477 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14479 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14481which seems to be undefined. Please make sure it is defined" >&5
14482$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14483which seems to be undefined. Please make sure it is defined" >&2;}
14484
14485 rm -f "$ac_tmp/stdin"
14486 case $ac_file in
14487 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14488 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14489 esac \
14490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14491 ;;
14492 :H)
14493 #
14494 # CONFIG_HEADER
14495 #
14496 if test x"$ac_file" != x-; then
14497 {
14498 $as_echo "/* $configure_input */" \
14499 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14500 } >"$ac_tmp/config.h" \
14501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14502 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14504$as_echo "$as_me: $ac_file is unchanged" >&6;}
14505 else
14506 rm -f "$ac_file"
14507 mv "$ac_tmp/config.h" "$ac_file" \
14508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14509 fi
14510 else
14511 $as_echo "/* $configure_input */" \
14512 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14513 || as_fn_error $? "could not create -" "$LINENO" 5
14514 fi
14515# Compute "$ac_file"'s index in $config_headers.
14516_am_arg="$ac_file"
14517_am_stamp_count=1
14518for _am_header in $config_headers :; do
14519 case $_am_header in
14520 $_am_arg | $_am_arg:* )
14521 break ;;
14522 * )
14523 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14524 esac
14525done
14526echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14527$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14528 X"$_am_arg" : 'X\(//\)[^/]' \| \
14529 X"$_am_arg" : 'X\(//\)$' \| \
14530 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14531$as_echo X"$_am_arg" |
14532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14533 s//\1/
14534 q
14535 }
14536 /^X\(\/\/\)[^/].*/{
14537 s//\1/
14538 q
14539 }
14540 /^X\(\/\/\)$/{
14541 s//\1/
14542 q
14543 }
14544 /^X\(\/\).*/{
14545 s//\1/
14546 q
14547 }
14548 s/.*/./; q'`/stamp-h$_am_stamp_count
14549 ;;
14550
14551 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14552$as_echo "$as_me: executing $ac_file commands" >&6;}
14553 ;;
14554 esac
14555
14556
14557 case $ac_file$ac_mode in
14558 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14559 # Older Autoconf quotes --file arguments for eval, but not when files
14560 # are listed without --file. Let's play safe and only enable the eval
14561 # if we detect the quoting.
14562 case $CONFIG_FILES in
14563 *\'*) eval set x "$CONFIG_FILES" ;;
14564 *) set x $CONFIG_FILES ;;
14565 esac
14566 shift
14567 for mf
14568 do
14569 # Strip MF so we end up with the name of the file.
14570 mf=`echo "$mf" | sed -e 's/:.*$//'`
14571 # Check whether this is an Automake generated Makefile or not.
14572 # We used to match only the files named 'Makefile.in', but
14573 # some people rename them; so instead we look at the file content.
14574 # Grep'ing the first line is not enough: some people post-process
14575 # each Makefile.in and add a new line on top of each file to say so.
14576 # Grep'ing the whole file is not good either: AIX grep has a line
14577 # limit of 2048, but all sed's we know have understand at least 4000.
14578 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14579 dirpart=`$as_dirname -- "$mf" ||
14580$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14581 X"$mf" : 'X\(//\)[^/]' \| \
14582 X"$mf" : 'X\(//\)$' \| \
14583 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14584$as_echo X"$mf" |
14585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14586 s//\1/
14587 q
14588 }
14589 /^X\(\/\/\)[^/].*/{
14590 s//\1/
14591 q
14592 }
14593 /^X\(\/\/\)$/{
14594 s//\1/
14595 q
14596 }
14597 /^X\(\/\).*/{
14598 s//\1/
14599 q
14600 }
14601 s/.*/./; q'`
14602 else
14603 continue
14604 fi
14605 # Extract the definition of DEPDIR, am__include, and am__quote
14606 # from the Makefile without running 'make'.
14607 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14608 test -z "$DEPDIR" && continue
14609 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14610 test -z "$am__include" && continue
14611 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14612 # Find all dependency output files, they are included files with
14613 # $(DEPDIR) in their names. We invoke sed twice because it is the
14614 # simplest approach to changing $(DEPDIR) to its actual value in the
14615 # expansion.
14616 for file in `sed -n "
14617 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14618 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14619 # Make sure the directory exists.
14620 test -f "$dirpart/$file" && continue
14621 fdir=`$as_dirname -- "$file" ||
14622$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14623 X"$file" : 'X\(//\)[^/]' \| \
14624 X"$file" : 'X\(//\)$' \| \
14625 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14626$as_echo X"$file" |
14627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14628 s//\1/
14629 q
14630 }
14631 /^X\(\/\/\)[^/].*/{
14632 s//\1/
14633 q
14634 }
14635 /^X\(\/\/\)$/{
14636 s//\1/
14637 q
14638 }
14639 /^X\(\/\).*/{
14640 s//\1/
14641 q
14642 }
14643 s/.*/./; q'`
14644 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14645 # echo "creating $dirpart/$file"
14646 echo '# dummy' > "$dirpart/$file"
14647 done
14648 done
14649}
14650 ;;
14651 "libtool":C)
14652
14653 # See if we are running on zsh, and set the options which allow our
14654 # commands through without removal of \ escapes.
14655 if test -n "${ZSH_VERSION+set}" ; then
14656 setopt NO_GLOB_SUBST
14657 fi
14658
14659 cfgfile="${ofile}T"
14660 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14661 $RM "$cfgfile"
14662
14663 cat <<_LT_EOF >> "$cfgfile"
14664#! $SHELL
14665
14666# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14667# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14668# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14669# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14670#
14671# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14672# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14673# Foundation, Inc.
14674# Written by Gordon Matzigkeit, 1996
14675#
14676# This file is part of GNU Libtool.
14677#
14678# GNU Libtool is free software; you can redistribute it and/or
14679# modify it under the terms of the GNU General Public License as
14680# published by the Free Software Foundation; either version 2 of
14681# the License, or (at your option) any later version.
14682#
14683# As a special exception to the GNU General Public License,
14684# if you distribute this file as part of a program or library that
14685# is built using GNU Libtool, you may include this file under the
14686# same distribution terms that you use for the rest of that program.
14687#
14688# GNU Libtool is distributed in the hope that it will be useful,
14689# but WITHOUT ANY WARRANTY; without even the implied warranty of
14690# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14691# GNU General Public License for more details.
14692#
14693# You should have received a copy of the GNU General Public License
14694# along with GNU Libtool; see the file COPYING. If not, a copy
14695# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14696# obtained by writing to the Free Software Foundation, Inc.,
14697# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14698
14699
14700# The names of the tagged configurations supported by this script.
14701available_tags=""
14702
14703# ### BEGIN LIBTOOL CONFIG
14704
14705# Which release of libtool.m4 was used?
14706macro_version=$macro_version
14707macro_revision=$macro_revision
14708
14709# Whether or not to build shared libraries.
14710build_libtool_libs=$enable_shared
14711
14712# Whether or not to build static libraries.
14713build_old_libs=$enable_static
14714
14715# What type of objects to build.
14716pic_mode=$pic_mode
14717
14718# Whether or not to optimize for fast installation.
14719fast_install=$enable_fast_install
14720
14721# Shell to use when invoking shell scripts.
14722SHELL=$lt_SHELL
14723
14724# An echo program that protects backslashes.
14725ECHO=$lt_ECHO
14726
14727# The PATH separator for the build system.
14728PATH_SEPARATOR=$lt_PATH_SEPARATOR
14729
14730# The host system.
14731host_alias=$host_alias
14732host=$host
14733host_os=$host_os
14734
14735# The build system.
14736build_alias=$build_alias
14737build=$build
14738build_os=$build_os
14739
14740# A sed program that does not truncate output.
14741SED=$lt_SED
14742
14743# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14744Xsed="\$SED -e 1s/^X//"
14745
14746# A grep program that handles long lines.
14747GREP=$lt_GREP
14748
14749# An ERE matcher.
14750EGREP=$lt_EGREP
14751
14752# A literal string matcher.
14753FGREP=$lt_FGREP
14754
14755# A BSD- or MS-compatible name lister.
14756NM=$lt_NM
14757
14758# Whether we need soft or hard links.
14759LN_S=$lt_LN_S
14760
14761# What is the maximum length of a command?
14762max_cmd_len=$max_cmd_len
14763
14764# Object file suffix (normally "o").
14765objext=$ac_objext
14766
14767# Executable file suffix (normally "").
14768exeext=$exeext
14769
14770# whether the shell understands "unset".
14771lt_unset=$lt_unset
14772
14773# turn spaces into newlines.
14774SP2NL=$lt_lt_SP2NL
14775
14776# turn newlines into spaces.
14777NL2SP=$lt_lt_NL2SP
14778
14779# convert \$build file names to \$host format.
14780to_host_file_cmd=$lt_cv_to_host_file_cmd
14781
14782# convert \$build files to toolchain format.
14783to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14784
14785# An object symbol dumper.
14786OBJDUMP=$lt_OBJDUMP
14787
14788# Method to check whether dependent libraries are shared objects.
14789deplibs_check_method=$lt_deplibs_check_method
14790
14791# Command to use when deplibs_check_method = "file_magic".
14792file_magic_cmd=$lt_file_magic_cmd
14793
14794# How to find potential files when deplibs_check_method = "file_magic".
14795file_magic_glob=$lt_file_magic_glob
14796
14797# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14798want_nocaseglob=$lt_want_nocaseglob
14799
14800# DLL creation program.
14801DLLTOOL=$lt_DLLTOOL
14802
14803# Command to associate shared and link libraries.
14804sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14805
14806# The archiver.
14807AR=$lt_AR
14808
14809# Flags to create an archive.
14810AR_FLAGS=$lt_AR_FLAGS
14811
14812# How to feed a file listing to the archiver.
14813archiver_list_spec=$lt_archiver_list_spec
14814
14815# A symbol stripping program.
14816STRIP=$lt_STRIP
14817
14818# Commands used to install an old-style archive.
14819RANLIB=$lt_RANLIB
14820old_postinstall_cmds=$lt_old_postinstall_cmds
14821old_postuninstall_cmds=$lt_old_postuninstall_cmds
14822
14823# Whether to use a lock for old archive extraction.
14824lock_old_archive_extraction=$lock_old_archive_extraction
14825
14826# A C compiler.
14827LTCC=$lt_CC
14828
14829# LTCC compiler flags.
14830LTCFLAGS=$lt_CFLAGS
14831
14832# Take the output of nm and produce a listing of raw symbols and C names.
14833global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14834
14835# Transform the output of nm in a proper C declaration.
14836global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14837
14838# Transform the output of nm in a C name address pair.
14839global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14840
14841# Transform the output of nm in a C name address pair when lib prefix is needed.
14842global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14843
14844# Specify filename containing input files for \$NM.
14845nm_file_list_spec=$lt_nm_file_list_spec
14846
14847# The root where to search for dependent libraries,and in which our libraries should be installed.
14848lt_sysroot=$lt_sysroot
14849
14850# The name of the directory that contains temporary libtool files.
14851objdir=$objdir
14852
14853# Used to examine libraries when file_magic_cmd begins with "file".
14854MAGIC_CMD=$MAGIC_CMD
14855
14856# Must we lock files when doing compilation?
14857need_locks=$lt_need_locks
14858
14859# Manifest tool.
14860MANIFEST_TOOL=$lt_MANIFEST_TOOL
14861
14862# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14863DSYMUTIL=$lt_DSYMUTIL
14864
14865# Tool to change global to local symbols on Mac OS X.
14866NMEDIT=$lt_NMEDIT
14867
14868# Tool to manipulate fat objects and archives on Mac OS X.
14869LIPO=$lt_LIPO
14870
14871# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14872OTOOL=$lt_OTOOL
14873
14874# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14875OTOOL64=$lt_OTOOL64
14876
14877# Old archive suffix (normally "a").
14878libext=$libext
14879
14880# Shared library suffix (normally ".so").
14881shrext_cmds=$lt_shrext_cmds
14882
14883# The commands to extract the exported symbol list from a shared archive.
14884extract_expsyms_cmds=$lt_extract_expsyms_cmds
14885
14886# Variables whose values should be saved in libtool wrapper scripts and
14887# restored at link time.
14888variables_saved_for_relink=$lt_variables_saved_for_relink
14889
14890# Do we need the "lib" prefix for modules?
14891need_lib_prefix=$need_lib_prefix
14892
14893# Do we need a version for libraries?
14894need_version=$need_version
14895
14896# Library versioning type.
14897version_type=$version_type
14898
14899# Shared library runtime path variable.
14900runpath_var=$runpath_var
14901
14902# Shared library path variable.
14903shlibpath_var=$shlibpath_var
14904
14905# Is shlibpath searched before the hard-coded library search path?
14906shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14907
14908# Format of library name prefix.
14909libname_spec=$lt_libname_spec
14910
14911# List of archive names. First name is the real one, the rest are links.
14912# The last name is the one that the linker finds with -lNAME
14913library_names_spec=$lt_library_names_spec
14914
14915# The coded name of the library, if different from the real name.
14916soname_spec=$lt_soname_spec
14917
14918# Permission mode override for installation of shared libraries.
14919install_override_mode=$lt_install_override_mode
14920
14921# Command to use after installation of a shared archive.
14922postinstall_cmds=$lt_postinstall_cmds
14923
14924# Command to use after uninstallation of a shared archive.
14925postuninstall_cmds=$lt_postuninstall_cmds
14926
14927# Commands used to finish a libtool library installation in a directory.
14928finish_cmds=$lt_finish_cmds
14929
14930# As "finish_cmds", except a single script fragment to be evaled but
14931# not shown.
14932finish_eval=$lt_finish_eval
14933
14934# Whether we should hardcode library paths into libraries.
14935hardcode_into_libs=$hardcode_into_libs
14936
14937# Compile-time system search path for libraries.
14938sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14939
14940# Run-time system search path for libraries.
14941sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14942
14943# Whether dlopen is supported.
14944dlopen_support=$enable_dlopen
14945
14946# Whether dlopen of programs is supported.
14947dlopen_self=$enable_dlopen_self
14948
14949# Whether dlopen of statically linked programs is supported.
14950dlopen_self_static=$enable_dlopen_self_static
14951
14952# Commands to strip libraries.
14953old_striplib=$lt_old_striplib
14954striplib=$lt_striplib
14955
14956
14957# The linker used to build libraries.
14958LD=$lt_LD
14959
14960# How to create reloadable object files.
14961reload_flag=$lt_reload_flag
14962reload_cmds=$lt_reload_cmds
14963
14964# Commands used to build an old-style archive.
14965old_archive_cmds=$lt_old_archive_cmds
14966
14967# A language specific compiler.
14968CC=$lt_compiler
14969
14970# Is the compiler the GNU compiler?
14971with_gcc=$GCC
14972
14973# Compiler flag to turn off builtin functions.
14974no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14975
14976# Additional compiler flags for building library objects.
14977pic_flag=$lt_lt_prog_compiler_pic
14978
14979# How to pass a linker flag through the compiler.
14980wl=$lt_lt_prog_compiler_wl
14981
14982# Compiler flag to prevent dynamic linking.
14983link_static_flag=$lt_lt_prog_compiler_static
14984
14985# Does compiler simultaneously support -c and -o options?
14986compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14987
14988# Whether or not to add -lc for building shared libraries.
14989build_libtool_need_lc=$archive_cmds_need_lc
14990
14991# Whether or not to disallow shared libs when runtime libs are static.
14992allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14993
14994# Compiler flag to allow reflexive dlopens.
14995export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14996
14997# Compiler flag to generate shared objects directly from archives.
14998whole_archive_flag_spec=$lt_whole_archive_flag_spec
14999
15000# Whether the compiler copes with passing no objects directly.
15001compiler_needs_object=$lt_compiler_needs_object
15002
15003# Create an old-style archive from a shared archive.
15004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15005
15006# Create a temporary old-style archive to link instead of a shared archive.
15007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15008
15009# Commands used to build a shared archive.
15010archive_cmds=$lt_archive_cmds
15011archive_expsym_cmds=$lt_archive_expsym_cmds
15012
15013# Commands used to build a loadable module if different from building
15014# a shared archive.
15015module_cmds=$lt_module_cmds
15016module_expsym_cmds=$lt_module_expsym_cmds
15017
15018# Whether we are building with GNU ld or not.
15019with_gnu_ld=$lt_with_gnu_ld
15020
15021# Flag that allows shared libraries with undefined symbols to be built.
15022allow_undefined_flag=$lt_allow_undefined_flag
15023
15024# Flag that enforces no undefined symbols.
15025no_undefined_flag=$lt_no_undefined_flag
15026
15027# Flag to hardcode \$libdir into a binary during linking.
15028# This must work even if \$libdir does not exist
15029hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15030
15031# Whether we need a single "-rpath" flag with a separated argument.
15032hardcode_libdir_separator=$lt_hardcode_libdir_separator
15033
15034# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15035# DIR into the resulting binary.
15036hardcode_direct=$hardcode_direct
15037
15038# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15039# DIR into the resulting binary and the resulting library dependency is
15040# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15041# library is relocated.
15042hardcode_direct_absolute=$hardcode_direct_absolute
15043
15044# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15045# into the resulting binary.
15046hardcode_minus_L=$hardcode_minus_L
15047
15048# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15049# into the resulting binary.
15050hardcode_shlibpath_var=$hardcode_shlibpath_var
15051
15052# Set to "yes" if building a shared library automatically hardcodes DIR
15053# into the library and all subsequent libraries and executables linked
15054# against it.
15055hardcode_automatic=$hardcode_automatic
15056
15057# Set to yes if linker adds runtime paths of dependent libraries
15058# to runtime path list.
15059inherit_rpath=$inherit_rpath
15060
15061# Whether libtool must link a program against all its dependency libraries.
15062link_all_deplibs=$link_all_deplibs
15063
15064# Set to "yes" if exported symbols are required.
15065always_export_symbols=$always_export_symbols
15066
15067# The commands to list exported symbols.
15068export_symbols_cmds=$lt_export_symbols_cmds
15069
15070# Symbols that should not be listed in the preloaded symbols.
15071exclude_expsyms=$lt_exclude_expsyms
15072
15073# Symbols that must always be exported.
15074include_expsyms=$lt_include_expsyms
15075
15076# Commands necessary for linking programs (against libraries) with templates.
15077prelink_cmds=$lt_prelink_cmds
15078
15079# Commands necessary for finishing linking programs.
15080postlink_cmds=$lt_postlink_cmds
15081
15082# Specify filename containing input files.
15083file_list_spec=$lt_file_list_spec
15084
15085# How to hardcode a shared library path into an executable.
15086hardcode_action=$hardcode_action
15087
15088# ### END LIBTOOL CONFIG
15089
15090_LT_EOF
15091
15092 case $host_os in
15093 aix3*)
15094 cat <<\_LT_EOF >> "$cfgfile"
15095# AIX sometimes has problems with the GCC collect2 program. For some
15096# reason, if we set the COLLECT_NAMES environment variable, the problems
15097# vanish in a puff of smoke.
15098if test "X${COLLECT_NAMES+set}" != Xset; then
15099 COLLECT_NAMES=
15100 export COLLECT_NAMES
15101fi
15102_LT_EOF
15103 ;;
15104 esac
15105
15106
15107ltmain="$ac_aux_dir/ltmain.sh"
15108
15109
15110 # We use sed instead of cat because bash on DJGPP gets confused if
15111 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15112 # text mode, it properly converts lines to CR/LF. This bash problem
15113 # is reportedly fixed, but why not run on old versions too?
15114 sed '$q' "$ltmain" >> "$cfgfile" \
15115 || (rm -f "$cfgfile"; exit 1)
15116
15117 if test x"$xsi_shell" = xyes; then
15118 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15119func_dirname ()\
15120{\
15121\ case ${1} in\
15122\ */*) func_dirname_result="${1%/*}${2}" ;;\
15123\ * ) func_dirname_result="${3}" ;;\
15124\ esac\
15125} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15126 && mv -f "$cfgfile.tmp" "$cfgfile" \
15127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15128test 0 -eq $? || _lt_function_replace_fail=:
15129
15130
15131 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15132func_basename ()\
15133{\
15134\ func_basename_result="${1##*/}"\
15135} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15136 && mv -f "$cfgfile.tmp" "$cfgfile" \
15137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15138test 0 -eq $? || _lt_function_replace_fail=:
15139
15140
15141 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15142func_dirname_and_basename ()\
15143{\
15144\ case ${1} in\
15145\ */*) func_dirname_result="${1%/*}${2}" ;;\
15146\ * ) func_dirname_result="${3}" ;;\
15147\ esac\
15148\ func_basename_result="${1##*/}"\
15149} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15150 && mv -f "$cfgfile.tmp" "$cfgfile" \
15151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15152test 0 -eq $? || _lt_function_replace_fail=:
15153
15154
15155 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15156func_stripname ()\
15157{\
15158\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15159\ # positional parameters, so assign one to ordinary parameter first.\
15160\ func_stripname_result=${3}\
15161\ func_stripname_result=${func_stripname_result#"${1}"}\
15162\ func_stripname_result=${func_stripname_result%"${2}"}\
15163} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15164 && mv -f "$cfgfile.tmp" "$cfgfile" \
15165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15166test 0 -eq $? || _lt_function_replace_fail=:
15167
15168
15169 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15170func_split_long_opt ()\
15171{\
15172\ func_split_long_opt_name=${1%%=*}\
15173\ func_split_long_opt_arg=${1#*=}\
15174} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15175 && mv -f "$cfgfile.tmp" "$cfgfile" \
15176 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15177test 0 -eq $? || _lt_function_replace_fail=:
15178
15179
15180 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15181func_split_short_opt ()\
15182{\
15183\ func_split_short_opt_arg=${1#??}\
15184\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15185} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15186 && mv -f "$cfgfile.tmp" "$cfgfile" \
15187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15188test 0 -eq $? || _lt_function_replace_fail=:
15189
15190
15191 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15192func_lo2o ()\
15193{\
15194\ case ${1} in\
15195\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15196\ *) func_lo2o_result=${1} ;;\
15197\ esac\
15198} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15199 && mv -f "$cfgfile.tmp" "$cfgfile" \
15200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15201test 0 -eq $? || _lt_function_replace_fail=:
15202
15203
15204 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15205func_xform ()\
15206{\
15207 func_xform_result=${1%.*}.lo\
15208} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15209 && mv -f "$cfgfile.tmp" "$cfgfile" \
15210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15211test 0 -eq $? || _lt_function_replace_fail=:
15212
15213
15214 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15215func_arith ()\
15216{\
15217 func_arith_result=$(( $* ))\
15218} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15219 && mv -f "$cfgfile.tmp" "$cfgfile" \
15220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15221test 0 -eq $? || _lt_function_replace_fail=:
15222
15223
15224 sed -e '/^func_len ()$/,/^} # func_len /c\
15225func_len ()\
15226{\
15227 func_len_result=${#1}\
15228} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15229 && mv -f "$cfgfile.tmp" "$cfgfile" \
15230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15231test 0 -eq $? || _lt_function_replace_fail=:
15232
15233fi
15234
15235if test x"$lt_shell_append" = xyes; then
15236 sed -e '/^func_append ()$/,/^} # func_append /c\
15237func_append ()\
15238{\
15239 eval "${1}+=\\${2}"\
15240} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15241 && mv -f "$cfgfile.tmp" "$cfgfile" \
15242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15243test 0 -eq $? || _lt_function_replace_fail=:
15244
15245
15246 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15247func_append_quoted ()\
15248{\
15249\ func_quote_for_eval "${2}"\
15250\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15251} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15252 && mv -f "$cfgfile.tmp" "$cfgfile" \
15253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15254test 0 -eq $? || _lt_function_replace_fail=:
15255
15256
15257 # Save a `func_append' function call where possible by direct use of '+='
15258 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15259 && mv -f "$cfgfile.tmp" "$cfgfile" \
15260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15261 test 0 -eq $? || _lt_function_replace_fail=:
15262else
15263 # Save a `func_append' function call even when '+=' is not available
15264 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15265 && mv -f "$cfgfile.tmp" "$cfgfile" \
15266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15267 test 0 -eq $? || _lt_function_replace_fail=:
15268fi
15269
15270if test x"$_lt_function_replace_fail" = x":"; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15272$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15273fi
15274
15275
15276 mv -f "$cfgfile" "$ofile" ||
15277 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15278 chmod +x "$ofile"
15279
15280 ;;
15281
15282 esac
15283done # for ac_tag
15284
15285
15286as_fn_exit 0
15287_ACEOF
15288ac_clean_files=$ac_clean_files_save
15289
15290test $ac_write_fail = 0 ||
15291 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15292
15293
15294# configure is writing to config.log, and then calls config.status.
15295# config.status does its own redirection, appending to config.log.
15296# Unfortunately, on DOS this fails, as config.log is still kept open
15297# by configure, so config.status won't be able to write to it; its
15298# output is simply discarded. So we exec the FD to /dev/null,
15299# effectively closing config.log, so it can be properly (re)opened and
15300# appended to by config.status. When coming back to configure, we
15301# need to make the FD available again.
15302if test "$no_create" != yes; then
15303 ac_cs_success=:
15304 ac_config_status_args=
15305 test "$silent" = yes &&
15306 ac_config_status_args="$ac_config_status_args --quiet"
15307 exec 5>/dev/null
15308 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15309 exec 5>>config.log
15310 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15311 # would make configure fail if this is the last instruction.
15312 $ac_cs_success || as_fn_exit 1
15313fi
15314
15315#
15316# CONFIG_SUBDIRS section.
15317#
15318if test "$no_recursion" != yes; then
15319
15320 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15321 # so they do not pile up.
15322 ac_sub_configure_args=
15323 ac_prev=
15324 eval "set x $ac_configure_args"
15325 shift
15326 for ac_arg
15327 do
15328 if test -n "$ac_prev"; then
15329 ac_prev=
15330 continue
15331 fi
15332 case $ac_arg in
15333 -cache-file | --cache-file | --cache-fil | --cache-fi \
15334 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15335 ac_prev=cache_file ;;
15336 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15337 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15338 | --c=*)
15339 ;;
15340 --config-cache | -C)
15341 ;;
15342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15343 ac_prev=srcdir ;;
15344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15345 ;;
15346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15347 ac_prev=prefix ;;
15348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15349 ;;
15350 --disable-option-checking)
15351 ;;
15352 *)
15353 case $ac_arg in
15354 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15355 esac
15356 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15357 esac
15358 done
15359
15360 # Always prepend --prefix to ensure using the same prefix
15361 # in subdir configurations.
15362 ac_arg="--prefix=$prefix"
15363 case $ac_arg in
15364 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15365 esac
15366 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15367
15368 # Pass --silent
15369 if test "$silent" = yes; then
15370 ac_sub_configure_args="--silent $ac_sub_configure_args"
15371 fi
15372
15373 # Always prepend --disable-option-checking to silence warnings, since
15374 # different subdirs can have different --enable and --with options.
15375 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15376
15377 ac_popdir=`pwd`
15378 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15379
15380 # Do not complain, so a configure script can configure whichever
15381 # parts of a large source tree are present.
15382 test -d "$srcdir/$ac_dir" || continue
15383
15384 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15385 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15386 $as_echo "$ac_msg" >&6
15387 as_dir="$ac_dir"; as_fn_mkdir_p
15388 ac_builddir=.
15389
15390case "$ac_dir" in
15391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15392*)
15393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15394 # A ".." for each directory in $ac_dir_suffix.
15395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15396 case $ac_top_builddir_sub in
15397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15399 esac ;;
15400esac
15401ac_abs_top_builddir=$ac_pwd
15402ac_abs_builddir=$ac_pwd$ac_dir_suffix
15403# for backward compatibility:
15404ac_top_builddir=$ac_top_build_prefix
15405
15406case $srcdir in
15407 .) # We are building in place.
15408 ac_srcdir=.
15409 ac_top_srcdir=$ac_top_builddir_sub
15410 ac_abs_top_srcdir=$ac_pwd ;;
15411 [\\/]* | ?:[\\/]* ) # Absolute name.
15412 ac_srcdir=$srcdir$ac_dir_suffix;
15413 ac_top_srcdir=$srcdir
15414 ac_abs_top_srcdir=$srcdir ;;
15415 *) # Relative name.
15416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15417 ac_top_srcdir=$ac_top_build_prefix$srcdir
15418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15419esac
15420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15421
15422
15423 cd "$ac_dir"
15424
15425 # Check for guested configure; otherwise get Cygnus style configure.
15426 if test -f "$ac_srcdir/configure.gnu"; then
15427 ac_sub_configure=$ac_srcdir/configure.gnu
15428 elif test -f "$ac_srcdir/configure"; then
15429 ac_sub_configure=$ac_srcdir/configure
15430 elif test -f "$ac_srcdir/configure.in"; then
15431 # This should be Cygnus configure.
15432 ac_sub_configure=$ac_aux_dir/configure
15433 else
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15435$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15436 ac_sub_configure=
15437 fi
15438
15439 # The recursion is here.
15440 if test -n "$ac_sub_configure"; then
15441 # Make the cache file name correct relative to the subdirectory.
15442 case $cache_file in
15443 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15444 *) # Relative name.
15445 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15446 esac
15447
15448 { $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
15449$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15450 # The eval makes quoting arguments work.
15451 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15452 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15453 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15454 fi
15455
15456 cd "$ac_popdir"
15457 done
15458fi
15459if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15461$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15462fi
15463
15464
15465echo "-------------------------------------------------------------------------------"
15466echo " NOTE"
15467echo ""
15468echo " There have been some changes starting with 3.2 regarding where and how libnl"
15469echo " is being installed on the system in order to allow multiple libnl versions"
15470echo " to be installed in parallel:"
15471echo ""
15472echo " - Headers will be installed in ${includedir}/libnl${MAJ_VERSION}, therefore"
15473echo " you will need to add \"-I/usr/include/libnl${MAJ_VERSION}\" to CFLAGS"
15474echo ""
15475echo " - The library basename was renamed to libnl-${MAJ_VERSION}, i.e. the SO names become"
15476echo " libnl-${MAJ_VERSION}.so., libnl-route-${MAJ_VERSION}.so, etc."
15477echo ""
15478echo " - libtool versioning was assumed, to ease detection of compatible library"
15479echo " versions."
15480echo ""
15481echo " If you are using pkg-config for detecting and linking against the library "
15482echo " things will continue magically as if nothing every happened. If you are "
15483echo " linking manually you need to adapt your Makefiles or switch to using "
15484echo " pkg-config files."
15485echo ""
15486echo "-------------------------------------------------------------------------------"
15487