Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for ppp 2.5.2.
4 #
5 # Report bugs to <https://github.com/ppp-project/ppp>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://github.com/ppp-project/ppp about your system,
283 $0: including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='ppp'
616 PACKAGE_TARNAME='ppp'
617 PACKAGE_VERSION='2.5.2'
618 PACKAGE_STRING='ppp 2.5.2'
619 PACKAGE_BUGREPORT='https://github.com/ppp-project/ppp'
620 PACKAGE_URL=''
621
622 ac_unique_file="pppd/main.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 ac_subst_vars='am__EXEEXT_FALSE
656 am__EXEEXT_TRUE
657 LTLIBOBJS
658 LIBOBJS
659 PPP_WITH_FILTER_FALSE
660 PPP_WITH_FILTER_TRUE
661 WITH_PCAP_FALSE
662 WITH_PCAP_TRUE
663 PCAP_LDFLAGS
664 PCAP_LIBS
665 PCAP_CFLAGS
666 PPP_WITH_PAM_FALSE
667 PPP_WITH_PAM_TRUE
668 WITH_LIBPAM_FALSE
669 WITH_LIBPAM_TRUE
670 PAM_LDFLAGS
671 PAM_LIBS
672 PAM_CFLAGS
673 WITH_LIBATM_FALSE
674 WITH_LIBATM_TRUE
675 ATM_LDFLAGS
676 ATM_LIBS
677 ATM_CFLAGS
678 WITH_SRP_FALSE
679 WITH_SRP_TRUE
680 SRP_LDFLAGS
681 SRP_LIBS
682 SRP_CFLAGS
683 OPENSSL_HAVE_DES_FALSE
684 OPENSSL_HAVE_DES_TRUE
685 OPENSSL_HAVE_SHA_FALSE
686 OPENSSL_HAVE_SHA_TRUE
687 OPENSSL_HAVE_MD5_FALSE
688 OPENSSL_HAVE_MD5_TRUE
689 OPENSSL_HAVE_MD4_FALSE
690 OPENSSL_HAVE_MD4_TRUE
691 CPP
692 PPP_WITH_OPENSSL_FALSE
693 PPP_WITH_OPENSSL_TRUE
694 OPENSSL_LDFLAGS
695 OPENSSL_LIBS
696 OPENSSL_INCLUDES
697 SYSTEM_CA_PATH
698 PPP_WITH_SYSTEM_CA_PATH_FALSE
699 PPP_WITH_SYSTEM_CA_PATH_TRUE
700 PPPD_LOGFILE_DIR
701 PPPD_RUNTIME_DIR
702 PPPD_PLUGIN_DIR
703 PPP_WITH_PEAP_FALSE
704 PPP_WITH_PEAP_TRUE
705 PPP_WITH_EAPTLS_FALSE
706 PPP_WITH_EAPTLS_TRUE
707 PPP_WITH_PLUGINS_FALSE
708 PPP_WITH_PLUGINS_TRUE
709 PPP_WITH_TDB_FALSE
710 PPP_WITH_TDB_TRUE
711 PPP_WITH_MULTILINK_FALSE
712 PPP_WITH_MULTILINK_TRUE
713 PPP_WITH_IPV6CP_FALSE
714 PPP_WITH_IPV6CP_TRUE
715 PPP_WITH_MPPE_FALSE
716 PPP_WITH_MPPE_TRUE
717 PPP_WITH_CHAPMS_FALSE
718 PPP_WITH_CHAPMS_TRUE
719 PPP_WITH_CBCP_FALSE
720 PPP_WITH_CBCP_TRUE
721 SYSTEMD_LIBS
722 SYSTEMD_CFLAGS
723 WITH_SYSTEMD_FALSE
724 WITH_SYSTEMD_TRUE
725 CRYPT_LIBS
726 UTIL_LIBS
727 SUNOS_FALSE
728 SUNOS_TRUE
729 LINUX_FALSE
730 LINUX_TRUE
731 PKG_CONFIG_LIBDIR
732 PKG_CONFIG_PATH
733 PKG_CONFIG
734 LT_SYS_LIBRARY_PATH
735 OTOOL64
736 OTOOL
737 LIPO
738 NMEDIT
739 DSYMUTIL
740 MANIFEST_TOOL
741 RANLIB
742 ac_ct_AR
743 AR
744 DLLTOOL
745 OBJDUMP
746 FILECMD
747 NM
748 ac_ct_DUMPBIN
749 DUMPBIN
750 LD
751 FGREP
752 EGREP
753 GREP
754 SED
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 LIBTOOL
764 LN_S
765 am__fastdepCC_FALSE
766 am__fastdepCC_TRUE
767 CCDEPMODE
768 am__nodep
769 AMDEPBACKSLASH
770 AMDEP_FALSE
771 AMDEP_TRUE
772 am__include
773 DEPDIR
774 OBJEXT
775 EXEEXT
776 ac_ct_CC
777 CPPFLAGS
778 LDFLAGS
779 CFLAGS
780 CC
781 MAINT
782 MAINTAINER_MODE_FALSE
783 MAINTAINER_MODE_TRUE
784 CSCOPE
785 ETAGS
786 CTAGS
787 am__untar
788 am__tar
789 AMTAR
790 am__leading_dot
791 SET_MAKE
792 AWK
793 mkdir_p
794 MKDIR_P
795 INSTALL_STRIP_PROGRAM
796 STRIP
797 install_sh
798 MAKEINFO
799 AUTOHEADER
800 AUTOMAKE
801 AUTOCONF
802 ACLOCAL
803 VERSION
804 PACKAGE
805 CYGPATH_W
806 am__isrc
807 INSTALL_DATA
808 INSTALL_SCRIPT
809 INSTALL_PROGRAM
810 AM_BACKSLASH
811 AM_DEFAULT_VERBOSITY
812 AM_DEFAULT_V
813 AM_V
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 runstatedir
834 localstatedir
835 sharedstatedir
836 sysconfdir
837 datadir
838 datarootdir
839 libexecdir
840 sbindir
841 bindir
842 program_transform_name
843 prefix
844 exec_prefix
845 PACKAGE_URL
846 PACKAGE_BUGREPORT
847 PACKAGE_STRING
848 PACKAGE_VERSION
849 PACKAGE_TARNAME
850 PACKAGE_NAME
851 PATH_SEPARATOR
852 SHELL
853 am__quote'
854 ac_subst_files=''
855 ac_user_opts='
856 enable_option_checking
857 enable_silent_rules
858 enable_maintainer_mode
859 enable_static
860 enable_dependency_tracking
861 enable_shared
862 with_pic
863 enable_fast_install
864 with_aix_soname
865 with_gnu_ld
866 with_sysroot
867 enable_libtool_lock
868 enable_systemd
869 enable_cbcp
870 enable_microsoft_extensions
871 enable_mslanman
872 enable_ipv6cp
873 enable_multilink
874 enable_plugins
875 enable_eaptls
876 enable_peap
877 enable_openssl_engine
878 with_plugin_dir
879 with_runtime_dir
880 with_logfile_dir
881 with_system_ca_path
882 with_openssl
883 with_srp
884 with_atm
885 with_pam
886 with_pcap
887 '
888 ac_precious_vars='build_alias
889 host_alias
890 target_alias
891 CC
892 CFLAGS
893 LDFLAGS
894 LIBS
895 CPPFLAGS
896 LT_SYS_LIBRARY_PATH
897 PKG_CONFIG
898 PKG_CONFIG_PATH
899 PKG_CONFIG_LIBDIR
900 SYSTEMD_CFLAGS
901 SYSTEMD_LIBS
902 CPP
903 PAM_CFLAGS
904 PAM_LIBS'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 ac_unrecognized_opts=
911 ac_unrecognized_sep=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 runstatedir='${localstatedir}/run'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
965 fi
966
967 case $ac_option in
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
976
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 bindir=$ac_optarg ;;
981
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
986
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
996
997 -datadir | --datadir | --datadi | --datad)
998 ac_prev=datadir ;;
999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000 datadir=$ac_optarg ;;
1001
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1008
1009 -disable-* | --disable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: '$ac_useropt'"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
1024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
1034
1035 -enable-* | --enable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid feature name: '$ac_useropt'"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "enable_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=\$ac_optarg ;;
1050
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1059
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1063
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1070
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1075
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1081
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1088
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1093
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1098
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1105
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1110
1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
1112 | --localstate | --localstat | --localsta | --localst | --locals)
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116 localstatedir=$ac_optarg ;;
1117
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1122
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1126
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1129 no_create=yes ;;
1130
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1134
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1143
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1148
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1155
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1162
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1179
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1184
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1189
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1193
1194 -runstatedir | --runstatedir | --runstatedi | --runstated \
1195 | --runstate | --runstat | --runsta | --runst | --runs \
1196 | --run | --ru | --r)
1197 ac_prev=runstatedir ;;
1198 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1199 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1200 | --run=* | --ru=* | --r=*)
1201 runstatedir=$ac_optarg ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1247
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: '$ac_useropt'"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=\$ac_optarg ;;
1263
1264 -without-* | --without-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: '$ac_useropt'"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=no ;;
1279
1280 --x)
1281 # Obsolete; use --with-x.
1282 with_x=yes ;;
1283
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1290
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1297
1298 -*) as_fn_error $? "unrecognized option: '$ac_option'
1299 Try '$0 --help' for more information"
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' | [0-9]* | *[!_$as_cr_alnum]* )
1307 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1308 esac
1309 eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1311
1312 *)
1313 # FIXME: should be removed in autoconf 3.0.
1314 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 ;;
1319
1320 esac
1321 done
1322
1323 if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $? "missing argument to $ac_option"
1326 fi
1327
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 esac
1334 fi
1335
1336 # Check all directory arguments for consistency.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir runstatedir
1341 do
1342 eval ac_val=\$$ac_var
1343 # Remove trailing slashes.
1344 case $ac_val in
1345 */ )
1346 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\$ac_val;;
1348 esac
1349 # Be sure to have absolute directory names.
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355 done
1356
1357 # There might be people who depend on the old broken behavior: '$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 elif test "x$build_alias" != "x$host_alias"; then
1369 cross_compiling=yes
1370 fi
1371 fi
1372
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375
1376 test "$silent" = yes && exec 6>/dev/null
1377
1378
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382 as_fn_error $? "working directory cannot be determined"
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 as_fn_error $? "pwd does not report name of working directory"
1385
1386
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 printf "%s\n" X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)[^/].*/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\).*/{
1410 s//\1/
1411 q
1412 }
1413 s/.*/./; q'`
1414 srcdir=$ac_confdir
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 srcdir=..
1417 fi
1418 else
1419 ac_srcdir_defaulted=no
1420 fi
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 fi
1425 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1426 ac_abs_confdir=`(
1427 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
1453 'configure' configures ppp 2.5.2 to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print 'checking ...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for '--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or '..']
1472
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 [PREFIX]
1478
1479 By default, 'make install' will install all the files in
1480 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than '$ac_default_prefix' using '--prefix',
1482 for instance '--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/ppp]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1507 _ACEOF
1508
1509 cat <<\_ACEOF
1510
1511 Program names:
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1515
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of ppp 2.5.2:";;
1525 esac
1526 cat <<\_ACEOF
1527
1528 Optional Features:
1529 --disable-option-checking ignore unrecognized --enable/--with options
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-silent-rules less verbose build output (undo: "make V=1")
1533 --disable-silent-rules verbose build output (undo: "make V=0")
1534 --disable-maintainer-mode
1535 disable make rules and dependencies not useful (and
1536 sometimes confusing) to the casual installer
1537 --enable-static[=PKGS] build static libraries [default=no]
1538 --enable-dependency-tracking
1539 do not reject slow dependency extractors
1540 --disable-dependency-tracking
1541 speeds up one-time build
1542 --enable-shared[=PKGS] build shared libraries [default=yes]
1543 --enable-fast-install[=PKGS]
1544 optimize for fast installation [default=yes]
1545 --disable-libtool-lock avoid locking (might break parallel builds)
1546 --enable-systemd Enable support for systemd notification
1547 --enable-cbcp Enable Callback Protocol
1548 --disable-microsoft-extensions
1549 Disable Microsoft CHAP / MPPE / PEAP extensions
1550 --enable-mslanman Enable Microsoft LAN Manager support
1551 --disable-ipv6cp Disable IPv6 Control Protocol
1552 --enable-multilink Enable multilink support
1553 --disable-plugins Disable support for loadable plugins
1554 --disable-eaptls Disable EAP-TLS authentication support
1555 --disable-peap Disable PEAP authentication support
1556 --disable-openssl-engine
1557 Disable OpenSSL engine support
1558
1559 Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1563 both]
1564 --with-aix-soname=aix|svr4|both
1565 shared library versioning (aka "SONAME") variant to
1566 provide on AIX, [default=aix].
1567 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1568 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1569 compiler's sysroot if not specified).
1570 --with-plugin-dir=DIR Specify the plugin directory for pppd
1571 --with-runtime-dir=DIR Specify the runtime directory for pppd
1572 --with-logfile-dir=DIR Specify the log directory for pppd
1573 --with-system-ca-path=/path/to/ssl/certs
1574 path to system CA certificates
1575 --with-openssl=DIR With openssl support, see http://www.openssl.org
1576 --with-srp=DIR With libsrp support, see http://srp.stanford.edu
1577 --with-atm=DIR With libatm support, see
1578 http://linux-atm.sourceforge.net
1579 --with-pam=yes|no|DIR With libpam support, see ftp.redhat.com:/pub/pam
1580 --with-pcap=DIR With libpcap support, see https://www.tcpdump.org
1581
1582 Some influential environment variables:
1583 CC C compiler command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
1587 LIBS libraries to pass to the linker, e.g. -l<library>
1588 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
1590 LT_SYS_LIBRARY_PATH
1591 User-defined run-time library search path.
1592 PKG_CONFIG path to pkg-config utility
1593 PKG_CONFIG_PATH
1594 directories to add to pkg-config's search path
1595 PKG_CONFIG_LIBDIR
1596 path overriding pkg-config's built-in search path
1597 SYSTEMD_CFLAGS
1598 C compiler flags for SYSTEMD, overriding pkg-config
1599 SYSTEMD_LIBS
1600 linker flags for SYSTEMD, overriding pkg-config
1601 CPP C preprocessor
1602 PAM_CFLAGS C compiler flags for PAM, overriding pkg-config
1603 PAM_LIBS linker flags for PAM, overriding pkg-config
1604
1605 Use these variables to override the choices made by 'configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1607
1608 Report bugs to <https://github.com/ppp-project/ppp>.
1609 _ACEOF
1610 ac_status=$?
1611 fi
1612
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618 continue
1619 ac_builddir=.
1620
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *)
1624 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1636
1637 case $srcdir in
1638 .) # We are building in place.
1639 ac_srcdir=.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1646 *) # Relative name.
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for configure.gnu first; this name is used for a wrapper for
1655 # Metaconfig's "Configure" on case-insensitive file systems.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1662 else
1663 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1666 done
1667 fi
1668
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1671 cat <<\_ACEOF
1672 ppp configure 2.5.2
1673 generated by GNU Autoconf 2.72
1674
1675 Copyright (C) 2023 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1678 _ACEOF
1679 exit
1680 fi
1681
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1685
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest.beam
1693 if { { ac_try="$ac_compile"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 printf "%s\n" "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext
1712 then :
1713 ac_retval=0
1714 else case e in #(
1715 e) printf "%s\n" "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1 ;;
1719 esac
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_compile
1725
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_link ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 printf "%s\n" "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 test -x conftest$ac_exeext
1754 }
1755 then :
1756 ac_retval=0
1757 else case e in #(
1758 e) printf "%s\n" "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1 ;;
1762 esac
1763 fi
1764 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766 # interfere with the next link command; also delete a directory that is
1767 # left behind by Apple's compiler. We do this before executing the actions.
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_link
1773
1774 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists and can be compiled using the include files in
1777 # INCLUDES, setting the cache variable VAR accordingly.
1778 ac_fn_c_check_header_compile ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 printf %s "checking for $2... " >&6; }
1783 if eval test \${$3+y}
1784 then :
1785 printf %s "(cached) " >&6
1786 else case e in #(
1787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"
1793 then :
1794 eval "$3=yes"
1795 else case e in #(
1796 e) eval "$3=no" ;;
1797 esac
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1800 esac
1801 fi
1802 eval ac_res=\$$3
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 printf "%s\n" "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_header_compile
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 printf %s "checking for $2... " >&6; }
1817 if eval test \${$3+y}
1818 then :
1819 printf %s "(cached) " >&6
1820 else case e in #(
1821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1826
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (void); below. */
1829
1830 #include <limits.h>
1831 #undef $2
1832
1833 /* Override any GCC internal prototype to avoid an error.
1834 Use char because int might match the return type of a GCC
1835 builtin and then its argument prototype would still apply. */
1836 #ifdef __cplusplus
1837 extern "C"
1838 #endif
1839 char $2 (void);
1840 /* The GNU C library defines this for functions which it implements
1841 to always fail with ENOSYS. Some functions are actually named
1842 something starting with __ and the normal name is an alias. */
1843 #if defined __stub_$2 || defined __stub___$2
1844 choke me
1845 #endif
1846
1847 int
1848 main (void)
1849 {
1850 return $2 ();
1851 ;
1852 return 0;
1853 }
1854 _ACEOF
1855 if ac_fn_c_try_link "$LINENO"
1856 then :
1857 eval "$3=yes"
1858 else case e in #(
1859 e) eval "$3=no" ;;
1860 esac
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1863 conftest$ac_exeext conftest.$ac_ext ;;
1864 esac
1865 fi
1866 eval ac_res=\$$3
1867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 printf "%s\n" "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871 } # ac_fn_c_check_func
1872
1873 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1874 # -------------------------------------------
1875 # Tests whether TYPE exists after having included INCLUDES, setting cache
1876 # variable VAR accordingly.
1877 ac_fn_c_check_type ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 printf %s "checking for $2... " >&6; }
1882 if eval test \${$3+y}
1883 then :
1884 printf %s "(cached) " >&6
1885 else case e in #(
1886 e) eval "$3=no"
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $4
1890 int
1891 main (void)
1892 {
1893 if (sizeof ($2))
1894 return 0;
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"
1900 then :
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 int
1905 main (void)
1906 {
1907 if (sizeof (($2)))
1908 return 0;
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"
1914 then :
1915
1916 else case e in #(
1917 e) eval "$3=yes" ;;
1918 esac
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1923 esac
1924 fi
1925 eval ac_res=\$$3
1926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 printf "%s\n" "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930 } # ac_fn_c_check_type
1931
1932 # ac_fn_c_try_run LINENO
1933 # ----------------------
1934 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1935 # executables *can* be run.
1936 ac_fn_c_try_run ()
1937 {
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { { ac_try="$ac_link"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 printf "%s\n" "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>&5
1947 ac_status=$?
1948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1950 { { case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 printf "%s\n" "$ac_try_echo"; } >&5
1956 (eval "$ac_try") 2>&5
1957 ac_status=$?
1958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; }; }
1960 then :
1961 ac_retval=0
1962 else case e in #(
1963 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1964 printf "%s\n" "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1966
1967 ac_retval=$ac_status ;;
1968 esac
1969 fi
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974 } # ac_fn_c_try_run
1975
1976 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1977 # --------------------------------------------
1978 # Tries to find the compile-time value of EXPR in a program that includes
1979 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1980 # computed
1981 ac_fn_c_compute_int ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if test "$cross_compiling" = yes; then
1985 # Depending upon the size, compute the lo and hi bounds.
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 $4
1989 int
1990 main (void)
1991 {
1992 static int test_array [1 - 2 * !(($2) >= 0)];
1993 test_array [0] = 0;
1994 return test_array [0];
1995
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"
2001 then :
2002 ac_lo=0 ac_mid=0
2003 while :; do
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $4
2007 int
2008 main (void)
2009 {
2010 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011 test_array [0] = 0;
2012 return test_array [0];
2013
2014 ;
2015 return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"
2019 then :
2020 ac_hi=$ac_mid; break
2021 else case e in #(
2022 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2023 if test $ac_lo -le $ac_mid; then
2024 ac_lo= ac_hi=
2025 break
2026 fi
2027 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2028 esac
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2031 done
2032 else case e in #(
2033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main (void)
2038 {
2039 static int test_array [1 - 2 * !(($2) < 0)];
2040 test_array [0] = 0;
2041 return test_array [0];
2042
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"
2048 then :
2049 ac_hi=-1 ac_mid=-1
2050 while :; do
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 $4
2054 int
2055 main (void)
2056 {
2057 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2058 test_array [0] = 0;
2059 return test_array [0];
2060
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"
2066 then :
2067 ac_lo=$ac_mid; break
2068 else case e in #(
2069 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2070 if test $ac_mid -le $ac_hi; then
2071 ac_lo= ac_hi=
2072 break
2073 fi
2074 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2075 esac
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2078 done
2079 else case e in #(
2080 e) ac_lo= ac_hi= ;;
2081 esac
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2084 esac
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2087 # Binary search between lo and hi bounds.
2088 while test "x$ac_lo" != "x$ac_hi"; do
2089 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main (void)
2095 {
2096 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2097 test_array [0] = 0;
2098 return test_array [0];
2099
2100 ;
2101 return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"
2105 then :
2106 ac_hi=$ac_mid
2107 else case e in #(
2108 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2109 esac
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2112 done
2113 case $ac_lo in #((
2114 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2115 '') ac_retval=1 ;;
2116 esac
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 static long int longval (void) { return $2; }
2122 static unsigned long int ulongval (void) { return $2; }
2123 #include <stdio.h>
2124 #include <stdlib.h>
2125 int
2126 main (void)
2127 {
2128
2129 FILE *f = fopen ("conftest.val", "w");
2130 if (! f)
2131 return 1;
2132 if (($2) < 0)
2133 {
2134 long int i = longval ();
2135 if (i != ($2))
2136 return 1;
2137 fprintf (f, "%ld", i);
2138 }
2139 else
2140 {
2141 unsigned long int i = ulongval ();
2142 if (i != ($2))
2143 return 1;
2144 fprintf (f, "%lu", i);
2145 }
2146 /* Do not output a trailing newline, as this causes \r\n confusion
2147 on some platforms. */
2148 return ferror (f) || fclose (f) != 0;
2149
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_run "$LINENO"
2155 then :
2156 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2157 else case e in #(
2158 e) ac_retval=1 ;;
2159 esac
2160 fi
2161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2162 conftest.$ac_objext conftest.beam conftest.$ac_ext
2163 rm -f conftest.val
2164
2165 fi
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval
2168
2169 } # ac_fn_c_compute_int
2170
2171 # ac_fn_c_try_cpp LINENO
2172 # ----------------------
2173 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_c_try_cpp ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if { { ac_try="$ac_cpp conftest.$ac_ext"
2178 case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 printf "%s\n" "$ac_try_echo"; } >&5
2184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2185 ac_status=$?
2186 if test -s conftest.err; then
2187 grep -v '^ *+' conftest.err >conftest.er1
2188 cat conftest.er1 >&5
2189 mv -f conftest.er1 conftest.err
2190 fi
2191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } > conftest.i && {
2193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2194 test ! -s conftest.err
2195 }
2196 then :
2197 ac_retval=0
2198 else case e in #(
2199 e) printf "%s\n" "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201
2202 ac_retval=1 ;;
2203 esac
2204 fi
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 as_fn_set_status $ac_retval
2207
2208 } # ac_fn_c_try_cpp
2209 ac_configure_args_raw=
2210 for ac_arg
2211 do
2212 case $ac_arg in
2213 *\'*)
2214 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2215 esac
2216 as_fn_append ac_configure_args_raw " '$ac_arg'"
2217 done
2218
2219 case $ac_configure_args_raw in
2220 *$as_nl*)
2221 ac_safe_unquote= ;;
2222 *)
2223 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2224 ac_unsafe_a="$ac_unsafe_z#~"
2225 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2226 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2227 esac
2228
2229 cat >config.log <<_ACEOF
2230 This file contains any messages produced by compilers while
2231 running configure, to aid debugging if configure makes a mistake.
2232
2233 It was created by ppp $as_me 2.5.2, which was
2234 generated by GNU Autoconf 2.72. Invocation command line was
2235
2236 $ $0$ac_configure_args_raw
2237
2238 _ACEOF
2239 exec 5>>config.log
2240 {
2241 cat <<_ASUNAME
2242 ## --------- ##
2243 ## Platform. ##
2244 ## --------- ##
2245
2246 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2247 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2248 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2249 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2250 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2251
2252 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2253 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2254
2255 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2256 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2257 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2258 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2259 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2260 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2261 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2262
2263 _ASUNAME
2264
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268 IFS=$as_save_IFS
2269 case $as_dir in #(((
2270 '') as_dir=./ ;;
2271 */) ;;
2272 *) as_dir=$as_dir/ ;;
2273 esac
2274 printf "%s\n" "PATH: $as_dir"
2275 done
2276 IFS=$as_save_IFS
2277
2278 } >&5
2279
2280 cat >&5 <<_ACEOF
2281
2282
2283 ## ----------- ##
2284 ## Core tests. ##
2285 ## ----------- ##
2286
2287 _ACEOF
2288
2289
2290 # Keep a trace of the command line.
2291 # Strip out --no-create and --no-recursion so they do not pile up.
2292 # Strip out --silent because we don't want to record it for future runs.
2293 # Also quote any args containing shell meta-characters.
2294 # Make two passes to allow for proper duplicate-argument suppression.
2295 ac_configure_args=
2296 ac_configure_args0=
2297 ac_configure_args1=
2298 ac_must_keep_next=false
2299 for ac_pass in 1 2
2300 do
2301 for ac_arg
2302 do
2303 case $ac_arg in
2304 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2306 | -silent | --silent | --silen | --sile | --sil)
2307 continue ;;
2308 *\'*)
2309 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 esac
2311 case $ac_pass in
2312 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2313 2)
2314 as_fn_append ac_configure_args1 " '$ac_arg'"
2315 if test $ac_must_keep_next = true; then
2316 ac_must_keep_next=false # Got value, back to normal.
2317 else
2318 case $ac_arg in
2319 *=* | --config-cache | -C | -disable-* | --disable-* \
2320 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2321 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2322 | -with-* | --with-* | -without-* | --without-* | --x)
2323 case "$ac_configure_args0 " in
2324 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2325 esac
2326 ;;
2327 -* ) ac_must_keep_next=true ;;
2328 esac
2329 fi
2330 as_fn_append ac_configure_args " '$ac_arg'"
2331 ;;
2332 esac
2333 done
2334 done
2335 { ac_configure_args0=; unset ac_configure_args0;}
2336 { ac_configure_args1=; unset ac_configure_args1;}
2337
2338 # When interrupted or exit'd, cleanup temporary files, and complete
2339 # config.log. We remove comments because anyway the quotes in there
2340 # would cause problems or look ugly.
2341 # WARNING: Use '\'' to represent an apostrophe within the trap.
2342 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2343 trap 'exit_status=$?
2344 # Sanitize IFS.
2345 IFS=" "" $as_nl"
2346 # Save into config.log some information that might help in debugging.
2347 {
2348 echo
2349
2350 printf "%s\n" "## ---------------- ##
2351 ## Cache variables. ##
2352 ## ---------------- ##"
2353 echo
2354 # The following way of writing the cache mishandles newlines in values,
2355 (
2356 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in #(
2359 *${as_nl}*)
2360 case $ac_var in #(
2361 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2362 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2363 esac
2364 case $ac_var in #(
2365 _ | IFS | as_nl) ;; #(
2366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2367 *) { eval $ac_var=; unset $ac_var;} ;;
2368 esac ;;
2369 esac
2370 done
2371 (set) 2>&1 |
2372 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2373 *${as_nl}ac_space=\ *)
2374 sed -n \
2375 "s/'\''/'\''\\\\'\'''\''/g;
2376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2377 ;; #(
2378 *)
2379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2380 ;;
2381 esac |
2382 sort
2383 )
2384 echo
2385
2386 printf "%s\n" "## ----------------- ##
2387 ## Output variables. ##
2388 ## ----------------- ##"
2389 echo
2390 for ac_var in $ac_subst_vars
2391 do
2392 eval ac_val=\$$ac_var
2393 case $ac_val in
2394 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 esac
2396 printf "%s\n" "$ac_var='\''$ac_val'\''"
2397 done | sort
2398 echo
2399
2400 if test -n "$ac_subst_files"; then
2401 printf "%s\n" "## ------------------- ##
2402 ## File substitutions. ##
2403 ## ------------------- ##"
2404 echo
2405 for ac_var in $ac_subst_files
2406 do
2407 eval ac_val=\$$ac_var
2408 case $ac_val in
2409 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 esac
2411 printf "%s\n" "$ac_var='\''$ac_val'\''"
2412 done | sort
2413 echo
2414 fi
2415
2416 if test -s confdefs.h; then
2417 printf "%s\n" "## ----------- ##
2418 ## confdefs.h. ##
2419 ## ----------- ##"
2420 echo
2421 cat confdefs.h
2422 echo
2423 fi
2424 test "$ac_signal" != 0 &&
2425 printf "%s\n" "$as_me: caught signal $ac_signal"
2426 printf "%s\n" "$as_me: exit $exit_status"
2427 } >&5
2428 rm -f core *.core core.conftest.* &&
2429 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2430 exit $exit_status
2431 ' 0
2432 for ac_signal in 1 2 13 15; do
2433 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2434 done
2435 ac_signal=0
2436
2437 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2438 rm -f -r conftest* confdefs.h
2439
2440 printf "%s\n" "/* confdefs.h */" > confdefs.h
2441
2442 # Predefined preprocessor variables.
2443
2444 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2445
2446 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2447
2448 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2449
2450 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2451
2452 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2453
2454 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2455
2456
2457 # Let the site file select an alternate cache file if it wants to.
2458 # Prefer an explicitly selected file to automatically selected ones.
2459 if test -n "$CONFIG_SITE"; then
2460 ac_site_files="$CONFIG_SITE"
2461 elif test "x$prefix" != xNONE; then
2462 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2463 else
2464 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2465 fi
2466
2467 for ac_site_file in $ac_site_files
2468 do
2469 case $ac_site_file in #(
2470 */*) :
2471 ;; #(
2472 *) :
2473 ac_site_file=./$ac_site_file ;;
2474 esac
2475 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2477 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2478 sed 's/^/| /' "$ac_site_file" >&5
2479 . "$ac_site_file" \
2480 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2481 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2482 as_fn_error $? "failed to load site script $ac_site_file
2483 See 'config.log' for more details" "$LINENO" 5; }
2484 fi
2485 done
2486
2487 if test -r "$cache_file"; then
2488 # Some versions of bash will fail to source /dev/null (special files
2489 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2490 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2492 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2493 case $cache_file in
2494 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2495 *) . "./$cache_file";;
2496 esac
2497 fi
2498 else
2499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2500 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2501 >$cache_file
2502 fi
2503
2504 # Test code for whether the C compiler supports C89 (global declarations)
2505 ac_c_conftest_c89_globals='
2506 /* Does the compiler advertise C89 conformance?
2507 Do not test the value of __STDC__, because some compilers set it to 0
2508 while being otherwise adequately conformant. */
2509 #if !defined __STDC__
2510 # error "Compiler does not advertise C89 conformance"
2511 #endif
2512
2513 #include <stddef.h>
2514 #include <stdarg.h>
2515 struct stat;
2516 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2517 struct buf { int x; };
2518 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2519 static char *e (char **p, int i)
2520 {
2521 return p[i];
2522 }
2523 static char *f (char * (*g) (char **, int), char **p, ...)
2524 {
2525 char *s;
2526 va_list v;
2527 va_start (v,p);
2528 s = g (p, va_arg (v,int));
2529 va_end (v);
2530 return s;
2531 }
2532
2533 /* C89 style stringification. */
2534 #define noexpand_stringify(a) #a
2535 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2536
2537 /* C89 style token pasting. Exercises some of the corner cases that
2538 e.g. old MSVC gets wrong, but not very hard. */
2539 #define noexpand_concat(a,b) a##b
2540 #define expand_concat(a,b) noexpand_concat(a,b)
2541 extern int vA;
2542 extern int vbee;
2543 #define aye A
2544 #define bee B
2545 int *pvA = &expand_concat(v,aye);
2546 int *pvbee = &noexpand_concat(v,bee);
2547
2548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2549 function prototypes and stuff, but not \xHH hex character constants.
2550 These do not provoke an error unfortunately, instead are silently treated
2551 as an "x". The following induces an error, until -std is added to get
2552 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2553 array size at least. It is necessary to write \x00 == 0 to get something
2554 that is true only with -std. */
2555 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2556
2557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2558 inside strings and character constants. */
2559 #define FOO(x) '\''x'\''
2560 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2561
2562 int test (int i, double x);
2563 struct s1 {int (*f) (int a);};
2564 struct s2 {int (*f) (double a);};
2565 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2566 int, int);'
2567
2568 # Test code for whether the C compiler supports C89 (body of main).
2569 ac_c_conftest_c89_main='
2570 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2571 '
2572
2573 # Test code for whether the C compiler supports C99 (global declarations)
2574 ac_c_conftest_c99_globals='
2575 /* Does the compiler advertise C99 conformance? */
2576 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2577 # error "Compiler does not advertise C99 conformance"
2578 #endif
2579
2580 // See if C++-style comments work.
2581
2582 #include <stdbool.h>
2583 extern int puts (const char *);
2584 extern int printf (const char *, ...);
2585 extern int dprintf (int, const char *, ...);
2586 extern void *malloc (size_t);
2587 extern void free (void *);
2588
2589 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2590 // dprintf is used instead of fprintf to avoid needing to declare
2591 // FILE and stderr.
2592 #define debug(...) dprintf (2, __VA_ARGS__)
2593 #define showlist(...) puts (#__VA_ARGS__)
2594 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2595 static void
2596 test_varargs_macros (void)
2597 {
2598 int x = 1234;
2599 int y = 5678;
2600 debug ("Flag");
2601 debug ("X = %d\n", x);
2602 showlist (The first, second, and third items.);
2603 report (x>y, "x is %d but y is %d", x, y);
2604 }
2605
2606 // Check long long types.
2607 #define BIG64 18446744073709551615ull
2608 #define BIG32 4294967295ul
2609 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2610 #if !BIG_OK
2611 #error "your preprocessor is broken"
2612 #endif
2613 #if BIG_OK
2614 #else
2615 #error "your preprocessor is broken"
2616 #endif
2617 static long long int bignum = -9223372036854775807LL;
2618 static unsigned long long int ubignum = BIG64;
2619
2620 struct incomplete_array
2621 {
2622 int datasize;
2623 double data[];
2624 };
2625
2626 struct named_init {
2627 int number;
2628 const wchar_t *name;
2629 double average;
2630 };
2631
2632 typedef const char *ccp;
2633
2634 static inline int
2635 test_restrict (ccp restrict text)
2636 {
2637 // Iterate through items via the restricted pointer.
2638 // Also check for declarations in for loops.
2639 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2640 continue;
2641 return 0;
2642 }
2643
2644 // Check varargs and va_copy.
2645 static bool
2646 test_varargs (const char *format, ...)
2647 {
2648 va_list args;
2649 va_start (args, format);
2650 va_list args_copy;
2651 va_copy (args_copy, args);
2652
2653 const char *str = "";
2654 int number = 0;
2655 float fnumber = 0;
2656
2657 while (*format)
2658 {
2659 switch (*format++)
2660 {
2661 case '\''s'\'': // string
2662 str = va_arg (args_copy, const char *);
2663 break;
2664 case '\''d'\'': // int
2665 number = va_arg (args_copy, int);
2666 break;
2667 case '\''f'\'': // float
2668 fnumber = va_arg (args_copy, double);
2669 break;
2670 default:
2671 break;
2672 }
2673 }
2674 va_end (args_copy);
2675 va_end (args);
2676
2677 return *str && number && fnumber;
2678 }
2679 '
2680
2681 # Test code for whether the C compiler supports C99 (body of main).
2682 ac_c_conftest_c99_main='
2683 // Check bool.
2684 _Bool success = false;
2685 success |= (argc != 0);
2686
2687 // Check restrict.
2688 if (test_restrict ("String literal") == 0)
2689 success = true;
2690 char *restrict newvar = "Another string";
2691
2692 // Check varargs.
2693 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2694 test_varargs_macros ();
2695
2696 // Check flexible array members.
2697 struct incomplete_array *ia =
2698 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2699 ia->datasize = 10;
2700 for (int i = 0; i < ia->datasize; ++i)
2701 ia->data[i] = i * 1.234;
2702 // Work around memory leak warnings.
2703 free (ia);
2704
2705 // Check named initializers.
2706 struct named_init ni = {
2707 .number = 34,
2708 .name = L"Test wide string",
2709 .average = 543.34343,
2710 };
2711
2712 ni.number = 58;
2713
2714 int dynamic_array[ni.number];
2715 dynamic_array[0] = argv[0][0];
2716 dynamic_array[ni.number - 1] = 543;
2717
2718 // work around unused variable warnings
2719 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2720 || dynamic_array[ni.number - 1] != 543);
2721 '
2722
2723 # Test code for whether the C compiler supports C11 (global declarations)
2724 ac_c_conftest_c11_globals='
2725 /* Does the compiler advertise C11 conformance? */
2726 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2727 # error "Compiler does not advertise C11 conformance"
2728 #endif
2729
2730 // Check _Alignas.
2731 char _Alignas (double) aligned_as_double;
2732 char _Alignas (0) no_special_alignment;
2733 extern char aligned_as_int;
2734 char _Alignas (0) _Alignas (int) aligned_as_int;
2735
2736 // Check _Alignof.
2737 enum
2738 {
2739 int_alignment = _Alignof (int),
2740 int_array_alignment = _Alignof (int[100]),
2741 char_alignment = _Alignof (char)
2742 };
2743 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2744
2745 // Check _Noreturn.
2746 int _Noreturn does_not_return (void) { for (;;) continue; }
2747
2748 // Check _Static_assert.
2749 struct test_static_assert
2750 {
2751 int x;
2752 _Static_assert (sizeof (int) <= sizeof (long int),
2753 "_Static_assert does not work in struct");
2754 long int y;
2755 };
2756
2757 // Check UTF-8 literals.
2758 #define u8 syntax error!
2759 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2760
2761 // Check duplicate typedefs.
2762 typedef long *long_ptr;
2763 typedef long int *long_ptr;
2764 typedef long_ptr long_ptr;
2765
2766 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2767 struct anonymous
2768 {
2769 union {
2770 struct { int i; int j; };
2771 struct { int k; long int l; } w;
2772 };
2773 int m;
2774 } v1;
2775 '
2776
2777 # Test code for whether the C compiler supports C11 (body of main).
2778 ac_c_conftest_c11_main='
2779 _Static_assert ((offsetof (struct anonymous, i)
2780 == offsetof (struct anonymous, w.k)),
2781 "Anonymous union alignment botch");
2782 v1.i = 2;
2783 v1.w.k = 5;
2784 ok |= v1.i != 5;
2785 '
2786
2787 # Test code for whether the C compiler supports C11 (complete).
2788 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2789 ${ac_c_conftest_c99_globals}
2790 ${ac_c_conftest_c11_globals}
2791
2792 int
2793 main (int argc, char **argv)
2794 {
2795 int ok = 0;
2796 ${ac_c_conftest_c89_main}
2797 ${ac_c_conftest_c99_main}
2798 ${ac_c_conftest_c11_main}
2799 return ok;
2800 }
2801 "
2802
2803 # Test code for whether the C compiler supports C99 (complete).
2804 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2805 ${ac_c_conftest_c99_globals}
2806
2807 int
2808 main (int argc, char **argv)
2809 {
2810 int ok = 0;
2811 ${ac_c_conftest_c89_main}
2812 ${ac_c_conftest_c99_main}
2813 return ok;
2814 }
2815 "
2816
2817 # Test code for whether the C compiler supports C89 (complete).
2818 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2819
2820 int
2821 main (int argc, char **argv)
2822 {
2823 int ok = 0;
2824 ${ac_c_conftest_c89_main}
2825 return ok;
2826 }
2827 "
2828
2829 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2830 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2831 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2832 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2833 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2834 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2835 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2836 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2837 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2838
2839 # Auxiliary files required by this configure script.
2840 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2841
2842 # Locations in which to look for auxiliary files.
2843 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2844
2845 # Search for a directory containing all of the required auxiliary files,
2846 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2847 # If we don't find one directory that contains all the files we need,
2848 # we report the set of missing files from the *first* directory in
2849 # $ac_aux_dir_candidates and give up.
2850 ac_missing_aux_files=""
2851 ac_first_candidate=:
2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 as_found=false
2855 for as_dir in $ac_aux_dir_candidates
2856 do
2857 IFS=$as_save_IFS
2858 case $as_dir in #(((
2859 '') as_dir=./ ;;
2860 */) ;;
2861 *) as_dir=$as_dir/ ;;
2862 esac
2863 as_found=:
2864
2865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2866 ac_aux_dir_found=yes
2867 ac_install_sh=
2868 for ac_aux in $ac_aux_files
2869 do
2870 # As a special case, if "install-sh" is required, that requirement
2871 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2872 # and $ac_install_sh is set appropriately for whichever one is found.
2873 if test x"$ac_aux" = x"install-sh"
2874 then
2875 if test -f "${as_dir}install-sh"; then
2876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2877 ac_install_sh="${as_dir}install-sh -c"
2878 elif test -f "${as_dir}install.sh"; then
2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2880 ac_install_sh="${as_dir}install.sh -c"
2881 elif test -f "${as_dir}shtool"; then
2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2883 ac_install_sh="${as_dir}shtool install -c"
2884 else
2885 ac_aux_dir_found=no
2886 if $ac_first_candidate; then
2887 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2888 else
2889 break
2890 fi
2891 fi
2892 else
2893 if test -f "${as_dir}${ac_aux}"; then
2894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2895 else
2896 ac_aux_dir_found=no
2897 if $ac_first_candidate; then
2898 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2899 else
2900 break
2901 fi
2902 fi
2903 fi
2904 done
2905 if test "$ac_aux_dir_found" = yes; then
2906 ac_aux_dir="$as_dir"
2907 break
2908 fi
2909 ac_first_candidate=false
2910
2911 as_found=false
2912 done
2913 IFS=$as_save_IFS
2914 if $as_found
2915 then :
2916
2917 else case e in #(
2918 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2919 esac
2920 fi
2921
2922
2923 # These three variables are undocumented and unsupported,
2924 # and are intended to be withdrawn in a future Autoconf release.
2925 # They can cause serious problems if a builder's source tree is in a directory
2926 # whose full name contains unusual characters.
2927 if test -f "${ac_aux_dir}config.guess"; then
2928 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2929 fi
2930 if test -f "${ac_aux_dir}config.sub"; then
2931 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2932 fi
2933 if test -f "$ac_aux_dir/configure"; then
2934 ac_configure="$SHELL ${ac_aux_dir}configure"
2935 fi
2936
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2946 set,)
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2948 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,set)
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2952 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2954 ,);;
2955 *)
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x $ac_old_val`
2959 ac_new_val_w=`echo x $ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2962 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2963 ac_cache_corrupted=:
2964 else
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2966 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2968 fi
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2970 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2972 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2973 fi;;
2974 esac
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2977 case $ac_new_val in
2978 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2980 esac
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984 esac
2985 fi
2986 done
2987 if $ac_cache_corrupted; then
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2989 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2993 and start over" "$LINENO" 5
2994 fi
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
2998
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004
3005
3006
3007 # Check whether --enable-silent-rules was given.
3008 if test ${enable_silent_rules+y}
3009 then :
3010 enableval=$enable_silent_rules;
3011 fi
3012
3013 case $enable_silent_rules in # (((
3014 yes) AM_DEFAULT_VERBOSITY=0;;
3015 no) AM_DEFAULT_VERBOSITY=1;;
3016 *) AM_DEFAULT_VERBOSITY=0;;
3017 esac
3018 am_make=${MAKE-make}
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3020 printf %s "checking whether $am_make supports nested variables... " >&6; }
3021 if test ${am_cv_make_support_nested_variables+y}
3022 then :
3023 printf %s "(cached) " >&6
3024 else case e in #(
3025 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3026 BAR0=false
3027 BAR1=true
3028 V=1
3029 am__doit:
3030 @$(TRUE)
3031 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3032 am_cv_make_support_nested_variables=yes
3033 else
3034 am_cv_make_support_nested_variables=no
3035 fi ;;
3036 esac
3037 fi
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3039 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3040 if test $am_cv_make_support_nested_variables = yes; then
3041 AM_V='$(V)'
3042 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3043 else
3044 AM_V=$AM_DEFAULT_VERBOSITY
3045 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3046 fi
3047 AM_BACKSLASH='\'
3048
3049
3050
3051 am__api_version='1.16'
3052
3053
3054
3055 # Find a good install program. We prefer a C program (faster),
3056 # so one script is as good as another. But avoid the broken or
3057 # incompatible versions:
3058 # SysV /etc/install, /usr/sbin/install
3059 # SunOS /usr/etc/install
3060 # IRIX /sbin/install
3061 # AIX /bin/install
3062 # AmigaOS /C/install, which installs bootblocks on floppy discs
3063 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3066 # OS/2's system install, which has a completely different semantic
3067 # ./install, which can be erroneously created by make from ./install.sh.
3068 # Reject install programs that cannot install multiple files.
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3070 printf %s "checking for a BSD-compatible install... " >&6; }
3071 if test -z "$INSTALL"; then
3072 if test ${ac_cv_path_install+y}
3073 then :
3074 printf %s "(cached) " >&6
3075 else case e in #(
3076 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079 IFS=$as_save_IFS
3080 case $as_dir in #(((
3081 '') as_dir=./ ;;
3082 */) ;;
3083 *) as_dir=$as_dir/ ;;
3084 esac
3085 # Account for fact that we put trailing slashes in our PATH walk.
3086 case $as_dir in #((
3087 ./ | /[cC]/* | \
3088 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3089 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3090 /usr/ucb/* ) ;;
3091 *)
3092 # OSF1 and SCO ODT 3.0 have their own names for install.
3093 # Don't use installbsd from OSF since it installs stuff as root
3094 # by default.
3095 for ac_prog in ginstall scoinst install; do
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3098 if test $ac_prog = install &&
3099 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3100 # AIX install. It has an incompatible calling convention.
3101 :
3102 elif test $ac_prog = install &&
3103 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3104 # program-specific install script used by HP pwplus--don't use.
3105 :
3106 else
3107 rm -rf conftest.one conftest.two conftest.dir
3108 echo one > conftest.one
3109 echo two > conftest.two
3110 mkdir conftest.dir
3111 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3112 test -s conftest.one && test -s conftest.two &&
3113 test -s conftest.dir/conftest.one &&
3114 test -s conftest.dir/conftest.two
3115 then
3116 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3117 break 3
3118 fi
3119 fi
3120 fi
3121 done
3122 done
3123 ;;
3124 esac
3125
3126 done
3127 IFS=$as_save_IFS
3128
3129 rm -rf conftest.one conftest.two conftest.dir
3130 ;;
3131 esac
3132 fi
3133 if test ${ac_cv_path_install+y}; then
3134 INSTALL=$ac_cv_path_install
3135 else
3136 # As a last resort, use the slow shell script. Don't cache a
3137 # value for INSTALL within a source directory, because that will
3138 # break other packages using the cache if that directory is
3139 # removed, or if the value is a relative name.
3140 INSTALL=$ac_install_sh
3141 fi
3142 fi
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3144 printf "%s\n" "$INSTALL" >&6; }
3145
3146 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3147 # It thinks the first close brace ends the variable substitution.
3148 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3149
3150 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3151
3152 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3153
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3155 printf %s "checking whether build environment is sane... " >&6; }
3156 # Reject unsafe characters in $srcdir or the absolute working directory
3157 # name. Accept space and tab only in the latter.
3158 am_lf='
3159 '
3160 case `pwd` in
3161 *[\\\"\#\$\&\'\`$am_lf]*)
3162 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3163 esac
3164 case $srcdir in
3165 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3166 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3167 esac
3168
3169 # Do 'set' in a subshell so we don't clobber the current shell's
3170 # arguments. Must try -L first in case configure is actually a
3171 # symlink; some systems play weird games with the mod time of symlinks
3172 # (eg FreeBSD returns the mod time of the symlink's containing
3173 # directory).
3174 if (
3175 am_has_slept=no
3176 for am_try in 1 2; do
3177 echo "timestamp, slept: $am_has_slept" > conftest.file
3178 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3179 if test "$*" = "X"; then
3180 # -L didn't work.
3181 set X `ls -t "$srcdir/configure" conftest.file`
3182 fi
3183 if test "$*" != "X $srcdir/configure conftest.file" \
3184 && test "$*" != "X conftest.file $srcdir/configure"; then
3185
3186 # If neither matched, then we have a broken ls. This can happen
3187 # if, for instance, CONFIG_SHELL is bash and it inherits a
3188 # broken ls alias from the environment. This has actually
3189 # happened. Such a system could not be considered "sane".
3190 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3191 alias in your environment" "$LINENO" 5
3192 fi
3193 if test "$2" = conftest.file || test $am_try -eq 2; then
3194 break
3195 fi
3196 # Just in case.
3197 sleep 1
3198 am_has_slept=yes
3199 done
3200 test "$2" = conftest.file
3201 )
3202 then
3203 # Ok.
3204 :
3205 else
3206 as_fn_error $? "newly created file is older than distributed files!
3207 Check your system clock" "$LINENO" 5
3208 fi
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 printf "%s\n" "yes" >&6; }
3211 # If we didn't sleep, we still need to ensure time stamps of config.status and
3212 # generated files are strictly newer.
3213 am_sleep_pid=
3214 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3215 ( sleep 1 ) &
3216 am_sleep_pid=$!
3217 fi
3218
3219 rm -f conftest.file
3220
3221 test "$program_prefix" != NONE &&
3222 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3223 # Use a double $ so make ignores it.
3224 test "$program_suffix" != NONE &&
3225 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3226 # Double any \ or $.
3227 # By default was 's,x,x', remove it if useless.
3228 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3229 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3230
3231
3232 # Expand $ac_aux_dir to an absolute path.
3233 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3234
3235
3236 if test x"${MISSING+set}" != xset; then
3237 MISSING="\${SHELL} '$am_aux_dir/missing'"
3238 fi
3239 # Use eval to expand $SHELL
3240 if eval "$MISSING --is-lightweight"; then
3241 am_missing_run="$MISSING "
3242 else
3243 am_missing_run=
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3245 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3246 fi
3247
3248 if test x"${install_sh+set}" != xset; then
3249 case $am_aux_dir in
3250 *\ * | *\ *)
3251 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3252 *)
3253 install_sh="\${SHELL} $am_aux_dir/install-sh"
3254 esac
3255 fi
3256
3257 # Installed binaries are usually stripped using 'strip' when the user
3258 # run "make install-strip". However 'strip' might not be the right
3259 # tool to use in cross-compilation environments, therefore Automake
3260 # will honor the 'STRIP' environment variable to overrule this program.
3261 if test "$cross_compiling" != no; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}strip; ac_word=$2
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 printf %s "checking for $ac_word... " >&6; }
3267 if test ${ac_cv_prog_STRIP+y}
3268 then :
3269 printf %s "(cached) " >&6
3270 else case e in #(
3271 e) if test -n "$STRIP"; then
3272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 case $as_dir in #(((
3279 '') as_dir=./ ;;
3280 */) ;;
3281 *) as_dir=$as_dir/ ;;
3282 esac
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi ;;
3294 esac
3295 fi
3296 STRIP=$ac_cv_prog_STRIP
3297 if test -n "$STRIP"; then
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3299 printf "%s\n" "$STRIP" >&6; }
3300 else
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 printf "%s\n" "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 if test -z "$ac_cv_prog_STRIP"; then
3308 ac_ct_STRIP=$STRIP
3309 # Extract the first word of "strip", so it can be a program name with args.
3310 set dummy strip; ac_word=$2
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 printf %s "checking for $ac_word... " >&6; }
3313 if test ${ac_cv_prog_ac_ct_STRIP+y}
3314 then :
3315 printf %s "(cached) " >&6
3316 else case e in #(
3317 e) if test -n "$ac_ct_STRIP"; then
3318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 case $as_dir in #(((
3325 '') as_dir=./ ;;
3326 */) ;;
3327 *) as_dir=$as_dir/ ;;
3328 esac
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_STRIP="strip"
3332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337 IFS=$as_save_IFS
3338
3339 fi ;;
3340 esac
3341 fi
3342 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3343 if test -n "$ac_ct_STRIP"; then
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3345 printf "%s\n" "$ac_ct_STRIP" >&6; }
3346 else
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 printf "%s\n" "no" >&6; }
3349 fi
3350
3351 if test "x$ac_ct_STRIP" = x; then
3352 STRIP=":"
3353 else
3354 case $cross_compiling:$ac_tool_warned in
3355 yes:)
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 ac_tool_warned=yes ;;
3359 esac
3360 STRIP=$ac_ct_STRIP
3361 fi
3362 else
3363 STRIP="$ac_cv_prog_STRIP"
3364 fi
3365
3366 fi
3367 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3368
3369
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3371 printf %s "checking for a race-free mkdir -p... " >&6; }
3372 if test -z "$MKDIR_P"; then
3373 if test ${ac_cv_path_mkdir+y}
3374 then :
3375 printf %s "(cached) " >&6
3376 else case e in #(
3377 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3379 do
3380 IFS=$as_save_IFS
3381 case $as_dir in #(((
3382 '') as_dir=./ ;;
3383 */) ;;
3384 *) as_dir=$as_dir/ ;;
3385 esac
3386 for ac_prog in mkdir gmkdir; do
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3389 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3390 'mkdir ('*'coreutils) '* | \
3391 *'BusyBox '* | \
3392 'mkdir (fileutils) '4.1*)
3393 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3394 break 3;;
3395 esac
3396 done
3397 done
3398 done
3399 IFS=$as_save_IFS
3400 ;;
3401 esac
3402 fi
3403
3404 test -d ./--version && rmdir ./--version
3405 if test ${ac_cv_path_mkdir+y}; then
3406 MKDIR_P="$ac_cv_path_mkdir -p"
3407 else
3408 # As a last resort, use plain mkdir -p,
3409 # in the hope it doesn't have the bugs of ancient mkdir.
3410 MKDIR_P='mkdir -p'
3411 fi
3412 fi
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3414 printf "%s\n" "$MKDIR_P" >&6; }
3415
3416 for ac_prog in gawk mawk nawk awk
3417 do
3418 # Extract the first word of "$ac_prog", so it can be a program name with args.
3419 set dummy $ac_prog; ac_word=$2
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 printf %s "checking for $ac_word... " >&6; }
3422 if test ${ac_cv_prog_AWK+y}
3423 then :
3424 printf %s "(cached) " >&6
3425 else case e in #(
3426 e) if test -n "$AWK"; then
3427 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432 IFS=$as_save_IFS
3433 case $as_dir in #(((
3434 '') as_dir=./ ;;
3435 */) ;;
3436 *) as_dir=$as_dir/ ;;
3437 esac
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3440 ac_cv_prog_AWK="$ac_prog"
3441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3442 break 2
3443 fi
3444 done
3445 done
3446 IFS=$as_save_IFS
3447
3448 fi ;;
3449 esac
3450 fi
3451 AWK=$ac_cv_prog_AWK
3452 if test -n "$AWK"; then
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3454 printf "%s\n" "$AWK" >&6; }
3455 else
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 printf "%s\n" "no" >&6; }
3458 fi
3459
3460
3461 test -n "$AWK" && break
3462 done
3463
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3465 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3466 set x ${MAKE-make}
3467 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3468 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3469 then :
3470 printf %s "(cached) " >&6
3471 else case e in #(
3472 e) cat >conftest.make <<\_ACEOF
3473 SHELL = /bin/sh
3474 all:
3475 @echo '@@@%%%=$(MAKE)=@@@%%%'
3476 _ACEOF
3477 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3479 *@@@%%%=?*=@@@%%%*)
3480 eval ac_cv_prog_make_${ac_make}_set=yes;;
3481 *)
3482 eval ac_cv_prog_make_${ac_make}_set=no;;
3483 esac
3484 rm -f conftest.make ;;
3485 esac
3486 fi
3487 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3489 printf "%s\n" "yes" >&6; }
3490 SET_MAKE=
3491 else
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 printf "%s\n" "no" >&6; }
3494 SET_MAKE="MAKE=${MAKE-make}"
3495 fi
3496
3497 rm -rf .tst 2>/dev/null
3498 mkdir .tst 2>/dev/null
3499 if test -d .tst; then
3500 am__leading_dot=.
3501 else
3502 am__leading_dot=_
3503 fi
3504 rmdir .tst 2>/dev/null
3505
3506 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3507 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3508 # is not polluted with repeated "-I."
3509 am__isrc=' -I$(srcdir)'
3510 # test to see if srcdir already configured
3511 if test -f $srcdir/config.status; then
3512 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3513 fi
3514 fi
3515
3516 # test whether we have cygpath
3517 if test -z "$CYGPATH_W"; then
3518 if (cygpath --version) >/dev/null 2>/dev/null; then
3519 CYGPATH_W='cygpath -w'
3520 else
3521 CYGPATH_W=echo
3522 fi
3523 fi
3524
3525
3526 # Define the identity of the package.
3527 PACKAGE='ppp'
3528 VERSION='2.5.2'
3529
3530
3531 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3532
3533
3534 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3535
3536 # Some tools Automake needs.
3537
3538 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3539
3540
3541 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3542
3543
3544 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3545
3546
3547 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3548
3549
3550 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3551
3552 # For better backward compatibility. To be removed once Automake 1.9.x
3553 # dies out for good. For more background, see:
3554 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3555 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3556 mkdir_p='$(MKDIR_P)'
3557
3558 # We need awk for the "check" target (and possibly the TAP driver). The
3559 # system "awk" is bad on some platforms.
3560 # Always define AMTAR for backward compatibility. Yes, it's still used
3561 # in the wild :-( We should find a proper way to deprecate it ...
3562 AMTAR='$${TAR-tar}'
3563
3564
3565 # We'll loop over all known methods to create a tar archive until one works.
3566 _am_tools='gnutar pax cpio none'
3567
3568 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3569
3570
3571
3572
3573
3574 # Variables for tags utilities; see am/tags.am
3575 if test -z "$CTAGS"; then
3576 CTAGS=ctags
3577 fi
3578
3579 if test -z "$ETAGS"; then
3580 ETAGS=etags
3581 fi
3582
3583 if test -z "$CSCOPE"; then
3584 CSCOPE=cscope
3585 fi
3586
3587
3588
3589 # POSIX will say in a future version that running "rm -f" with no argument
3590 # is OK; and we want to be able to make that assumption in our Makefile
3591 # recipes. So use an aggressive probe to check that the usage we want is
3592 # actually supported "in the wild" to an acceptable degree.
3593 # See automake bug#10828.
3594 # To make any issue more visible, cause the running configure to be aborted
3595 # by default if the 'rm' program in use doesn't match our expectations; the
3596 # user can still override this though.
3597 if rm -f && rm -fr && rm -rf; then : OK; else
3598 cat >&2 <<'END'
3599 Oops!
3600
3601 Your 'rm' program seems unable to run without file operands specified
3602 on the command line, even when the '-f' option is present. This is contrary
3603 to the behaviour of most rm programs out there, and not conforming with
3604 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3605
3606 Please tell [email protected] about your system, including the value
3607 of your $PATH and any error possibly output before this message. This
3608 can help us improve future automake versions.
3609
3610 END
3611 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3612 echo 'Configuration will proceed anyway, since you have set the' >&2
3613 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3614 echo >&2
3615 else
3616 cat >&2 <<'END'
3617 Aborting the configuration process, to ensure you take notice of the issue.
3618
3619 You can download and install GNU coreutils to get an 'rm' implementation
3620 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3621
3622 If you want to complete the configuration process using your problematic
3623 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3624 to "yes", and re-run configure.
3625
3626 END
3627 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3628 fi
3629 fi
3630
3631
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3633 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3634 # Check whether --enable-maintainer-mode was given.
3635 if test ${enable_maintainer_mode+y}
3636 then :
3637 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3638 else case e in #(
3639 e) USE_MAINTAINER_MODE=yes ;;
3640 esac
3641 fi
3642
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3644 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3645 if test $USE_MAINTAINER_MODE = yes; then
3646 MAINTAINER_MODE_TRUE=
3647 MAINTAINER_MODE_FALSE='#'
3648 else
3649 MAINTAINER_MODE_TRUE='#'
3650 MAINTAINER_MODE_FALSE=
3651 fi
3652
3653 MAINT=$MAINTAINER_MODE_TRUE
3654
3655
3656
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662
3663
3664 ac_config_headers="$ac_config_headers pppd/config.h pppd/pppdconf.h pppd/plugins/pppoe/config.h"
3665
3666 # Check whether --enable-static was given.
3667 if test ${enable_static+y}
3668 then :
3669 enableval=$enable_static; p=${PACKAGE-default}
3670 case $enableval in
3671 yes) enable_static=yes ;;
3672 no) enable_static=no ;;
3673 *)
3674 enable_static=no
3675 # Look at the argument we got. We use all the common list separators.
3676 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3677 for pkg in $enableval; do
3678 IFS=$lt_save_ifs
3679 if test "X$pkg" = "X$p"; then
3680 enable_static=yes
3681 fi
3682 done
3683 IFS=$lt_save_ifs
3684 ;;
3685 esac
3686 else case e in #(
3687 e) enable_static=no ;;
3688 esac
3689 fi
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700 # Checks for programs.
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 printf %s "checking for $ac_word... " >&6; }
3720 if test ${ac_cv_prog_CC+y}
3721 then :
3722 printf %s "(cached) " >&6
3723 else case e in #(
3724 e) if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 case $as_dir in #(((
3732 '') as_dir=./ ;;
3733 */) ;;
3734 *) as_dir=$as_dir/ ;;
3735 esac
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3745
3746 fi ;;
3747 esac
3748 fi
3749 CC=$ac_cv_prog_CC
3750 if test -n "$CC"; then
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 printf "%s\n" "$CC" >&6; }
3753 else
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 printf "%s\n" "no" >&6; }
3756 fi
3757
3758
3759 fi
3760 if test -z "$ac_cv_prog_CC"; then
3761 ac_ct_CC=$CC
3762 # Extract the first word of "gcc", so it can be a program name with args.
3763 set dummy gcc; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_ac_ct_CC+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else case e in #(
3770 e) if test -n "$ac_ct_CC"; then
3771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 case $as_dir in #(((
3778 '') as_dir=./ ;;
3779 */) ;;
3780 *) as_dir=$as_dir/ ;;
3781 esac
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_ac_ct_CC="gcc"
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi ;;
3793 esac
3794 fi
3795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3796 if test -n "$ac_ct_CC"; then
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3798 printf "%s\n" "$ac_ct_CC" >&6; }
3799 else
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 printf "%s\n" "no" >&6; }
3802 fi
3803
3804 if test "x$ac_ct_CC" = x; then
3805 CC=""
3806 else
3807 case $cross_compiling:$ac_tool_warned in
3808 yes:)
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811 ac_tool_warned=yes ;;
3812 esac
3813 CC=$ac_ct_CC
3814 fi
3815 else
3816 CC="$ac_cv_prog_CC"
3817 fi
3818
3819 if test -z "$CC"; then
3820 if test -n "$ac_tool_prefix"; then
3821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3822 set dummy ${ac_tool_prefix}cc; ac_word=$2
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 printf %s "checking for $ac_word... " >&6; }
3825 if test ${ac_cv_prog_CC+y}
3826 then :
3827 printf %s "(cached) " >&6
3828 else case e in #(
3829 e) if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 case $as_dir in #(((
3837 '') as_dir=./ ;;
3838 */) ;;
3839 *) as_dir=$as_dir/ ;;
3840 esac
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_CC="${ac_tool_prefix}cc"
3844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847 done
3848 done
3849 IFS=$as_save_IFS
3850
3851 fi ;;
3852 esac
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 printf "%s\n" "$CC" >&6; }
3858 else
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 printf "%s\n" "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 fi
3866 if test -z "$CC"; then
3867 # Extract the first word of "cc", so it can be a program name with args.
3868 set dummy cc; ac_word=$2
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 printf %s "checking for $ac_word... " >&6; }
3871 if test ${ac_cv_prog_CC+y}
3872 then :
3873 printf %s "(cached) " >&6
3874 else case e in #(
3875 e) if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 else
3878 ac_prog_rejected=no
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882 IFS=$as_save_IFS
3883 case $as_dir in #(((
3884 '') as_dir=./ ;;
3885 */) ;;
3886 *) as_dir=$as_dir/ ;;
3887 esac
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3890 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3891 ac_prog_rejected=yes
3892 continue
3893 fi
3894 ac_cv_prog_CC="cc"
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898 done
3899 done
3900 IFS=$as_save_IFS
3901
3902 if test $ac_prog_rejected = yes; then
3903 # We found a bogon in the path, so make sure we never use it.
3904 set dummy $ac_cv_prog_CC
3905 shift
3906 if test $# != 0; then
3907 # We chose a different compiler from the bogus one.
3908 # However, it has the same basename, so the bogon will be chosen
3909 # first if we set CC to just the basename; use the full file name.
3910 shift
3911 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3912 fi
3913 fi
3914 fi ;;
3915 esac
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 printf "%s\n" "$CC" >&6; }
3921 else
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 printf "%s\n" "no" >&6; }
3924 fi
3925
3926
3927 fi
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in cl.exe
3931 do
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 printf %s "checking for $ac_word... " >&6; }
3936 if test ${ac_cv_prog_CC+y}
3937 then :
3938 printf %s "(cached) " >&6
3939 else case e in #(
3940 e) if test -n "$CC"; then
3941 ac_cv_prog_CC="$CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946 IFS=$as_save_IFS
3947 case $as_dir in #(((
3948 '') as_dir=./ ;;
3949 */) ;;
3950 *) as_dir=$as_dir/ ;;
3951 esac
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958 done
3959 done
3960 IFS=$as_save_IFS
3961
3962 fi ;;
3963 esac
3964 fi
3965 CC=$ac_cv_prog_CC
3966 if test -n "$CC"; then
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968 printf "%s\n" "$CC" >&6; }
3969 else
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 printf "%s\n" "no" >&6; }
3972 fi
3973
3974
3975 test -n "$CC" && break
3976 done
3977 fi
3978 if test -z "$CC"; then
3979 ac_ct_CC=$CC
3980 for ac_prog in cl.exe
3981 do
3982 # Extract the first word of "$ac_prog", so it can be a program name with args.
3983 set dummy $ac_prog; ac_word=$2
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 printf %s "checking for $ac_word... " >&6; }
3986 if test ${ac_cv_prog_ac_ct_CC+y}
3987 then :
3988 printf %s "(cached) " >&6
3989 else case e in #(
3990 e) if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 case $as_dir in #(((
3998 '') as_dir=./ ;;
3999 */) ;;
4000 *) as_dir=$as_dir/ ;;
4001 esac
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_ac_ct_CC="$ac_prog"
4005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010 IFS=$as_save_IFS
4011
4012 fi ;;
4013 esac
4014 fi
4015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016 if test -n "$ac_ct_CC"; then
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4018 printf "%s\n" "$ac_ct_CC" >&6; }
4019 else
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 printf "%s\n" "no" >&6; }
4022 fi
4023
4024
4025 test -n "$ac_ct_CC" && break
4026 done
4027
4028 if test "x$ac_ct_CC" = x; then
4029 CC=""
4030 else
4031 case $cross_compiling:$ac_tool_warned in
4032 yes:)
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4034 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4035 ac_tool_warned=yes ;;
4036 esac
4037 CC=$ac_ct_CC
4038 fi
4039 fi
4040
4041 fi
4042 if test -z "$CC"; then
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}clang; ac_word=$2
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 printf %s "checking for $ac_word... " >&6; }
4048 if test ${ac_cv_prog_CC+y}
4049 then :
4050 printf %s "(cached) " >&6
4051 else case e in #(
4052 e) if test -n "$CC"; then
4053 ac_cv_prog_CC="$CC" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058 IFS=$as_save_IFS
4059 case $as_dir in #(((
4060 '') as_dir=./ ;;
4061 */) ;;
4062 *) as_dir=$as_dir/ ;;
4063 esac
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4066 ac_cv_prog_CC="${ac_tool_prefix}clang"
4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4068 break 2
4069 fi
4070 done
4071 done
4072 IFS=$as_save_IFS
4073
4074 fi ;;
4075 esac
4076 fi
4077 CC=$ac_cv_prog_CC
4078 if test -n "$CC"; then
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080 printf "%s\n" "$CC" >&6; }
4081 else
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 printf "%s\n" "no" >&6; }
4084 fi
4085
4086
4087 fi
4088 if test -z "$ac_cv_prog_CC"; then
4089 ac_ct_CC=$CC
4090 # Extract the first word of "clang", so it can be a program name with args.
4091 set dummy clang; ac_word=$2
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 printf %s "checking for $ac_word... " >&6; }
4094 if test ${ac_cv_prog_ac_ct_CC+y}
4095 then :
4096 printf %s "(cached) " >&6
4097 else case e in #(
4098 e) if test -n "$ac_ct_CC"; then
4099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104 IFS=$as_save_IFS
4105 case $as_dir in #(((
4106 '') as_dir=./ ;;
4107 */) ;;
4108 *) as_dir=$as_dir/ ;;
4109 esac
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_ac_ct_CC="clang"
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi ;;
4121 esac
4122 fi
4123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4124 if test -n "$ac_ct_CC"; then
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4126 printf "%s\n" "$ac_ct_CC" >&6; }
4127 else
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 printf "%s\n" "no" >&6; }
4130 fi
4131
4132 if test "x$ac_ct_CC" = x; then
4133 CC=""
4134 else
4135 case $cross_compiling:$ac_tool_warned in
4136 yes:)
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4139 ac_tool_warned=yes ;;
4140 esac
4141 CC=$ac_ct_CC
4142 fi
4143 else
4144 CC="$ac_cv_prog_CC"
4145 fi
4146
4147 fi
4148
4149
4150 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4151 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4152 as_fn_error $? "no acceptable C compiler found in \$PATH
4153 See 'config.log' for more details" "$LINENO" 5; }
4154
4155 # Provide some information about the compiler.
4156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4157 set X $ac_compile
4158 ac_compiler=$2
4159 for ac_option in --version -v -V -qversion -version; do
4160 { { ac_try="$ac_compiler $ac_option >&5"
4161 case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4166 printf "%s\n" "$ac_try_echo"; } >&5
4167 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4168 ac_status=$?
4169 if test -s conftest.err; then
4170 sed '10a\
4171 ... rest of stderr output deleted ...
4172 10q' conftest.err >conftest.er1
4173 cat conftest.er1 >&5
4174 fi
4175 rm -f conftest.er1 conftest.err
4176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }
4178 done
4179
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 int
4184 main (void)
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 ac_clean_files_save=$ac_clean_files
4192 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4193 # Try to create an executable without -o first, disregard a.out.
4194 # It will help us diagnose broken compilers, and finding out an intuition
4195 # of exeext.
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4197 printf %s "checking whether the C compiler works... " >&6; }
4198 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4199
4200 # The possible output files:
4201 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4202
4203 ac_rmfiles=
4204 for ac_file in $ac_files
4205 do
4206 case $ac_file in
4207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4208 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4209 esac
4210 done
4211 rm -f $ac_rmfiles
4212
4213 if { { ac_try="$ac_link_default"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 printf "%s\n" "$ac_try_echo"; } >&5
4220 (eval "$ac_link_default") 2>&5
4221 ac_status=$?
4222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4224 then :
4225 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4226 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4227 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4228 # so that the user can short-circuit this test for compilers unknown to
4229 # Autoconf.
4230 for ac_file in $ac_files ''
4231 do
4232 test -f "$ac_file" || continue
4233 case $ac_file in
4234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4235 ;;
4236 [ab].out )
4237 # We found the default executable, but exeext='' is most
4238 # certainly right.
4239 break;;
4240 *.* )
4241 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4242 then :; else
4243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4244 fi
4245 # We set ac_cv_exeext here because the later test for it is not
4246 # safe: cross compilers may not add the suffix if given an '-o'
4247 # argument, so we may need to know it at that point already.
4248 # Even if this section looks crufty: it has the advantage of
4249 # actually working.
4250 break;;
4251 * )
4252 break;;
4253 esac
4254 done
4255 test "$ac_cv_exeext" = no && ac_cv_exeext=
4256
4257 else case e in #(
4258 e) ac_file='' ;;
4259 esac
4260 fi
4261 if test -z "$ac_file"
4262 then :
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 printf "%s\n" "no" >&6; }
4265 printf "%s\n" "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4269 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4270 as_fn_error 77 "C compiler cannot create executables
4271 See 'config.log' for more details" "$LINENO" 5; }
4272 else case e in #(
4273 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4274 printf "%s\n" "yes" >&6; } ;;
4275 esac
4276 fi
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4278 printf %s "checking for C compiler default output file name... " >&6; }
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4280 printf "%s\n" "$ac_file" >&6; }
4281 ac_exeext=$ac_cv_exeext
4282
4283 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4284 ac_clean_files=$ac_clean_files_save
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4286 printf %s "checking for suffix of executables... " >&6; }
4287 if { { ac_try="$ac_link"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 printf "%s\n" "$ac_try_echo"; } >&5
4294 (eval "$ac_link") 2>&5
4295 ac_status=$?
4296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; }
4298 then :
4299 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4300 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4301 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4302 # 'rm'.
4303 for ac_file in conftest.exe conftest conftest.*; do
4304 test -f "$ac_file" || continue
4305 case $ac_file in
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4308 break;;
4309 * ) break;;
4310 esac
4311 done
4312 else case e in #(
4313 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4314 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4315 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4316 See 'config.log' for more details" "$LINENO" 5; } ;;
4317 esac
4318 fi
4319 rm -f conftest conftest$ac_cv_exeext
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4321 printf "%s\n" "$ac_cv_exeext" >&6; }
4322
4323 rm -f conftest.$ac_ext
4324 EXEEXT=$ac_cv_exeext
4325 ac_exeext=$EXEEXT
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #include <stdio.h>
4329 int
4330 main (void)
4331 {
4332 FILE *f = fopen ("conftest.out", "w");
4333 if (!f)
4334 return 1;
4335 return ferror (f) || fclose (f) != 0;
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 ac_clean_files="$ac_clean_files conftest.out"
4342 # Check that the compiler produces executables we can run. If not, either
4343 # the compiler is broken, or we cross compile.
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4345 printf %s "checking whether we are cross compiling... " >&6; }
4346 if test "$cross_compiling" != yes; then
4347 { { ac_try="$ac_link"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 printf "%s\n" "$ac_try_echo"; } >&5
4354 (eval "$ac_link") 2>&5
4355 ac_status=$?
4356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }
4358 if { ac_try='./conftest$ac_cv_exeext'
4359 { { case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362 esac
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 printf "%s\n" "$ac_try_echo"; } >&5
4365 (eval "$ac_try") 2>&5
4366 ac_status=$?
4367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }; }; then
4369 cross_compiling=no
4370 else
4371 if test "$cross_compiling" = maybe; then
4372 cross_compiling=yes
4373 else
4374 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4375 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4376 as_fn_error 77 "cannot run C compiled programs.
4377 If you meant to cross compile, use '--host'.
4378 See 'config.log' for more details" "$LINENO" 5; }
4379 fi
4380 fi
4381 fi
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4383 printf "%s\n" "$cross_compiling" >&6; }
4384
4385 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4386 conftest.o conftest.obj conftest.out
4387 ac_clean_files=$ac_clean_files_save
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4389 printf %s "checking for suffix of object files... " >&6; }
4390 if test ${ac_cv_objext+y}
4391 then :
4392 printf %s "(cached) " >&6
4393 else case e in #(
4394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396
4397 int
4398 main (void)
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.o conftest.obj
4406 if { { ac_try="$ac_compile"
4407 case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410 esac
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 printf "%s\n" "$ac_try_echo"; } >&5
4413 (eval "$ac_compile") 2>&5
4414 ac_status=$?
4415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; }
4417 then :
4418 for ac_file in conftest.o conftest.obj conftest.*; do
4419 test -f "$ac_file" || continue;
4420 case $ac_file in
4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4423 break;;
4424 esac
4425 done
4426 else case e in #(
4427 e) printf "%s\n" "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4431 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4432 as_fn_error $? "cannot compute suffix of object files: cannot compile
4433 See 'config.log' for more details" "$LINENO" 5; } ;;
4434 esac
4435 fi
4436 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4437 esac
4438 fi
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4440 printf "%s\n" "$ac_cv_objext" >&6; }
4441 OBJEXT=$ac_cv_objext
4442 ac_objext=$OBJEXT
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4444 printf %s "checking whether the compiler supports GNU C... " >&6; }
4445 if test ${ac_cv_c_compiler_gnu+y}
4446 then :
4447 printf %s "(cached) " >&6
4448 else case e in #(
4449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451
4452 int
4453 main (void)
4454 {
4455 #ifndef __GNUC__
4456 choke me
4457 #endif
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_compile "$LINENO"
4464 then :
4465 ac_compiler_gnu=yes
4466 else case e in #(
4467 e) ac_compiler_gnu=no ;;
4468 esac
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4472 ;;
4473 esac
4474 fi
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4476 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479 if test $ac_compiler_gnu = yes; then
4480 GCC=yes
4481 else
4482 GCC=
4483 fi
4484 ac_test_CFLAGS=${CFLAGS+y}
4485 ac_save_CFLAGS=$CFLAGS
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4487 printf %s "checking whether $CC accepts -g... " >&6; }
4488 if test ${ac_cv_prog_cc_g+y}
4489 then :
4490 printf %s "(cached) " >&6
4491 else case e in #(
4492 e) ac_save_c_werror_flag=$ac_c_werror_flag
4493 ac_c_werror_flag=yes
4494 ac_cv_prog_cc_g=no
4495 CFLAGS="-g"
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498
4499 int
4500 main (void)
4501 {
4502
4503 ;
4504 return 0;
4505 }
4506 _ACEOF
4507 if ac_fn_c_try_compile "$LINENO"
4508 then :
4509 ac_cv_prog_cc_g=yes
4510 else case e in #(
4511 e) CFLAGS=""
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514
4515 int
4516 main (void)
4517 {
4518
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"
4524 then :
4525
4526 else case e in #(
4527 e) ac_c_werror_flag=$ac_save_c_werror_flag
4528 CFLAGS="-g"
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531
4532 int
4533 main (void)
4534 {
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_c_try_compile "$LINENO"
4541 then :
4542 ac_cv_prog_cc_g=yes
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4545 esac
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4548 esac
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4551 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4552 esac
4553 fi
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4555 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4556 if test $ac_test_CFLAGS; then
4557 CFLAGS=$ac_save_CFLAGS
4558 elif test $ac_cv_prog_cc_g = yes; then
4559 if test "$GCC" = yes; then
4560 CFLAGS="-g -O2"
4561 else
4562 CFLAGS="-g"
4563 fi
4564 else
4565 if test "$GCC" = yes; then
4566 CFLAGS="-O2"
4567 else
4568 CFLAGS=
4569 fi
4570 fi
4571 ac_prog_cc_stdc=no
4572 if test x$ac_prog_cc_stdc = xno
4573 then :
4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4575 printf %s "checking for $CC option to enable C11 features... " >&6; }
4576 if test ${ac_cv_prog_cc_c11+y}
4577 then :
4578 printf %s "(cached) " >&6
4579 else case e in #(
4580 e) ac_cv_prog_cc_c11=no
4581 ac_save_CC=$CC
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 $ac_c_conftest_c11_program
4585 _ACEOF
4586 for ac_arg in '' -std=gnu11
4587 do
4588 CC="$ac_save_CC $ac_arg"
4589 if ac_fn_c_try_compile "$LINENO"
4590 then :
4591 ac_cv_prog_cc_c11=$ac_arg
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.beam
4594 test "x$ac_cv_prog_cc_c11" != "xno" && break
4595 done
4596 rm -f conftest.$ac_ext
4597 CC=$ac_save_CC ;;
4598 esac
4599 fi
4600
4601 if test "x$ac_cv_prog_cc_c11" = xno
4602 then :
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4604 printf "%s\n" "unsupported" >&6; }
4605 else case e in #(
4606 e) if test "x$ac_cv_prog_cc_c11" = x
4607 then :
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4609 printf "%s\n" "none needed" >&6; }
4610 else case e in #(
4611 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4612 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4613 CC="$CC $ac_cv_prog_cc_c11" ;;
4614 esac
4615 fi
4616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4617 ac_prog_cc_stdc=c11 ;;
4618 esac
4619 fi
4620 fi
4621 if test x$ac_prog_cc_stdc = xno
4622 then :
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4624 printf %s "checking for $CC option to enable C99 features... " >&6; }
4625 if test ${ac_cv_prog_cc_c99+y}
4626 then :
4627 printf %s "(cached) " >&6
4628 else case e in #(
4629 e) ac_cv_prog_cc_c99=no
4630 ac_save_CC=$CC
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 $ac_c_conftest_c99_program
4634 _ACEOF
4635 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4636 do
4637 CC="$ac_save_CC $ac_arg"
4638 if ac_fn_c_try_compile "$LINENO"
4639 then :
4640 ac_cv_prog_cc_c99=$ac_arg
4641 fi
4642 rm -f core conftest.err conftest.$ac_objext conftest.beam
4643 test "x$ac_cv_prog_cc_c99" != "xno" && break
4644 done
4645 rm -f conftest.$ac_ext
4646 CC=$ac_save_CC ;;
4647 esac
4648 fi
4649
4650 if test "x$ac_cv_prog_cc_c99" = xno
4651 then :
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4653 printf "%s\n" "unsupported" >&6; }
4654 else case e in #(
4655 e) if test "x$ac_cv_prog_cc_c99" = x
4656 then :
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4658 printf "%s\n" "none needed" >&6; }
4659 else case e in #(
4660 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4661 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4662 CC="$CC $ac_cv_prog_cc_c99" ;;
4663 esac
4664 fi
4665 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4666 ac_prog_cc_stdc=c99 ;;
4667 esac
4668 fi
4669 fi
4670 if test x$ac_prog_cc_stdc = xno
4671 then :
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4673 printf %s "checking for $CC option to enable C89 features... " >&6; }
4674 if test ${ac_cv_prog_cc_c89+y}
4675 then :
4676 printf %s "(cached) " >&6
4677 else case e in #(
4678 e) ac_cv_prog_cc_c89=no
4679 ac_save_CC=$CC
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 $ac_c_conftest_c89_program
4683 _ACEOF
4684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4685 do
4686 CC="$ac_save_CC $ac_arg"
4687 if ac_fn_c_try_compile "$LINENO"
4688 then :
4689 ac_cv_prog_cc_c89=$ac_arg
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.beam
4692 test "x$ac_cv_prog_cc_c89" != "xno" && break
4693 done
4694 rm -f conftest.$ac_ext
4695 CC=$ac_save_CC ;;
4696 esac
4697 fi
4698
4699 if test "x$ac_cv_prog_cc_c89" = xno
4700 then :
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4702 printf "%s\n" "unsupported" >&6; }
4703 else case e in #(
4704 e) if test "x$ac_cv_prog_cc_c89" = x
4705 then :
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4707 printf "%s\n" "none needed" >&6; }
4708 else case e in #(
4709 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4710 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4711 CC="$CC $ac_cv_prog_cc_c89" ;;
4712 esac
4713 fi
4714 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4715 ac_prog_cc_stdc=c89 ;;
4716 esac
4717 fi
4718 fi
4719
4720 ac_ext=c
4721 ac_cpp='$CPP $CPPFLAGS'
4722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4725
4726
4727 ac_ext=c
4728 ac_cpp='$CPP $CPPFLAGS'
4729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4733 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4734 if test ${am_cv_prog_cc_c_o+y}
4735 then :
4736 printf %s "(cached) " >&6
4737 else case e in #(
4738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740
4741 int
4742 main (void)
4743 {
4744
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 # Make sure it works both with $CC and with simple cc.
4750 # Following AC_PROG_CC_C_O, we do the test twice because some
4751 # compilers refuse to overwrite an existing .o file with -o,
4752 # though they will create one.
4753 am_cv_prog_cc_c_o=yes
4754 for am_i in 1 2; do
4755 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4756 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } \
4760 && test -f conftest2.$ac_objext; then
4761 : OK
4762 else
4763 am_cv_prog_cc_c_o=no
4764 break
4765 fi
4766 done
4767 rm -f core conftest*
4768 unset am_i ;;
4769 esac
4770 fi
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4772 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4773 if test "$am_cv_prog_cc_c_o" != yes; then
4774 # Losing compiler, so override with the script.
4775 # FIXME: It is wrong to rewrite CC.
4776 # But if we don't then we get into trouble of one sort or another.
4777 # A longer-term fix would be to have automake use am__CC in this case,
4778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4779 CC="$am_aux_dir/compile $CC"
4780 fi
4781 ac_ext=c
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786
4787 DEPDIR="${am__leading_dot}deps"
4788
4789 ac_config_commands="$ac_config_commands depfiles"
4790
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4792 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4793 cat > confinc.mk << 'END'
4794 am__doit:
4795 @echo this is the am__doit target >confinc.out
4796 .PHONY: am__doit
4797 END
4798 am__include="#"
4799 am__quote=
4800 # BSD make does it like this.
4801 echo '.include "confinc.mk" # ignored' > confmf.BSD
4802 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4803 echo 'include confinc.mk # ignored' > confmf.GNU
4804 _am_result=no
4805 for s in GNU BSD; do
4806 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4807 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }
4811 case $?:`cat confinc.out 2>/dev/null` in #(
4812 '0:this is the am__doit target') :
4813 case $s in #(
4814 BSD) :
4815 am__include='.include' am__quote='"' ;; #(
4816 *) :
4817 am__include='include' am__quote='' ;;
4818 esac ;; #(
4819 *) :
4820 ;;
4821 esac
4822 if test "$am__include" != "#"; then
4823 _am_result="yes ($s style)"
4824 break
4825 fi
4826 done
4827 rm -f confinc.* confmf.*
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4829 printf "%s\n" "${_am_result}" >&6; }
4830
4831 # Check whether --enable-dependency-tracking was given.
4832 if test ${enable_dependency_tracking+y}
4833 then :
4834 enableval=$enable_dependency_tracking;
4835 fi
4836
4837 if test "x$enable_dependency_tracking" != xno; then
4838 am_depcomp="$ac_aux_dir/depcomp"
4839 AMDEPBACKSLASH='\'
4840 am__nodep='_no'
4841 fi
4842 if test "x$enable_dependency_tracking" != xno; then
4843 AMDEP_TRUE=
4844 AMDEP_FALSE='#'
4845 else
4846 AMDEP_TRUE='#'
4847 AMDEP_FALSE=
4848 fi
4849
4850
4851
4852 depcc="$CC" am_compiler_list=
4853
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4855 printf %s "checking dependency style of $depcc... " >&6; }
4856 if test ${am_cv_CC_dependencies_compiler_type+y}
4857 then :
4858 printf %s "(cached) " >&6
4859 else case e in #(
4860 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4861 # We make a subdir and do the tests there. Otherwise we can end up
4862 # making bogus files that we don't know about and never remove. For
4863 # instance it was reported that on HP-UX the gcc test will end up
4864 # making a dummy file named 'D' -- because '-MD' means "put the output
4865 # in D".
4866 rm -rf conftest.dir
4867 mkdir conftest.dir
4868 # Copy depcomp to subdir because otherwise we won't find it if we're
4869 # using a relative directory.
4870 cp "$am_depcomp" conftest.dir
4871 cd conftest.dir
4872 # We will build objects and dependencies in a subdirectory because
4873 # it helps to detect inapplicable dependency modes. For instance
4874 # both Tru64's cc and ICC support -MD to output dependencies as a
4875 # side effect of compilation, but ICC will put the dependencies in
4876 # the current directory while Tru64 will put them in the object
4877 # directory.
4878 mkdir sub
4879
4880 am_cv_CC_dependencies_compiler_type=none
4881 if test "$am_compiler_list" = ""; then
4882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4883 fi
4884 am__universal=false
4885 case " $depcc " in #(
4886 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4887 esac
4888
4889 for depmode in $am_compiler_list; do
4890 # Setup a source with many dependencies, because some compilers
4891 # like to wrap large dependency lists on column 80 (with \), and
4892 # we should not choose a depcomp mode which is confused by this.
4893 #
4894 # We need to recreate these files for each test, as the compiler may
4895 # overwrite some of them when testing with obscure command lines.
4896 # This happens at least with the AIX C compiler.
4897 : > sub/conftest.c
4898 for i in 1 2 3 4 5 6; do
4899 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4900 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4901 # Solaris 10 /bin/sh.
4902 echo '/* dummy */' > sub/conftst$i.h
4903 done
4904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4905
4906 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4907 # mode. It turns out that the SunPro C++ compiler does not properly
4908 # handle '-M -o', and we need to detect this. Also, some Intel
4909 # versions had trouble with output in subdirs.
4910 am__obj=sub/conftest.${OBJEXT-o}
4911 am__minus_obj="-o $am__obj"
4912 case $depmode in
4913 gcc)
4914 # This depmode causes a compiler race in universal mode.
4915 test "$am__universal" = false || continue
4916 ;;
4917 nosideeffect)
4918 # After this tag, mechanisms are not by side-effect, so they'll
4919 # only be used when explicitly requested.
4920 if test "x$enable_dependency_tracking" = xyes; then
4921 continue
4922 else
4923 break
4924 fi
4925 ;;
4926 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4927 # This compiler won't grok '-c -o', but also, the minuso test has
4928 # not run yet. These depmodes are late enough in the game, and
4929 # so weak that their functioning should not be impacted.
4930 am__obj=conftest.${OBJEXT-o}
4931 am__minus_obj=
4932 ;;
4933 none) break ;;
4934 esac
4935 if depmode=$depmode \
4936 source=sub/conftest.c object=$am__obj \
4937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4939 >/dev/null 2>conftest.err &&
4940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4944 # icc doesn't choke on unknown options, it will just issue warnings
4945 # or remarks (even with -Werror). So we grep stderr for any message
4946 # that says an option was ignored or not supported.
4947 # When given -MP, icc 7.0 and 7.1 complain thusly:
4948 # icc: Command line warning: ignoring option '-M'; no argument required
4949 # The diagnosis changed in icc 8.0:
4950 # icc: Command line remark: option '-MP' not supported
4951 if (grep 'ignoring option' conftest.err ||
4952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4953 am_cv_CC_dependencies_compiler_type=$depmode
4954 break
4955 fi
4956 fi
4957 done
4958
4959 cd ..
4960 rm -rf conftest.dir
4961 else
4962 am_cv_CC_dependencies_compiler_type=none
4963 fi
4964 ;;
4965 esac
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4968 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4969 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4970
4971 if
4972 test "x$enable_dependency_tracking" != xno \
4973 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4974 am__fastdepCC_TRUE=
4975 am__fastdepCC_FALSE='#'
4976 else
4977 am__fastdepCC_TRUE='#'
4978 am__fastdepCC_FALSE=
4979 fi
4980
4981
4982
4983
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4985 printf %s "checking whether ln -s works... " >&6; }
4986 LN_S=$as_ln_s
4987 if test "$LN_S" = "ln -s"; then
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4989 printf "%s\n" "yes" >&6; }
4990 else
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4992 printf "%s\n" "no, using $LN_S" >&6; }
4993 fi
4994
4995 case `pwd` in
4996 *\ * | *\ *)
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4998 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4999 esac
5000
5001
5002
5003 macro_version='2.4.7'
5004 macro_revision='2.4.7'
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019 ltmain=$ac_aux_dir/ltmain.sh
5020
5021
5022
5023 # Make sure we can run config.sub.
5024 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5025 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5026
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5028 printf %s "checking build system type... " >&6; }
5029 if test ${ac_cv_build+y}
5030 then :
5031 printf %s "(cached) " >&6
5032 else case e in #(
5033 e) ac_build_alias=$build_alias
5034 test "x$ac_build_alias" = x &&
5035 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5036 test "x$ac_build_alias" = x &&
5037 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5038 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5039 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5040 ;;
5041 esac
5042 fi
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5044 printf "%s\n" "$ac_cv_build" >&6; }
5045 case $ac_cv_build in
5046 *-*-*) ;;
5047 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5048 esac
5049 build=$ac_cv_build
5050 ac_save_IFS=$IFS; IFS='-'
5051 set x $ac_cv_build
5052 shift
5053 build_cpu=$1
5054 build_vendor=$2
5055 shift; shift
5056 # Remember, the first character of IFS is used to create $*,
5057 # except with old shells:
5058 build_os=$*
5059 IFS=$ac_save_IFS
5060 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5061
5062
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5064 printf %s "checking host system type... " >&6; }
5065 if test ${ac_cv_host+y}
5066 then :
5067 printf %s "(cached) " >&6
5068 else case e in #(
5069 e) if test "x$host_alias" = x; then
5070 ac_cv_host=$ac_cv_build
5071 else
5072 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5073 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5074 fi
5075 ;;
5076 esac
5077 fi
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5079 printf "%s\n" "$ac_cv_host" >&6; }
5080 case $ac_cv_host in
5081 *-*-*) ;;
5082 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5083 esac
5084 host=$ac_cv_host
5085 ac_save_IFS=$IFS; IFS='-'
5086 set x $ac_cv_host
5087 shift
5088 host_cpu=$1
5089 host_vendor=$2
5090 shift; shift
5091 # Remember, the first character of IFS is used to create $*,
5092 # except with old shells:
5093 host_os=$*
5094 IFS=$ac_save_IFS
5095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5096
5097
5098 # Backslashify metacharacters that are still active within
5099 # double-quoted strings.
5100 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5101
5102 # Same as above, but do not quote variable references.
5103 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5104
5105 # Sed substitution to delay expansion of an escaped shell variable in a
5106 # double_quote_subst'ed string.
5107 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5108
5109 # Sed substitution to delay expansion of an escaped single quote.
5110 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5111
5112 # Sed substitution to avoid accidental globbing in evaled expressions
5113 no_glob_subst='s/\*/\\\*/g'
5114
5115 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5116 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5117 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5118
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5120 printf %s "checking how to print strings... " >&6; }
5121 # Test print first, because it will be a builtin if present.
5122 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5123 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5124 ECHO='print -r --'
5125 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5126 ECHO='printf %s\n'
5127 else
5128 # Use this function as a fallback that always works.
5129 func_fallback_echo ()
5130 {
5131 eval 'cat <<_LTECHO_EOF
5132 $1
5133 _LTECHO_EOF'
5134 }
5135 ECHO='func_fallback_echo'
5136 fi
5137
5138 # func_echo_all arg...
5139 # Invoke $ECHO with all args, space-separated.
5140 func_echo_all ()
5141 {
5142 $ECHO ""
5143 }
5144
5145 case $ECHO in
5146 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5147 printf "%s\n" "printf" >&6; } ;;
5148 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5149 printf "%s\n" "print -r" >&6; } ;;
5150 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5151 printf "%s\n" "cat" >&6; } ;;
5152 esac
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5168 printf %s "checking for a sed that does not truncate output... " >&6; }
5169 if test ${ac_cv_path_SED+y}
5170 then :
5171 printf %s "(cached) " >&6
5172 else case e in #(
5173 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5174 for ac_i in 1 2 3 4 5 6 7; do
5175 ac_script="$ac_script$as_nl$ac_script"
5176 done
5177 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5178 { ac_script=; unset ac_script;}
5179 if test -z "$SED"; then
5180 ac_path_SED_found=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 case $as_dir in #(((
5187 '') as_dir=./ ;;
5188 */) ;;
5189 *) as_dir=$as_dir/ ;;
5190 esac
5191 for ac_prog in sed gsed
5192 do
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5195 as_fn_executable_p "$ac_path_SED" || continue
5196 # Check for GNU ac_path_SED and select it if it is found.
5197 # Check for GNU $ac_path_SED
5198 case `"$ac_path_SED" --version 2>&1` in #(
5199 *GNU*)
5200 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5201 #(
5202 *)
5203 ac_count=0
5204 printf %s 0123456789 >"conftest.in"
5205 while :
5206 do
5207 cat "conftest.in" "conftest.in" >"conftest.tmp"
5208 mv "conftest.tmp" "conftest.in"
5209 cp "conftest.in" "conftest.nl"
5210 printf "%s\n" '' >> "conftest.nl"
5211 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5213 as_fn_arith $ac_count + 1 && ac_count=$as_val
5214 if test $ac_count -gt ${ac_path_SED_max-0}; then
5215 # Best one so far, save it but keep looking for a better one
5216 ac_cv_path_SED="$ac_path_SED"
5217 ac_path_SED_max=$ac_count
5218 fi
5219 # 10*(2^10) chars as input seems more than enough
5220 test $ac_count -gt 10 && break
5221 done
5222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5223 esac
5224
5225 $ac_path_SED_found && break 3
5226 done
5227 done
5228 done
5229 IFS=$as_save_IFS
5230 if test -z "$ac_cv_path_SED"; then
5231 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5232 fi
5233 else
5234 ac_cv_path_SED=$SED
5235 fi
5236 ;;
5237 esac
5238 fi
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5240 printf "%s\n" "$ac_cv_path_SED" >&6; }
5241 SED="$ac_cv_path_SED"
5242 rm -f conftest.sed
5243
5244 test -z "$SED" && SED=sed
5245 Xsed="$SED -e 1s/^X//"
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5258 printf %s "checking for grep that handles long lines and -e... " >&6; }
5259 if test ${ac_cv_path_GREP+y}
5260 then :
5261 printf %s "(cached) " >&6
5262 else case e in #(
5263 e) if test -z "$GREP"; then
5264 ac_path_GREP_found=false
5265 # Loop through the user's path and test for each of PROGNAME-LIST
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5268 do
5269 IFS=$as_save_IFS
5270 case $as_dir in #(((
5271 '') as_dir=./ ;;
5272 */) ;;
5273 *) as_dir=$as_dir/ ;;
5274 esac
5275 for ac_prog in grep ggrep
5276 do
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5279 as_fn_executable_p "$ac_path_GREP" || continue
5280 # Check for GNU ac_path_GREP and select it if it is found.
5281 # Check for GNU $ac_path_GREP
5282 case `"$ac_path_GREP" --version 2>&1` in #(
5283 *GNU*)
5284 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5285 #(
5286 *)
5287 ac_count=0
5288 printf %s 0123456789 >"conftest.in"
5289 while :
5290 do
5291 cat "conftest.in" "conftest.in" >"conftest.tmp"
5292 mv "conftest.tmp" "conftest.in"
5293 cp "conftest.in" "conftest.nl"
5294 printf "%s\n" 'GREP' >> "conftest.nl"
5295 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5297 as_fn_arith $ac_count + 1 && ac_count=$as_val
5298 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_GREP="$ac_path_GREP"
5301 ac_path_GREP_max=$ac_count
5302 fi
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5305 done
5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5307 esac
5308
5309 $ac_path_GREP_found && break 3
5310 done
5311 done
5312 done
5313 IFS=$as_save_IFS
5314 if test -z "$ac_cv_path_GREP"; then
5315 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5316 fi
5317 else
5318 ac_cv_path_GREP=$GREP
5319 fi
5320 ;;
5321 esac
5322 fi
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5324 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5325 GREP="$ac_cv_path_GREP"
5326
5327
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5329 printf %s "checking for egrep... " >&6; }
5330 if test ${ac_cv_path_EGREP+y}
5331 then :
5332 printf %s "(cached) " >&6
5333 else case e in #(
5334 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5335 then ac_cv_path_EGREP="$GREP -E"
5336 else
5337 if test -z "$EGREP"; then
5338 ac_path_EGREP_found=false
5339 # Loop through the user's path and test for each of PROGNAME-LIST
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5342 do
5343 IFS=$as_save_IFS
5344 case $as_dir in #(((
5345 '') as_dir=./ ;;
5346 */) ;;
5347 *) as_dir=$as_dir/ ;;
5348 esac
5349 for ac_prog in egrep
5350 do
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5353 as_fn_executable_p "$ac_path_EGREP" || continue
5354 # Check for GNU ac_path_EGREP and select it if it is found.
5355 # Check for GNU $ac_path_EGREP
5356 case `"$ac_path_EGREP" --version 2>&1` in #(
5357 *GNU*)
5358 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5359 #(
5360 *)
5361 ac_count=0
5362 printf %s 0123456789 >"conftest.in"
5363 while :
5364 do
5365 cat "conftest.in" "conftest.in" >"conftest.tmp"
5366 mv "conftest.tmp" "conftest.in"
5367 cp "conftest.in" "conftest.nl"
5368 printf "%s\n" 'EGREP' >> "conftest.nl"
5369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5371 as_fn_arith $ac_count + 1 && ac_count=$as_val
5372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5373 # Best one so far, save it but keep looking for a better one
5374 ac_cv_path_EGREP="$ac_path_EGREP"
5375 ac_path_EGREP_max=$ac_count
5376 fi
5377 # 10*(2^10) chars as input seems more than enough
5378 test $ac_count -gt 10 && break
5379 done
5380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5381 esac
5382
5383 $ac_path_EGREP_found && break 3
5384 done
5385 done
5386 done
5387 IFS=$as_save_IFS
5388 if test -z "$ac_cv_path_EGREP"; then
5389 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5390 fi
5391 else
5392 ac_cv_path_EGREP=$EGREP
5393 fi
5394
5395 fi ;;
5396 esac
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5399 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5400 EGREP="$ac_cv_path_EGREP"
5401
5402 EGREP_TRADITIONAL=$EGREP
5403 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5404
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5406 printf %s "checking for fgrep... " >&6; }
5407 if test ${ac_cv_path_FGREP+y}
5408 then :
5409 printf %s "(cached) " >&6
5410 else case e in #(
5411 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5412 then ac_cv_path_FGREP="$GREP -F"
5413 else
5414 if test -z "$FGREP"; then
5415 ac_path_FGREP_found=false
5416 # Loop through the user's path and test for each of PROGNAME-LIST
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5419 do
5420 IFS=$as_save_IFS
5421 case $as_dir in #(((
5422 '') as_dir=./ ;;
5423 */) ;;
5424 *) as_dir=$as_dir/ ;;
5425 esac
5426 for ac_prog in fgrep
5427 do
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5430 as_fn_executable_p "$ac_path_FGREP" || continue
5431 # Check for GNU ac_path_FGREP and select it if it is found.
5432 # Check for GNU $ac_path_FGREP
5433 case `"$ac_path_FGREP" --version 2>&1` in #(
5434 *GNU*)
5435 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5436 #(
5437 *)
5438 ac_count=0
5439 printf %s 0123456789 >"conftest.in"
5440 while :
5441 do
5442 cat "conftest.in" "conftest.in" >"conftest.tmp"
5443 mv "conftest.tmp" "conftest.in"
5444 cp "conftest.in" "conftest.nl"
5445 printf "%s\n" 'FGREP' >> "conftest.nl"
5446 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5448 as_fn_arith $ac_count + 1 && ac_count=$as_val
5449 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5450 # Best one so far, save it but keep looking for a better one
5451 ac_cv_path_FGREP="$ac_path_FGREP"
5452 ac_path_FGREP_max=$ac_count
5453 fi
5454 # 10*(2^10) chars as input seems more than enough
5455 test $ac_count -gt 10 && break
5456 done
5457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5458 esac
5459
5460 $ac_path_FGREP_found && break 3
5461 done
5462 done
5463 done
5464 IFS=$as_save_IFS
5465 if test -z "$ac_cv_path_FGREP"; then
5466 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5467 fi
5468 else
5469 ac_cv_path_FGREP=$FGREP
5470 fi
5471
5472 fi ;;
5473 esac
5474 fi
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5476 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5477 FGREP="$ac_cv_path_FGREP"
5478
5479
5480 test -z "$GREP" && GREP=grep
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500 # Check whether --with-gnu-ld was given.
5501 if test ${with_gnu_ld+y}
5502 then :
5503 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5504 else case e in #(
5505 e) with_gnu_ld=no ;;
5506 esac
5507 fi
5508
5509 ac_prog=ld
5510 if test yes = "$GCC"; then
5511 # Check if gcc -print-prog-name=ld gives a path.
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5513 printf %s "checking for ld used by $CC... " >&6; }
5514 case $host in
5515 *-*-mingw*)
5516 # gcc leaves a trailing carriage return, which upsets mingw
5517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5518 *)
5519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5520 esac
5521 case $ac_prog in
5522 # Accept absolute paths.
5523 [\\/]* | ?:[\\/]*)
5524 re_direlt='/[^/][^/]*/\.\./'
5525 # Canonicalize the pathname of ld
5526 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5527 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5528 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5529 done
5530 test -z "$LD" && LD=$ac_prog
5531 ;;
5532 "")
5533 # If it fails, then pretend we aren't using GCC.
5534 ac_prog=ld
5535 ;;
5536 *)
5537 # If it is relative, then search for the first ld in PATH.
5538 with_gnu_ld=unknown
5539 ;;
5540 esac
5541 elif test yes = "$with_gnu_ld"; then
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5543 printf %s "checking for GNU ld... " >&6; }
5544 else
5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5546 printf %s "checking for non-GNU ld... " >&6; }
5547 fi
5548 if test ${lt_cv_path_LD+y}
5549 then :
5550 printf %s "(cached) " >&6
5551 else case e in #(
5552 e) if test -z "$LD"; then
5553 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5554 for ac_dir in $PATH; do
5555 IFS=$lt_save_ifs
5556 test -z "$ac_dir" && ac_dir=.
5557 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5558 lt_cv_path_LD=$ac_dir/$ac_prog
5559 # Check to see if the program is GNU ld. I'd rather use --version,
5560 # but apparently some variants of GNU ld only accept -v.
5561 # Break only if it was the GNU/non-GNU ld that we prefer.
5562 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5563 *GNU* | *'with BFD'*)
5564 test no != "$with_gnu_ld" && break
5565 ;;
5566 *)
5567 test yes != "$with_gnu_ld" && break
5568 ;;
5569 esac
5570 fi
5571 done
5572 IFS=$lt_save_ifs
5573 else
5574 lt_cv_path_LD=$LD # Let the user override the test with a path.
5575 fi ;;
5576 esac
5577 fi
5578
5579 LD=$lt_cv_path_LD
5580 if test -n "$LD"; then
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5582 printf "%s\n" "$LD" >&6; }
5583 else
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 printf "%s\n" "no" >&6; }
5586 fi
5587 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5589 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5590 if test ${lt_cv_prog_gnu_ld+y}
5591 then :
5592 printf %s "(cached) " >&6
5593 else case e in #(
5594 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5595 case `$LD -v 2>&1 </dev/null` in
5596 *GNU* | *'with BFD'*)
5597 lt_cv_prog_gnu_ld=yes
5598 ;;
5599 *)
5600 lt_cv_prog_gnu_ld=no
5601 ;;
5602 esac ;;
5603 esac
5604 fi
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5606 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5607 with_gnu_ld=$lt_cv_prog_gnu_ld
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5618 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5619 if test ${lt_cv_path_NM+y}
5620 then :
5621 printf %s "(cached) " >&6
5622 else case e in #(
5623 e) if test -n "$NM"; then
5624 # Let the user override the test.
5625 lt_cv_path_NM=$NM
5626 else
5627 lt_nm_to_check=${ac_tool_prefix}nm
5628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5629 lt_nm_to_check="$lt_nm_to_check nm"
5630 fi
5631 for lt_tmp_nm in $lt_nm_to_check; do
5632 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5634 IFS=$lt_save_ifs
5635 test -z "$ac_dir" && ac_dir=.
5636 tmp_nm=$ac_dir/$lt_tmp_nm
5637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5638 # Check to see if the nm accepts a BSD-compat flag.
5639 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5640 # nm: unknown option "B" ignored
5641 # Tru64's nm complains that /dev/null is an invalid object file
5642 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5643 case $build_os in
5644 mingw*) lt_bad_file=conftest.nm/nofile ;;
5645 *) lt_bad_file=/dev/null ;;
5646 esac
5647 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5648 *$lt_bad_file* | *'Invalid file or object type'*)
5649 lt_cv_path_NM="$tmp_nm -B"
5650 break 2
5651 ;;
5652 *)
5653 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5654 */dev/null*)
5655 lt_cv_path_NM="$tmp_nm -p"
5656 break 2
5657 ;;
5658 *)
5659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5660 continue # so that we can try to find one that supports BSD flags
5661 ;;
5662 esac
5663 ;;
5664 esac
5665 fi
5666 done
5667 IFS=$lt_save_ifs
5668 done
5669 : ${lt_cv_path_NM=no}
5670 fi ;;
5671 esac
5672 fi
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5674 printf "%s\n" "$lt_cv_path_NM" >&6; }
5675 if test no != "$lt_cv_path_NM"; then
5676 NM=$lt_cv_path_NM
5677 else
5678 # Didn't find any BSD compatible name lister, look for dumpbin.
5679 if test -n "$DUMPBIN"; then :
5680 # Let the user override the test.
5681 else
5682 if test -n "$ac_tool_prefix"; then
5683 for ac_prog in dumpbin "link -dump"
5684 do
5685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 printf %s "checking for $ac_word... " >&6; }
5689 if test ${ac_cv_prog_DUMPBIN+y}
5690 then :
5691 printf %s "(cached) " >&6
5692 else case e in #(
5693 e) if test -n "$DUMPBIN"; then
5694 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699 IFS=$as_save_IFS
5700 case $as_dir in #(((
5701 '') as_dir=./ ;;
5702 */) ;;
5703 *) as_dir=$as_dir/ ;;
5704 esac
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711 done
5712 done
5713 IFS=$as_save_IFS
5714
5715 fi ;;
5716 esac
5717 fi
5718 DUMPBIN=$ac_cv_prog_DUMPBIN
5719 if test -n "$DUMPBIN"; then
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5721 printf "%s\n" "$DUMPBIN" >&6; }
5722 else
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 printf "%s\n" "no" >&6; }
5725 fi
5726
5727
5728 test -n "$DUMPBIN" && break
5729 done
5730 fi
5731 if test -z "$DUMPBIN"; then
5732 ac_ct_DUMPBIN=$DUMPBIN
5733 for ac_prog in dumpbin "link -dump"
5734 do
5735 # Extract the first word of "$ac_prog", so it can be a program name with args.
5736 set dummy $ac_prog; ac_word=$2
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 printf %s "checking for $ac_word... " >&6; }
5739 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5740 then :
5741 printf %s "(cached) " >&6
5742 else case e in #(
5743 e) if test -n "$ac_ct_DUMPBIN"; then
5744 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749 IFS=$as_save_IFS
5750 case $as_dir in #(((
5751 '') as_dir=./ ;;
5752 */) ;;
5753 *) as_dir=$as_dir/ ;;
5754 esac
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi ;;
5766 esac
5767 fi
5768 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5769 if test -n "$ac_ct_DUMPBIN"; then
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5771 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5772 else
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 printf "%s\n" "no" >&6; }
5775 fi
5776
5777
5778 test -n "$ac_ct_DUMPBIN" && break
5779 done
5780
5781 if test "x$ac_ct_DUMPBIN" = x; then
5782 DUMPBIN=":"
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5789 esac
5790 DUMPBIN=$ac_ct_DUMPBIN
5791 fi
5792 fi
5793
5794 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5795 *COFF*)
5796 DUMPBIN="$DUMPBIN -symbols -headers"
5797 ;;
5798 *)
5799 DUMPBIN=:
5800 ;;
5801 esac
5802 fi
5803
5804 if test : != "$DUMPBIN"; then
5805 NM=$DUMPBIN
5806 fi
5807 fi
5808 test -z "$NM" && NM=nm
5809
5810
5811
5812
5813
5814
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5816 printf %s "checking the name lister ($NM) interface... " >&6; }
5817 if test ${lt_cv_nm_interface+y}
5818 then :
5819 printf %s "(cached) " >&6
5820 else case e in #(
5821 e) lt_cv_nm_interface="BSD nm"
5822 echo "int some_variable = 0;" > conftest.$ac_ext
5823 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5824 (eval "$ac_compile" 2>conftest.err)
5825 cat conftest.err >&5
5826 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5827 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5828 cat conftest.err >&5
5829 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5830 cat conftest.out >&5
5831 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5832 lt_cv_nm_interface="MS dumpbin"
5833 fi
5834 rm -f conftest* ;;
5835 esac
5836 fi
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5838 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5839
5840 # find the maximum length of command line arguments
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5842 printf %s "checking the maximum length of command line arguments... " >&6; }
5843 if test ${lt_cv_sys_max_cmd_len+y}
5844 then :
5845 printf %s "(cached) " >&6
5846 else case e in #(
5847 e) i=0
5848 teststring=ABCD
5849
5850 case $build_os in
5851 msdosdjgpp*)
5852 # On DJGPP, this test can blow up pretty badly due to problems in libc
5853 # (any single argument exceeding 2000 bytes causes a buffer overrun
5854 # during glob expansion). Even if it were fixed, the result of this
5855 # check would be larger than it should be.
5856 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5857 ;;
5858
5859 gnu*)
5860 # Under GNU Hurd, this test is not required because there is
5861 # no limit to the length of command line arguments.
5862 # Libtool will interpret -1 as no limit whatsoever
5863 lt_cv_sys_max_cmd_len=-1;
5864 ;;
5865
5866 cygwin* | mingw* | cegcc*)
5867 # On Win9x/ME, this test blows up -- it succeeds, but takes
5868 # about 5 minutes as the teststring grows exponentially.
5869 # Worse, since 9x/ME are not pre-emptively multitasking,
5870 # you end up with a "frozen" computer, even though with patience
5871 # the test eventually succeeds (with a max line length of 256k).
5872 # Instead, let's just punt: use the minimum linelength reported by
5873 # all of the supported platforms: 8192 (on NT/2K/XP).
5874 lt_cv_sys_max_cmd_len=8192;
5875 ;;
5876
5877 mint*)
5878 # On MiNT this can take a long time and run out of memory.
5879 lt_cv_sys_max_cmd_len=8192;
5880 ;;
5881
5882 amigaos*)
5883 # On AmigaOS with pdksh, this test takes hours, literally.
5884 # So we just punt and use a minimum line length of 8192.
5885 lt_cv_sys_max_cmd_len=8192;
5886 ;;
5887
5888 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5889 # This has been around since 386BSD, at least. Likely further.
5890 if test -x /sbin/sysctl; then
5891 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5892 elif test -x /usr/sbin/sysctl; then
5893 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5894 else
5895 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5896 fi
5897 # And add a safety zone
5898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5900 ;;
5901
5902 interix*)
5903 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5904 lt_cv_sys_max_cmd_len=196608
5905 ;;
5906
5907 os2*)
5908 # The test takes a long time on OS/2.
5909 lt_cv_sys_max_cmd_len=8192
5910 ;;
5911
5912 osf*)
5913 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5914 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5915 # nice to cause kernel panics so lets avoid the loop below.
5916 # First set a reasonable default.
5917 lt_cv_sys_max_cmd_len=16384
5918 #
5919 if test -x /sbin/sysconfig; then
5920 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5921 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5922 esac
5923 fi
5924 ;;
5925 sco3.2v5*)
5926 lt_cv_sys_max_cmd_len=102400
5927 ;;
5928 sysv5* | sco5v6* | sysv4.2uw2*)
5929 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5930 if test -n "$kargmax"; then
5931 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5932 else
5933 lt_cv_sys_max_cmd_len=32768
5934 fi
5935 ;;
5936 *)
5937 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5938 if test -n "$lt_cv_sys_max_cmd_len" && \
5939 test undefined != "$lt_cv_sys_max_cmd_len"; then
5940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5942 else
5943 # Make teststring a little bigger before we do anything with it.
5944 # a 1K string should be a reasonable start.
5945 for i in 1 2 3 4 5 6 7 8; do
5946 teststring=$teststring$teststring
5947 done
5948 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5949 # If test is not a shell built-in, we'll probably end up computing a
5950 # maximum length that is only half of the actual maximum length, but
5951 # we can't tell.
5952 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5953 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5954 test 17 != "$i" # 1/2 MB should be enough
5955 do
5956 i=`expr $i + 1`
5957 teststring=$teststring$teststring
5958 done
5959 # Only check the string length outside the loop.
5960 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5961 teststring=
5962 # Add a significant safety factor because C++ compilers can tack on
5963 # massive amounts of additional arguments before passing them to the
5964 # linker. It appears as though 1/2 is a usable value.
5965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5966 fi
5967 ;;
5968 esac
5969 ;;
5970 esac
5971 fi
5972
5973 if test -n "$lt_cv_sys_max_cmd_len"; then
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5975 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5976 else
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5978 printf "%s\n" "none" >&6; }
5979 fi
5980 max_cmd_len=$lt_cv_sys_max_cmd_len
5981
5982
5983
5984
5985
5986
5987 : ${CP="cp -f"}
5988 : ${MV="mv -f"}
5989 : ${RM="rm -f"}
5990
5991 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5992 lt_unset=unset
5993 else
5994 lt_unset=false
5995 fi
5996
5997
5998
5999
6000
6001 # test EBCDIC or ASCII
6002 case `echo X|tr X '\101'` in
6003 A) # ASCII based system
6004 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6005 lt_SP2NL='tr \040 \012'
6006 lt_NL2SP='tr \015\012 \040\040'
6007 ;;
6008 *) # EBCDIC based system
6009 lt_SP2NL='tr \100 \n'
6010 lt_NL2SP='tr \r\n \100\100'
6011 ;;
6012 esac
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6023 printf %s "checking how to convert $build file names to $host format... " >&6; }
6024 if test ${lt_cv_to_host_file_cmd+y}
6025 then :
6026 printf %s "(cached) " >&6
6027 else case e in #(
6028 e) case $host in
6029 *-*-mingw* )
6030 case $build in
6031 *-*-mingw* ) # actually msys
6032 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6033 ;;
6034 *-*-cygwin* )
6035 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6036 ;;
6037 * ) # otherwise, assume *nix
6038 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6039 ;;
6040 esac
6041 ;;
6042 *-*-cygwin* )
6043 case $build in
6044 *-*-mingw* ) # actually msys
6045 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6046 ;;
6047 *-*-cygwin* )
6048 lt_cv_to_host_file_cmd=func_convert_file_noop
6049 ;;
6050 * ) # otherwise, assume *nix
6051 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6052 ;;
6053 esac
6054 ;;
6055 * ) # unhandled hosts (and "normal" native builds)
6056 lt_cv_to_host_file_cmd=func_convert_file_noop
6057 ;;
6058 esac
6059 ;;
6060 esac
6061 fi
6062
6063 to_host_file_cmd=$lt_cv_to_host_file_cmd
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6065 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6066
6067
6068
6069
6070
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6072 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6073 if test ${lt_cv_to_tool_file_cmd+y}
6074 then :
6075 printf %s "(cached) " >&6
6076 else case e in #(
6077 e) #assume ordinary cross tools, or native build.
6078 lt_cv_to_tool_file_cmd=func_convert_file_noop
6079 case $host in
6080 *-*-mingw* )
6081 case $build in
6082 *-*-mingw* ) # actually msys
6083 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6084 ;;
6085 esac
6086 ;;
6087 esac
6088 ;;
6089 esac
6090 fi
6091
6092 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6094 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6095
6096
6097
6098
6099
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6101 printf %s "checking for $LD option to reload object files... " >&6; }
6102 if test ${lt_cv_ld_reload_flag+y}
6103 then :
6104 printf %s "(cached) " >&6
6105 else case e in #(
6106 e) lt_cv_ld_reload_flag='-r' ;;
6107 esac
6108 fi
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6110 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6111 reload_flag=$lt_cv_ld_reload_flag
6112 case $reload_flag in
6113 "" | " "*) ;;
6114 *) reload_flag=" $reload_flag" ;;
6115 esac
6116 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6117 case $host_os in
6118 cygwin* | mingw* | pw32* | cegcc*)
6119 if test yes != "$GCC"; then
6120 reload_cmds=false
6121 fi
6122 ;;
6123 darwin*)
6124 if test yes = "$GCC"; then
6125 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6126 else
6127 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6128 fi
6129 ;;
6130 esac
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}file; ac_word=$2
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 printf %s "checking for $ac_word... " >&6; }
6145 if test ${ac_cv_prog_FILECMD+y}
6146 then :
6147 printf %s "(cached) " >&6
6148 else case e in #(
6149 e) if test -n "$FILECMD"; then
6150 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155 IFS=$as_save_IFS
6156 case $as_dir in #(((
6157 '') as_dir=./ ;;
6158 */) ;;
6159 *) as_dir=$as_dir/ ;;
6160 esac
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6163 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6165 break 2
6166 fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171 fi ;;
6172 esac
6173 fi
6174 FILECMD=$ac_cv_prog_FILECMD
6175 if test -n "$FILECMD"; then
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6177 printf "%s\n" "$FILECMD" >&6; }
6178 else
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 printf "%s\n" "no" >&6; }
6181 fi
6182
6183
6184 fi
6185 if test -z "$ac_cv_prog_FILECMD"; then
6186 ac_ct_FILECMD=$FILECMD
6187 # Extract the first word of "file", so it can be a program name with args.
6188 set dummy file; ac_word=$2
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 printf %s "checking for $ac_word... " >&6; }
6191 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6192 then :
6193 printf %s "(cached) " >&6
6194 else case e in #(
6195 e) if test -n "$ac_ct_FILECMD"; then
6196 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201 IFS=$as_save_IFS
6202 case $as_dir in #(((
6203 '') as_dir=./ ;;
6204 */) ;;
6205 *) as_dir=$as_dir/ ;;
6206 esac
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_ac_ct_FILECMD="file"
6210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi ;;
6218 esac
6219 fi
6220 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6221 if test -n "$ac_ct_FILECMD"; then
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6223 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6224 else
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 printf "%s\n" "no" >&6; }
6227 fi
6228
6229 if test "x$ac_ct_FILECMD" = x; then
6230 FILECMD=":"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233 yes:)
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236 ac_tool_warned=yes ;;
6237 esac
6238 FILECMD=$ac_ct_FILECMD
6239 fi
6240 else
6241 FILECMD="$ac_cv_prog_FILECMD"
6242 fi
6243
6244
6245
6246
6247
6248
6249
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 printf %s "checking for $ac_word... " >&6; }
6255 if test ${ac_cv_prog_OBJDUMP+y}
6256 then :
6257 printf %s "(cached) " >&6
6258 else case e in #(
6259 e) if test -n "$OBJDUMP"; then
6260 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265 IFS=$as_save_IFS
6266 case $as_dir in #(((
6267 '') as_dir=./ ;;
6268 */) ;;
6269 *) as_dir=$as_dir/ ;;
6270 esac
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi ;;
6282 esac
6283 fi
6284 OBJDUMP=$ac_cv_prog_OBJDUMP
6285 if test -n "$OBJDUMP"; then
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6287 printf "%s\n" "$OBJDUMP" >&6; }
6288 else
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 printf "%s\n" "no" >&6; }
6291 fi
6292
6293
6294 fi
6295 if test -z "$ac_cv_prog_OBJDUMP"; then
6296 ac_ct_OBJDUMP=$OBJDUMP
6297 # Extract the first word of "objdump", so it can be a program name with args.
6298 set dummy objdump; ac_word=$2
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 printf %s "checking for $ac_word... " >&6; }
6301 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6302 then :
6303 printf %s "(cached) " >&6
6304 else case e in #(
6305 e) if test -n "$ac_ct_OBJDUMP"; then
6306 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311 IFS=$as_save_IFS
6312 case $as_dir in #(((
6313 '') as_dir=./ ;;
6314 */) ;;
6315 *) as_dir=$as_dir/ ;;
6316 esac
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 fi ;;
6328 esac
6329 fi
6330 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6331 if test -n "$ac_ct_OBJDUMP"; then
6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6333 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6334 else
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 printf "%s\n" "no" >&6; }
6337 fi
6338
6339 if test "x$ac_ct_OBJDUMP" = x; then
6340 OBJDUMP="false"
6341 else
6342 case $cross_compiling:$ac_tool_warned in
6343 yes:)
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346 ac_tool_warned=yes ;;
6347 esac
6348 OBJDUMP=$ac_ct_OBJDUMP
6349 fi
6350 else
6351 OBJDUMP="$ac_cv_prog_OBJDUMP"
6352 fi
6353
6354 test -z "$OBJDUMP" && OBJDUMP=objdump
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6365 printf %s "checking how to recognize dependent libraries... " >&6; }
6366 if test ${lt_cv_deplibs_check_method+y}
6367 then :
6368 printf %s "(cached) " >&6
6369 else case e in #(
6370 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6371 lt_cv_file_magic_test_file=
6372 lt_cv_deplibs_check_method='unknown'
6373 # Need to set the preceding variable on all platforms that support
6374 # interlibrary dependencies.
6375 # 'none' -- dependencies not supported.
6376 # 'unknown' -- same as none, but documents that we really don't know.
6377 # 'pass_all' -- all dependencies passed with no checks.
6378 # 'test_compile' -- check by making test program.
6379 # 'file_magic [[regex]]' -- check by looking for files in library path
6380 # that responds to the $file_magic_cmd with a given extended regex.
6381 # If you have 'file' or equivalent on your system and you're not sure
6382 # whether 'pass_all' will *always* work, you probably want this one.
6383
6384 case $host_os in
6385 aix[4-9]*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388
6389 beos*)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392
6393 bsdi[45]*)
6394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6395 lt_cv_file_magic_cmd='$FILECMD -L'
6396 lt_cv_file_magic_test_file=/shlib/libc.so
6397 ;;
6398
6399 cygwin*)
6400 # func_win32_libid is a shell function defined in ltmain.sh
6401 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6402 lt_cv_file_magic_cmd='func_win32_libid'
6403 ;;
6404
6405 mingw* | pw32*)
6406 # Base MSYS/MinGW do not provide the 'file' command needed by
6407 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6408 # unless we find 'file', for example because we are cross-compiling.
6409 if ( file / ) >/dev/null 2>&1; then
6410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6411 lt_cv_file_magic_cmd='func_win32_libid'
6412 else
6413 # Keep this pattern in sync with the one in func_win32_libid.
6414 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6415 lt_cv_file_magic_cmd='$OBJDUMP -f'
6416 fi
6417 ;;
6418
6419 cegcc*)
6420 # use the weaker test based on 'objdump'. See mingw*.
6421 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6422 lt_cv_file_magic_cmd='$OBJDUMP -f'
6423 ;;
6424
6425 darwin* | rhapsody*)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
6428
6429 freebsd* | dragonfly* | midnightbsd*)
6430 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6431 case $host_cpu in
6432 i*86 )
6433 # Not sure whether the presence of OpenBSD here was a mistake.
6434 # Let's accept both of them until this is cleared up.
6435 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6436 lt_cv_file_magic_cmd=$FILECMD
6437 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6438 ;;
6439 esac
6440 else
6441 lt_cv_deplibs_check_method=pass_all
6442 fi
6443 ;;
6444
6445 haiku*)
6446 lt_cv_deplibs_check_method=pass_all
6447 ;;
6448
6449 hpux10.20* | hpux11*)
6450 lt_cv_file_magic_cmd=$FILECMD
6451 case $host_cpu in
6452 ia64*)
6453 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6454 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6455 ;;
6456 hppa*64*)
6457 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]'
6458 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6459 ;;
6460 *)
6461 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6462 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6463 ;;
6464 esac
6465 ;;
6466
6467 interix[3-9]*)
6468 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6470 ;;
6471
6472 irix5* | irix6* | nonstopux*)
6473 case $LD in
6474 *-32|*"-32 ") libmagic=32-bit;;
6475 *-n32|*"-n32 ") libmagic=N32;;
6476 *-64|*"-64 ") libmagic=64-bit;;
6477 *) libmagic=never-match;;
6478 esac
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481
6482 # This must be glibc/ELF.
6483 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
6486
6487 netbsd*)
6488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6490 else
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6492 fi
6493 ;;
6494
6495 newos6*)
6496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6497 lt_cv_file_magic_cmd=$FILECMD
6498 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6499 ;;
6500
6501 *nto* | *qnx*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505 openbsd* | bitrig*)
6506 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6508 else
6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6510 fi
6511 ;;
6512
6513 osf3* | osf4* | osf5*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516
6517 rdos*)
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520
6521 solaris*)
6522 lt_cv_deplibs_check_method=pass_all
6523 ;;
6524
6525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6526 lt_cv_deplibs_check_method=pass_all
6527 ;;
6528
6529 sysv4 | sysv4.3*)
6530 case $host_vendor in
6531 motorola)
6532 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]'
6533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6534 ;;
6535 ncr)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538 sequent)
6539 lt_cv_file_magic_cmd='/bin/file'
6540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6541 ;;
6542 sni)
6543 lt_cv_file_magic_cmd='/bin/file'
6544 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6545 lt_cv_file_magic_test_file=/lib/libc.so
6546 ;;
6547 siemens)
6548 lt_cv_deplibs_check_method=pass_all
6549 ;;
6550 pc)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553 esac
6554 ;;
6555
6556 tpf*)
6557 lt_cv_deplibs_check_method=pass_all
6558 ;;
6559 os2*)
6560 lt_cv_deplibs_check_method=pass_all
6561 ;;
6562 esac
6563 ;;
6564 esac
6565 fi
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6567 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6568
6569 file_magic_glob=
6570 want_nocaseglob=no
6571 if test "$build" = "$host"; then
6572 case $host_os in
6573 mingw* | pw32*)
6574 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6575 want_nocaseglob=yes
6576 else
6577 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6578 fi
6579 ;;
6580 esac
6581 fi
6582
6583 file_magic_cmd=$lt_cv_file_magic_cmd
6584 deplibs_check_method=$lt_cv_deplibs_check_method
6585 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608 if test -n "$ac_tool_prefix"; then
6609 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 printf %s "checking for $ac_word... " >&6; }
6613 if test ${ac_cv_prog_DLLTOOL+y}
6614 then :
6615 printf %s "(cached) " >&6
6616 else case e in #(
6617 e) if test -n "$DLLTOOL"; then
6618 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623 IFS=$as_save_IFS
6624 case $as_dir in #(((
6625 '') as_dir=./ ;;
6626 */) ;;
6627 *) as_dir=$as_dir/ ;;
6628 esac
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi ;;
6640 esac
6641 fi
6642 DLLTOOL=$ac_cv_prog_DLLTOOL
6643 if test -n "$DLLTOOL"; then
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6645 printf "%s\n" "$DLLTOOL" >&6; }
6646 else
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 printf "%s\n" "no" >&6; }
6649 fi
6650
6651
6652 fi
6653 if test -z "$ac_cv_prog_DLLTOOL"; then
6654 ac_ct_DLLTOOL=$DLLTOOL
6655 # Extract the first word of "dlltool", so it can be a program name with args.
6656 set dummy dlltool; ac_word=$2
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 printf %s "checking for $ac_word... " >&6; }
6659 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6660 then :
6661 printf %s "(cached) " >&6
6662 else case e in #(
6663 e) if test -n "$ac_ct_DLLTOOL"; then
6664 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669 IFS=$as_save_IFS
6670 case $as_dir in #(((
6671 '') as_dir=./ ;;
6672 */) ;;
6673 *) as_dir=$as_dir/ ;;
6674 esac
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi ;;
6686 esac
6687 fi
6688 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6689 if test -n "$ac_ct_DLLTOOL"; then
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6691 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6692 else
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 printf "%s\n" "no" >&6; }
6695 fi
6696
6697 if test "x$ac_ct_DLLTOOL" = x; then
6698 DLLTOOL="false"
6699 else
6700 case $cross_compiling:$ac_tool_warned in
6701 yes:)
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6703 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6704 ac_tool_warned=yes ;;
6705 esac
6706 DLLTOOL=$ac_ct_DLLTOOL
6707 fi
6708 else
6709 DLLTOOL="$ac_cv_prog_DLLTOOL"
6710 fi
6711
6712 test -z "$DLLTOOL" && DLLTOOL=dlltool
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6724 printf %s "checking how to associate runtime and link libraries... " >&6; }
6725 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6726 then :
6727 printf %s "(cached) " >&6
6728 else case e in #(
6729 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6730
6731 case $host_os in
6732 cygwin* | mingw* | pw32* | cegcc*)
6733 # two different shell functions defined in ltmain.sh;
6734 # decide which one to use based on capabilities of $DLLTOOL
6735 case `$DLLTOOL --help 2>&1` in
6736 *--identify-strict*)
6737 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6738 ;;
6739 *)
6740 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6741 ;;
6742 esac
6743 ;;
6744 *)
6745 # fallback: assume linklib IS sharedlib
6746 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6747 ;;
6748 esac
6749 ;;
6750 esac
6751 fi
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6753 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6754 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6755 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6756
6757
6758
6759
6760
6761
6762
6763
6764 if test -n "$ac_tool_prefix"; then
6765 for ac_prog in ar
6766 do
6767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 printf %s "checking for $ac_word... " >&6; }
6771 if test ${ac_cv_prog_AR+y}
6772 then :
6773 printf %s "(cached) " >&6
6774 else case e in #(
6775 e) if test -n "$AR"; then
6776 ac_cv_prog_AR="$AR" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781 IFS=$as_save_IFS
6782 case $as_dir in #(((
6783 '') as_dir=./ ;;
6784 */) ;;
6785 *) as_dir=$as_dir/ ;;
6786 esac
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi ;;
6798 esac
6799 fi
6800 AR=$ac_cv_prog_AR
6801 if test -n "$AR"; then
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6803 printf "%s\n" "$AR" >&6; }
6804 else
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 printf "%s\n" "no" >&6; }
6807 fi
6808
6809
6810 test -n "$AR" && break
6811 done
6812 fi
6813 if test -z "$AR"; then
6814 ac_ct_AR=$AR
6815 for ac_prog in ar
6816 do
6817 # Extract the first word of "$ac_prog", so it can be a program name with args.
6818 set dummy $ac_prog; ac_word=$2
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 printf %s "checking for $ac_word... " >&6; }
6821 if test ${ac_cv_prog_ac_ct_AR+y}
6822 then :
6823 printf %s "(cached) " >&6
6824 else case e in #(
6825 e) if test -n "$ac_ct_AR"; then
6826 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831 IFS=$as_save_IFS
6832 case $as_dir in #(((
6833 '') as_dir=./ ;;
6834 */) ;;
6835 *) as_dir=$as_dir/ ;;
6836 esac
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_ac_ct_AR="$ac_prog"
6840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi ;;
6848 esac
6849 fi
6850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6851 if test -n "$ac_ct_AR"; then
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6853 printf "%s\n" "$ac_ct_AR" >&6; }
6854 else
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 printf "%s\n" "no" >&6; }
6857 fi
6858
6859
6860 test -n "$ac_ct_AR" && break
6861 done
6862
6863 if test "x$ac_ct_AR" = x; then
6864 AR="false"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 AR=$ac_ct_AR
6873 fi
6874 fi
6875
6876 : ${AR=ar}
6877
6878
6879
6880
6881
6882
6883 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6884 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6885 # higher priority because thats what people were doing historically (setting
6886 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6887 # variable obsoleted/removed.
6888
6889 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6890 lt_ar_flags=$AR_FLAGS
6891
6892
6893
6894
6895
6896
6897 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6898 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6899
6900
6901
6902
6903
6904
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6906 printf %s "checking for archiver @FILE support... " >&6; }
6907 if test ${lt_cv_ar_at_file+y}
6908 then :
6909 printf %s "(cached) " >&6
6910 else case e in #(
6911 e) lt_cv_ar_at_file=no
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914
6915 int
6916 main (void)
6917 {
6918
6919 ;
6920 return 0;
6921 }
6922 _ACEOF
6923 if ac_fn_c_try_compile "$LINENO"
6924 then :
6925 echo conftest.$ac_objext > conftest.lst
6926 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6928 (eval $lt_ar_try) 2>&5
6929 ac_status=$?
6930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931 test $ac_status = 0; }
6932 if test 0 -eq "$ac_status"; then
6933 # Ensure the archiver fails upon bogus file names.
6934 rm -f conftest.$ac_objext libconftest.a
6935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6936 (eval $lt_ar_try) 2>&5
6937 ac_status=$?
6938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939 test $ac_status = 0; }
6940 if test 0 -ne "$ac_status"; then
6941 lt_cv_ar_at_file=@
6942 fi
6943 fi
6944 rm -f conftest.* libconftest.a
6945
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6948 ;;
6949 esac
6950 fi
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6952 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6953
6954 if test no = "$lt_cv_ar_at_file"; then
6955 archiver_list_spec=
6956 else
6957 archiver_list_spec=$lt_cv_ar_at_file
6958 fi
6959
6960
6961
6962
6963
6964
6965
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}strip; ac_word=$2
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 printf %s "checking for $ac_word... " >&6; }
6971 if test ${ac_cv_prog_STRIP+y}
6972 then :
6973 printf %s "(cached) " >&6
6974 else case e in #(
6975 e) if test -n "$STRIP"; then
6976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981 IFS=$as_save_IFS
6982 case $as_dir in #(((
6983 '') as_dir=./ ;;
6984 */) ;;
6985 *) as_dir=$as_dir/ ;;
6986 esac
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997 fi ;;
6998 esac
6999 fi
7000 STRIP=$ac_cv_prog_STRIP
7001 if test -n "$STRIP"; then
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7003 printf "%s\n" "$STRIP" >&6; }
7004 else
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 printf "%s\n" "no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_STRIP"; then
7012 ac_ct_STRIP=$STRIP
7013 # Extract the first word of "strip", so it can be a program name with args.
7014 set dummy strip; ac_word=$2
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 printf %s "checking for $ac_word... " >&6; }
7017 if test ${ac_cv_prog_ac_ct_STRIP+y}
7018 then :
7019 printf %s "(cached) " >&6
7020 else case e in #(
7021 e) if test -n "$ac_ct_STRIP"; then
7022 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 case $as_dir in #(((
7029 '') as_dir=./ ;;
7030 */) ;;
7031 *) as_dir=$as_dir/ ;;
7032 esac
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_ac_ct_STRIP="strip"
7036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043 fi ;;
7044 esac
7045 fi
7046 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7047 if test -n "$ac_ct_STRIP"; then
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7049 printf "%s\n" "$ac_ct_STRIP" >&6; }
7050 else
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 printf "%s\n" "no" >&6; }
7053 fi
7054
7055 if test "x$ac_ct_STRIP" = x; then
7056 STRIP=":"
7057 else
7058 case $cross_compiling:$ac_tool_warned in
7059 yes:)
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062 ac_tool_warned=yes ;;
7063 esac
7064 STRIP=$ac_ct_STRIP
7065 fi
7066 else
7067 STRIP="$ac_cv_prog_STRIP"
7068 fi
7069
7070 test -z "$STRIP" && STRIP=:
7071
7072
7073
7074
7075
7076
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 printf %s "checking for $ac_word... " >&6; }
7082 if test ${ac_cv_prog_RANLIB+y}
7083 then :
7084 printf %s "(cached) " >&6
7085 else case e in #(
7086 e) if test -n "$RANLIB"; then
7087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092 IFS=$as_save_IFS
7093 case $as_dir in #(((
7094 '') as_dir=./ ;;
7095 */) ;;
7096 *) as_dir=$as_dir/ ;;
7097 esac
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104 done
7105 done
7106 IFS=$as_save_IFS
7107
7108 fi ;;
7109 esac
7110 fi
7111 RANLIB=$ac_cv_prog_RANLIB
7112 if test -n "$RANLIB"; then
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7114 printf "%s\n" "$RANLIB" >&6; }
7115 else
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 printf "%s\n" "no" >&6; }
7118 fi
7119
7120
7121 fi
7122 if test -z "$ac_cv_prog_RANLIB"; then
7123 ac_ct_RANLIB=$RANLIB
7124 # Extract the first word of "ranlib", so it can be a program name with args.
7125 set dummy ranlib; ac_word=$2
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 printf %s "checking for $ac_word... " >&6; }
7128 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else case e in #(
7132 e) if test -n "$ac_ct_RANLIB"; then
7133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 case $as_dir in #(((
7140 '') as_dir=./ ;;
7141 */) ;;
7142 *) as_dir=$as_dir/ ;;
7143 esac
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_ac_ct_RANLIB="ranlib"
7147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7153
7154 fi ;;
7155 esac
7156 fi
7157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7158 if test -n "$ac_ct_RANLIB"; then
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7160 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7161 else
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 printf "%s\n" "no" >&6; }
7164 fi
7165
7166 if test "x$ac_ct_RANLIB" = x; then
7167 RANLIB=":"
7168 else
7169 case $cross_compiling:$ac_tool_warned in
7170 yes:)
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned=yes ;;
7174 esac
7175 RANLIB=$ac_ct_RANLIB
7176 fi
7177 else
7178 RANLIB="$ac_cv_prog_RANLIB"
7179 fi
7180
7181 test -z "$RANLIB" && RANLIB=:
7182
7183
7184
7185
7186
7187
7188 # Determine commands to create old-style static archives.
7189 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7190 old_postinstall_cmds='chmod 644 $oldlib'
7191 old_postuninstall_cmds=
7192
7193 if test -n "$RANLIB"; then
7194 case $host_os in
7195 bitrig* | openbsd*)
7196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7197 ;;
7198 *)
7199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7200 ;;
7201 esac
7202 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7203 fi
7204
7205 case $host_os in
7206 darwin*)
7207 lock_old_archive_extraction=yes ;;
7208 *)
7209 lock_old_archive_extraction=no ;;
7210 esac
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 # If no C compiler was specified, use CC.
7251 LTCC=${LTCC-"$CC"}
7252
7253 # If no C compiler flags were specified, use CFLAGS.
7254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7255
7256 # Allow CC to be a program name with arguments.
7257 compiler=$CC
7258
7259
7260 # Check for command to grab the raw symbol name followed by C symbol from nm.
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7262 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7263 if test ${lt_cv_sys_global_symbol_pipe+y}
7264 then :
7265 printf %s "(cached) " >&6
7266 else case e in #(
7267 e)
7268 # These are sane defaults that work on at least a few old systems.
7269 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7270
7271 # Character class describing NM global symbol codes.
7272 symcode='[BCDEGRST]'
7273
7274 # Regexp to match symbols that can be accessed directly from C.
7275 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7276
7277 # Define system-specific variables.
7278 case $host_os in
7279 aix*)
7280 symcode='[BCDT]'
7281 ;;
7282 cygwin* | mingw* | pw32* | cegcc*)
7283 symcode='[ABCDGISTW]'
7284 ;;
7285 hpux*)
7286 if test ia64 = "$host_cpu"; then
7287 symcode='[ABCDEGRST]'
7288 fi
7289 ;;
7290 irix* | nonstopux*)
7291 symcode='[BCDEGRST]'
7292 ;;
7293 osf*)
7294 symcode='[BCDEGQRST]'
7295 ;;
7296 solaris*)
7297 symcode='[BDRT]'
7298 ;;
7299 sco3.2v5*)
7300 symcode='[DT]'
7301 ;;
7302 sysv4.2uw2*)
7303 symcode='[DT]'
7304 ;;
7305 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7306 symcode='[ABDT]'
7307 ;;
7308 sysv4)
7309 symcode='[DFNSTU]'
7310 ;;
7311 esac
7312
7313 # If we're using GNU nm, then use its standard symbol codes.
7314 case `$NM -V 2>&1` in
7315 *GNU* | *'with BFD'*)
7316 symcode='[ABCDGIRSTW]' ;;
7317 esac
7318
7319 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7320 # Gets list of data symbols to import.
7321 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7322 # Adjust the below global symbol transforms to fixup imported variables.
7323 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7324 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7325 lt_c_name_lib_hook="\
7326 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7327 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7328 else
7329 # Disable hooks by default.
7330 lt_cv_sys_global_symbol_to_import=
7331 lt_cdecl_hook=
7332 lt_c_name_hook=
7333 lt_c_name_lib_hook=
7334 fi
7335
7336 # Transform an extracted symbol line into a proper C declaration.
7337 # Some systems (esp. on ia64) link data and code symbols differently,
7338 # so use this general approach.
7339 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7340 $lt_cdecl_hook\
7341 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7342 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7343
7344 # Transform an extracted symbol line into symbol name and symbol address
7345 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7346 $lt_c_name_hook\
7347 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7348 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7349
7350 # Transform an extracted symbol line into symbol name with lib prefix and
7351 # symbol address.
7352 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7353 $lt_c_name_lib_hook\
7354 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7355 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7356 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7357
7358 # Handle CRLF in mingw tool chain
7359 opt_cr=
7360 case $build_os in
7361 mingw*)
7362 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7363 ;;
7364 esac
7365
7366 # Try without a prefix underscore, then with it.
7367 for ac_symprfx in "" "_"; do
7368
7369 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7370 symxfrm="\\1 $ac_symprfx\\2 \\2"
7371
7372 # Write the raw and C identifiers.
7373 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7374 # Fake it for dumpbin and say T for any non-static function,
7375 # D for any global variable and I for any imported variable.
7376 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7377 # which start with @ or ?.
7378 lt_cv_sys_global_symbol_pipe="$AWK '"\
7379 " {last_section=section; section=\$ 3};"\
7380 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7381 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7382 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7383 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7384 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7385 " \$ 0!~/External *\|/{next};"\
7386 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7387 " {if(hide[section]) next};"\
7388 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7389 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7390 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7391 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7392 " ' prfx=^$ac_symprfx"
7393 else
7394 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7395 fi
7396 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7397
7398 # Check to see that the pipe works correctly.
7399 pipe_works=no
7400
7401 rm -f conftest*
7402 cat > conftest.$ac_ext <<_LT_EOF
7403 #ifdef __cplusplus
7404 extern "C" {
7405 #endif
7406 char nm_test_var;
7407 void nm_test_func(void);
7408 void nm_test_func(void){}
7409 #ifdef __cplusplus
7410 }
7411 #endif
7412 int main(){nm_test_var='a';nm_test_func();return(0);}
7413 _LT_EOF
7414
7415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7416 (eval $ac_compile) 2>&5
7417 ac_status=$?
7418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; }; then
7420 # Now try to grab the symbols.
7421 nlist=conftest.nm
7422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7423 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7424 ac_status=$?
7425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; } && test -s "$nlist"; then
7427 # Try sorting and uniquifying the output.
7428 if sort "$nlist" | uniq > "$nlist"T; then
7429 mv -f "$nlist"T "$nlist"
7430 else
7431 rm -f "$nlist"T
7432 fi
7433
7434 # Make sure that we snagged all the symbols we need.
7435 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7436 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7437 cat <<_LT_EOF > conftest.$ac_ext
7438 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7439 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7440 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7441 relocations are performed -- see ld's documentation on pseudo-relocs. */
7442 # define LT_DLSYM_CONST
7443 #elif defined __osf__
7444 /* This system does not cope well with relocations in const data. */
7445 # define LT_DLSYM_CONST
7446 #else
7447 # define LT_DLSYM_CONST const
7448 #endif
7449
7450 #ifdef __cplusplus
7451 extern "C" {
7452 #endif
7453
7454 _LT_EOF
7455 # Now generate the symbol file.
7456 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7457
7458 cat <<_LT_EOF >> conftest.$ac_ext
7459
7460 /* The mapping between symbol names and symbols. */
7461 LT_DLSYM_CONST struct {
7462 const char *name;
7463 void *address;
7464 }
7465 lt__PROGRAM__LTX_preloaded_symbols[] =
7466 {
7467 { "@PROGRAM@", (void *) 0 },
7468 _LT_EOF
7469 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7470 cat <<\_LT_EOF >> conftest.$ac_ext
7471 {0, (void *) 0}
7472 };
7473
7474 /* This works around a problem in FreeBSD linker */
7475 #ifdef FREEBSD_WORKAROUND
7476 static const void *lt_preloaded_setup() {
7477 return lt__PROGRAM__LTX_preloaded_symbols;
7478 }
7479 #endif
7480
7481 #ifdef __cplusplus
7482 }
7483 #endif
7484 _LT_EOF
7485 # Now try linking the two files.
7486 mv conftest.$ac_objext conftstm.$ac_objext
7487 lt_globsym_save_LIBS=$LIBS
7488 lt_globsym_save_CFLAGS=$CFLAGS
7489 LIBS=conftstm.$ac_objext
7490 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7492 (eval $ac_link) 2>&5
7493 ac_status=$?
7494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7496 pipe_works=yes
7497 fi
7498 LIBS=$lt_globsym_save_LIBS
7499 CFLAGS=$lt_globsym_save_CFLAGS
7500 else
7501 echo "cannot find nm_test_func in $nlist" >&5
7502 fi
7503 else
7504 echo "cannot find nm_test_var in $nlist" >&5
7505 fi
7506 else
7507 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7508 fi
7509 else
7510 echo "$progname: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7512 fi
7513 rm -rf conftest* conftst*
7514
7515 # Do not use the global_symbol_pipe unless it works.
7516 if test yes = "$pipe_works"; then
7517 break
7518 else
7519 lt_cv_sys_global_symbol_pipe=
7520 fi
7521 done
7522 ;;
7523 esac
7524 fi
7525
7526 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7527 lt_cv_sys_global_symbol_to_cdecl=
7528 fi
7529 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7531 printf "%s\n" "failed" >&6; }
7532 else
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7534 printf "%s\n" "ok" >&6; }
7535 fi
7536
7537 # Response file support.
7538 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7539 nm_file_list_spec='@'
7540 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7541 nm_file_list_spec='@'
7542 fi
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7581 printf %s "checking for sysroot... " >&6; }
7582
7583 # Check whether --with-sysroot was given.
7584 if test ${with_sysroot+y}
7585 then :
7586 withval=$with_sysroot;
7587 else case e in #(
7588 e) with_sysroot=no ;;
7589 esac
7590 fi
7591
7592
7593 lt_sysroot=
7594 case $with_sysroot in #(
7595 yes)
7596 if test yes = "$GCC"; then
7597 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7598 fi
7599 ;; #(
7600 /*)
7601 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7602 ;; #(
7603 no|'')
7604 ;; #(
7605 *)
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7607 printf "%s\n" "$with_sysroot" >&6; }
7608 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7609 ;;
7610 esac
7611
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7613 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7614
7615
7616
7617
7618
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7620 printf %s "checking for a working dd... " >&6; }
7621 if test ${ac_cv_path_lt_DD+y}
7622 then :
7623 printf %s "(cached) " >&6
7624 else case e in #(
7625 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7626 cat conftest.i conftest.i >conftest2.i
7627 : ${lt_DD:=$DD}
7628 if test -z "$lt_DD"; then
7629 ac_path_lt_DD_found=false
7630 # Loop through the user's path and test for each of PROGNAME-LIST
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634 IFS=$as_save_IFS
7635 case $as_dir in #(((
7636 '') as_dir=./ ;;
7637 */) ;;
7638 *) as_dir=$as_dir/ ;;
7639 esac
7640 for ac_prog in dd
7641 do
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7644 as_fn_executable_p "$ac_path_lt_DD" || continue
7645 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7646 cmp -s conftest.i conftest.out \
7647 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7648 fi
7649 $ac_path_lt_DD_found && break 3
7650 done
7651 done
7652 done
7653 IFS=$as_save_IFS
7654 if test -z "$ac_cv_path_lt_DD"; then
7655 :
7656 fi
7657 else
7658 ac_cv_path_lt_DD=$lt_DD
7659 fi
7660
7661 rm -f conftest.i conftest2.i conftest.out ;;
7662 esac
7663 fi
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7665 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7666
7667
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7669 printf %s "checking how to truncate binary pipes... " >&6; }
7670 if test ${lt_cv_truncate_bin+y}
7671 then :
7672 printf %s "(cached) " >&6
7673 else case e in #(
7674 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7675 cat conftest.i conftest.i >conftest2.i
7676 lt_cv_truncate_bin=
7677 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7678 cmp -s conftest.i conftest.out \
7679 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7680 fi
7681 rm -f conftest.i conftest2.i conftest.out
7682 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7683 esac
7684 fi
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7686 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7687
7688
7689
7690
7691
7692
7693
7694 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7695 func_cc_basename ()
7696 {
7697 for cc_temp in $*""; do
7698 case $cc_temp in
7699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7701 \-*) ;;
7702 *) break;;
7703 esac
7704 done
7705 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7706 }
7707
7708 # Check whether --enable-libtool-lock was given.
7709 if test ${enable_libtool_lock+y}
7710 then :
7711 enableval=$enable_libtool_lock;
7712 fi
7713
7714 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7715
7716 # Some flags need to be propagated to the compiler or linker for good
7717 # libtool support.
7718 case $host in
7719 ia64-*-hpux*)
7720 # Find out what ABI is being produced by ac_compile, and set mode
7721 # options accordingly.
7722 echo 'int i;' > conftest.$ac_ext
7723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7724 (eval $ac_compile) 2>&5
7725 ac_status=$?
7726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727 test $ac_status = 0; }; then
7728 case `$FILECMD conftest.$ac_objext` in
7729 *ELF-32*)
7730 HPUX_IA64_MODE=32
7731 ;;
7732 *ELF-64*)
7733 HPUX_IA64_MODE=64
7734 ;;
7735 esac
7736 fi
7737 rm -rf conftest*
7738 ;;
7739 *-*-irix6*)
7740 # Find out what ABI is being produced by ac_compile, and set linker
7741 # options accordingly.
7742 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7744 (eval $ac_compile) 2>&5
7745 ac_status=$?
7746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747 test $ac_status = 0; }; then
7748 if test yes = "$lt_cv_prog_gnu_ld"; then
7749 case `$FILECMD conftest.$ac_objext` in
7750 *32-bit*)
7751 LD="${LD-ld} -melf32bsmip"
7752 ;;
7753 *N32*)
7754 LD="${LD-ld} -melf32bmipn32"
7755 ;;
7756 *64-bit*)
7757 LD="${LD-ld} -melf64bmip"
7758 ;;
7759 esac
7760 else
7761 case `$FILECMD conftest.$ac_objext` in
7762 *32-bit*)
7763 LD="${LD-ld} -32"
7764 ;;
7765 *N32*)
7766 LD="${LD-ld} -n32"
7767 ;;
7768 *64-bit*)
7769 LD="${LD-ld} -64"
7770 ;;
7771 esac
7772 fi
7773 fi
7774 rm -rf conftest*
7775 ;;
7776
7777 mips64*-*linux*)
7778 # Find out what ABI is being produced by ac_compile, and set linker
7779 # options accordingly.
7780 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7782 (eval $ac_compile) 2>&5
7783 ac_status=$?
7784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 emul=elf
7787 case `$FILECMD conftest.$ac_objext` in
7788 *32-bit*)
7789 emul="${emul}32"
7790 ;;
7791 *64-bit*)
7792 emul="${emul}64"
7793 ;;
7794 esac
7795 case `$FILECMD conftest.$ac_objext` in
7796 *MSB*)
7797 emul="${emul}btsmip"
7798 ;;
7799 *LSB*)
7800 emul="${emul}ltsmip"
7801 ;;
7802 esac
7803 case `$FILECMD conftest.$ac_objext` in
7804 *N32*)
7805 emul="${emul}n32"
7806 ;;
7807 esac
7808 LD="${LD-ld} -m $emul"
7809 fi
7810 rm -rf conftest*
7811 ;;
7812
7813 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7814 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7815 # Find out what ABI is being produced by ac_compile, and set linker
7816 # options accordingly. Note that the listed cases only cover the
7817 # situations where additional linker options are needed (such as when
7818 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7819 # vice versa); the common cases where no linker options are needed do
7820 # not appear in the list.
7821 echo 'int i;' > conftest.$ac_ext
7822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7823 (eval $ac_compile) 2>&5
7824 ac_status=$?
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }; then
7827 case `$FILECMD conftest.o` in
7828 *32-bit*)
7829 case $host in
7830 x86_64-*kfreebsd*-gnu)
7831 LD="${LD-ld} -m elf_i386_fbsd"
7832 ;;
7833 x86_64-*linux*)
7834 case `$FILECMD conftest.o` in
7835 *x86-64*)
7836 LD="${LD-ld} -m elf32_x86_64"
7837 ;;
7838 *)
7839 LD="${LD-ld} -m elf_i386"
7840 ;;
7841 esac
7842 ;;
7843 powerpc64le-*linux*)
7844 LD="${LD-ld} -m elf32lppclinux"
7845 ;;
7846 powerpc64-*linux*)
7847 LD="${LD-ld} -m elf32ppclinux"
7848 ;;
7849 s390x-*linux*)
7850 LD="${LD-ld} -m elf_s390"
7851 ;;
7852 sparc64-*linux*)
7853 LD="${LD-ld} -m elf32_sparc"
7854 ;;
7855 esac
7856 ;;
7857 *64-bit*)
7858 case $host in
7859 x86_64-*kfreebsd*-gnu)
7860 LD="${LD-ld} -m elf_x86_64_fbsd"
7861 ;;
7862 x86_64-*linux*)
7863 LD="${LD-ld} -m elf_x86_64"
7864 ;;
7865 powerpcle-*linux*)
7866 LD="${LD-ld} -m elf64lppc"
7867 ;;
7868 powerpc-*linux*)
7869 LD="${LD-ld} -m elf64ppc"
7870 ;;
7871 s390*-*linux*|s390*-*tpf*)
7872 LD="${LD-ld} -m elf64_s390"
7873 ;;
7874 sparc*-*linux*)
7875 LD="${LD-ld} -m elf64_sparc"
7876 ;;
7877 esac
7878 ;;
7879 esac
7880 fi
7881 rm -rf conftest*
7882 ;;
7883
7884 *-*-sco3.2v5*)
7885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7886 SAVE_CFLAGS=$CFLAGS
7887 CFLAGS="$CFLAGS -belf"
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7889 printf %s "checking whether the C compiler needs -belf... " >&6; }
7890 if test ${lt_cv_cc_needs_belf+y}
7891 then :
7892 printf %s "(cached) " >&6
7893 else case e in #(
7894 e) ac_ext=c
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902
7903 int
7904 main (void)
7905 {
7906
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_link "$LINENO"
7912 then :
7913 lt_cv_cc_needs_belf=yes
7914 else case e in #(
7915 e) lt_cv_cc_needs_belf=no ;;
7916 esac
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7919 conftest$ac_exeext conftest.$ac_ext
7920 ac_ext=c
7921 ac_cpp='$CPP $CPPFLAGS'
7922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7925 ;;
7926 esac
7927 fi
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7929 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7930 if test yes != "$lt_cv_cc_needs_belf"; then
7931 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7932 CFLAGS=$SAVE_CFLAGS
7933 fi
7934 ;;
7935 *-*solaris*)
7936 # Find out what ABI is being produced by ac_compile, and set linker
7937 # options accordingly.
7938 echo 'int i;' > conftest.$ac_ext
7939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7940 (eval $ac_compile) 2>&5
7941 ac_status=$?
7942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7943 test $ac_status = 0; }; then
7944 case `$FILECMD conftest.o` in
7945 *64-bit*)
7946 case $lt_cv_prog_gnu_ld in
7947 yes*)
7948 case $host in
7949 i?86-*-solaris*|x86_64-*-solaris*)
7950 LD="${LD-ld} -m elf_x86_64"
7951 ;;
7952 sparc*-*-solaris*)
7953 LD="${LD-ld} -m elf64_sparc"
7954 ;;
7955 esac
7956 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7957 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7958 LD=${LD-ld}_sol2
7959 fi
7960 ;;
7961 *)
7962 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7963 LD="${LD-ld} -64"
7964 fi
7965 ;;
7966 esac
7967 ;;
7968 esac
7969 fi
7970 rm -rf conftest*
7971 ;;
7972 esac
7973
7974 need_locks=$enable_libtool_lock
7975
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}mt; ac_word=$2
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 printf %s "checking for $ac_word... " >&6; }
7981 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7982 then :
7983 printf %s "(cached) " >&6
7984 else case e in #(
7985 e) if test -n "$MANIFEST_TOOL"; then
7986 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 case $as_dir in #(((
7993 '') as_dir=./ ;;
7994 */) ;;
7995 *) as_dir=$as_dir/ ;;
7996 esac
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7999 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003 done
8004 done
8005 IFS=$as_save_IFS
8006
8007 fi ;;
8008 esac
8009 fi
8010 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8011 if test -n "$MANIFEST_TOOL"; then
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8013 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8014 else
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 printf "%s\n" "no" >&6; }
8017 fi
8018
8019
8020 fi
8021 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8022 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8023 # Extract the first word of "mt", so it can be a program name with args.
8024 set dummy mt; ac_word=$2
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 printf %s "checking for $ac_word... " >&6; }
8027 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8028 then :
8029 printf %s "(cached) " >&6
8030 else case e in #(
8031 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8032 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8033 else
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8036 do
8037 IFS=$as_save_IFS
8038 case $as_dir in #(((
8039 '') as_dir=./ ;;
8040 */) ;;
8041 *) as_dir=$as_dir/ ;;
8042 esac
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 fi ;;
8054 esac
8055 fi
8056 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8057 if test -n "$ac_ct_MANIFEST_TOOL"; then
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8059 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8060 else
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 printf "%s\n" "no" >&6; }
8063 fi
8064
8065 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8066 MANIFEST_TOOL=":"
8067 else
8068 case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8075 fi
8076 else
8077 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8078 fi
8079
8080 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8082 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8083 if test ${lt_cv_path_mainfest_tool+y}
8084 then :
8085 printf %s "(cached) " >&6
8086 else case e in #(
8087 e) lt_cv_path_mainfest_tool=no
8088 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8089 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8090 cat conftest.err >&5
8091 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8092 lt_cv_path_mainfest_tool=yes
8093 fi
8094 rm -f conftest* ;;
8095 esac
8096 fi
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8098 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8099 if test yes != "$lt_cv_path_mainfest_tool"; then
8100 MANIFEST_TOOL=:
8101 fi
8102
8103
8104
8105
8106
8107
8108 case $host_os in
8109 rhapsody* | darwin*)
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 printf %s "checking for $ac_word... " >&6; }
8115 if test ${ac_cv_prog_DSYMUTIL+y}
8116 then :
8117 printf %s "(cached) " >&6
8118 else case e in #(
8119 e) if test -n "$DSYMUTIL"; then
8120 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125 IFS=$as_save_IFS
8126 case $as_dir in #(((
8127 '') as_dir=./ ;;
8128 */) ;;
8129 *) as_dir=$as_dir/ ;;
8130 esac
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139 IFS=$as_save_IFS
8140
8141 fi ;;
8142 esac
8143 fi
8144 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8145 if test -n "$DSYMUTIL"; then
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8147 printf "%s\n" "$DSYMUTIL" >&6; }
8148 else
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 printf "%s\n" "no" >&6; }
8151 fi
8152
8153
8154 fi
8155 if test -z "$ac_cv_prog_DSYMUTIL"; then
8156 ac_ct_DSYMUTIL=$DSYMUTIL
8157 # Extract the first word of "dsymutil", so it can be a program name with args.
8158 set dummy dsymutil; ac_word=$2
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 printf %s "checking for $ac_word... " >&6; }
8161 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8162 then :
8163 printf %s "(cached) " >&6
8164 else case e in #(
8165 e) if test -n "$ac_ct_DSYMUTIL"; then
8166 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171 IFS=$as_save_IFS
8172 case $as_dir in #(((
8173 '') as_dir=./ ;;
8174 */) ;;
8175 *) as_dir=$as_dir/ ;;
8176 esac
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187 fi ;;
8188 esac
8189 fi
8190 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8191 if test -n "$ac_ct_DSYMUTIL"; then
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8193 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8194 else
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 printf "%s\n" "no" >&6; }
8197 fi
8198
8199 if test "x$ac_ct_DSYMUTIL" = x; then
8200 DSYMUTIL=":"
8201 else
8202 case $cross_compiling:$ac_tool_warned in
8203 yes:)
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8206 ac_tool_warned=yes ;;
8207 esac
8208 DSYMUTIL=$ac_ct_DSYMUTIL
8209 fi
8210 else
8211 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8212 fi
8213
8214 if test -n "$ac_tool_prefix"; then
8215 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 printf %s "checking for $ac_word... " >&6; }
8219 if test ${ac_cv_prog_NMEDIT+y}
8220 then :
8221 printf %s "(cached) " >&6
8222 else case e in #(
8223 e) if test -n "$NMEDIT"; then
8224 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229 IFS=$as_save_IFS
8230 case $as_dir in #(((
8231 '') as_dir=./ ;;
8232 */) ;;
8233 *) as_dir=$as_dir/ ;;
8234 esac
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8237 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8239 break 2
8240 fi
8241 done
8242 done
8243 IFS=$as_save_IFS
8244
8245 fi ;;
8246 esac
8247 fi
8248 NMEDIT=$ac_cv_prog_NMEDIT
8249 if test -n "$NMEDIT"; then
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8251 printf "%s\n" "$NMEDIT" >&6; }
8252 else
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 printf "%s\n" "no" >&6; }
8255 fi
8256
8257
8258 fi
8259 if test -z "$ac_cv_prog_NMEDIT"; then
8260 ac_ct_NMEDIT=$NMEDIT
8261 # Extract the first word of "nmedit", so it can be a program name with args.
8262 set dummy nmedit; ac_word=$2
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 printf %s "checking for $ac_word... " >&6; }
8265 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else case e in #(
8269 e) if test -n "$ac_ct_NMEDIT"; then
8270 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8274 do
8275 IFS=$as_save_IFS
8276 case $as_dir in #(((
8277 '') as_dir=./ ;;
8278 */) ;;
8279 *) as_dir=$as_dir/ ;;
8280 esac
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8285 break 2
8286 fi
8287 done
8288 done
8289 IFS=$as_save_IFS
8290
8291 fi ;;
8292 esac
8293 fi
8294 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8295 if test -n "$ac_ct_NMEDIT"; then
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8297 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8298 else
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 printf "%s\n" "no" >&6; }
8301 fi
8302
8303 if test "x$ac_ct_NMEDIT" = x; then
8304 NMEDIT=":"
8305 else
8306 case $cross_compiling:$ac_tool_warned in
8307 yes:)
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8309 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8310 ac_tool_warned=yes ;;
8311 esac
8312 NMEDIT=$ac_ct_NMEDIT
8313 fi
8314 else
8315 NMEDIT="$ac_cv_prog_NMEDIT"
8316 fi
8317
8318 if test -n "$ac_tool_prefix"; then
8319 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8320 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 printf %s "checking for $ac_word... " >&6; }
8323 if test ${ac_cv_prog_LIPO+y}
8324 then :
8325 printf %s "(cached) " >&6
8326 else case e in #(
8327 e) if test -n "$LIPO"; then
8328 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 case $as_dir in #(((
8335 '') as_dir=./ ;;
8336 */) ;;
8337 *) as_dir=$as_dir/ ;;
8338 esac
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345 done
8346 done
8347 IFS=$as_save_IFS
8348
8349 fi ;;
8350 esac
8351 fi
8352 LIPO=$ac_cv_prog_LIPO
8353 if test -n "$LIPO"; then
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8355 printf "%s\n" "$LIPO" >&6; }
8356 else
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 printf "%s\n" "no" >&6; }
8359 fi
8360
8361
8362 fi
8363 if test -z "$ac_cv_prog_LIPO"; then
8364 ac_ct_LIPO=$LIPO
8365 # Extract the first word of "lipo", so it can be a program name with args.
8366 set dummy lipo; ac_word=$2
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 printf %s "checking for $ac_word... " >&6; }
8369 if test ${ac_cv_prog_ac_ct_LIPO+y}
8370 then :
8371 printf %s "(cached) " >&6
8372 else case e in #(
8373 e) if test -n "$ac_ct_LIPO"; then
8374 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379 IFS=$as_save_IFS
8380 case $as_dir in #(((
8381 '') as_dir=./ ;;
8382 */) ;;
8383 *) as_dir=$as_dir/ ;;
8384 esac
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8387 ac_cv_prog_ac_ct_LIPO="lipo"
8388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8389 break 2
8390 fi
8391 done
8392 done
8393 IFS=$as_save_IFS
8394
8395 fi ;;
8396 esac
8397 fi
8398 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8399 if test -n "$ac_ct_LIPO"; then
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8401 printf "%s\n" "$ac_ct_LIPO" >&6; }
8402 else
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 printf "%s\n" "no" >&6; }
8405 fi
8406
8407 if test "x$ac_ct_LIPO" = x; then
8408 LIPO=":"
8409 else
8410 case $cross_compiling:$ac_tool_warned in
8411 yes:)
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8415 esac
8416 LIPO=$ac_ct_LIPO
8417 fi
8418 else
8419 LIPO="$ac_cv_prog_LIPO"
8420 fi
8421
8422 if test -n "$ac_tool_prefix"; then
8423 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8424 set dummy ${ac_tool_prefix}otool; ac_word=$2
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 printf %s "checking for $ac_word... " >&6; }
8427 if test ${ac_cv_prog_OTOOL+y}
8428 then :
8429 printf %s "(cached) " >&6
8430 else case e in #(
8431 e) if test -n "$OTOOL"; then
8432 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8433 else
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8436 do
8437 IFS=$as_save_IFS
8438 case $as_dir in #(((
8439 '') as_dir=./ ;;
8440 */) ;;
8441 *) as_dir=$as_dir/ ;;
8442 esac
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 fi ;;
8454 esac
8455 fi
8456 OTOOL=$ac_cv_prog_OTOOL
8457 if test -n "$OTOOL"; then
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8459 printf "%s\n" "$OTOOL" >&6; }
8460 else
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 printf "%s\n" "no" >&6; }
8463 fi
8464
8465
8466 fi
8467 if test -z "$ac_cv_prog_OTOOL"; then
8468 ac_ct_OTOOL=$OTOOL
8469 # Extract the first word of "otool", so it can be a program name with args.
8470 set dummy otool; ac_word=$2
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 printf %s "checking for $ac_word... " >&6; }
8473 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8474 then :
8475 printf %s "(cached) " >&6
8476 else case e in #(
8477 e) if test -n "$ac_ct_OTOOL"; then
8478 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8479 else
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8482 do
8483 IFS=$as_save_IFS
8484 case $as_dir in #(((
8485 '') as_dir=./ ;;
8486 */) ;;
8487 *) as_dir=$as_dir/ ;;
8488 esac
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8491 ac_cv_prog_ac_ct_OTOOL="otool"
8492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495 done
8496 done
8497 IFS=$as_save_IFS
8498
8499 fi ;;
8500 esac
8501 fi
8502 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8503 if test -n "$ac_ct_OTOOL"; then
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8505 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8506 else
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 printf "%s\n" "no" >&6; }
8509 fi
8510
8511 if test "x$ac_ct_OTOOL" = x; then
8512 OTOOL=":"
8513 else
8514 case $cross_compiling:$ac_tool_warned in
8515 yes:)
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8517 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8518 ac_tool_warned=yes ;;
8519 esac
8520 OTOOL=$ac_ct_OTOOL
8521 fi
8522 else
8523 OTOOL="$ac_cv_prog_OTOOL"
8524 fi
8525
8526 if test -n "$ac_tool_prefix"; then
8527 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8528 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 printf %s "checking for $ac_word... " >&6; }
8531 if test ${ac_cv_prog_OTOOL64+y}
8532 then :
8533 printf %s "(cached) " >&6
8534 else case e in #(
8535 e) if test -n "$OTOOL64"; then
8536 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8537 else
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541 IFS=$as_save_IFS
8542 case $as_dir in #(((
8543 '') as_dir=./ ;;
8544 */) ;;
8545 *) as_dir=$as_dir/ ;;
8546 esac
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553 done
8554 done
8555 IFS=$as_save_IFS
8556
8557 fi ;;
8558 esac
8559 fi
8560 OTOOL64=$ac_cv_prog_OTOOL64
8561 if test -n "$OTOOL64"; then
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8563 printf "%s\n" "$OTOOL64" >&6; }
8564 else
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 printf "%s\n" "no" >&6; }
8567 fi
8568
8569
8570 fi
8571 if test -z "$ac_cv_prog_OTOOL64"; then
8572 ac_ct_OTOOL64=$OTOOL64
8573 # Extract the first word of "otool64", so it can be a program name with args.
8574 set dummy otool64; ac_word=$2
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 printf %s "checking for $ac_word... " >&6; }
8577 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8578 then :
8579 printf %s "(cached) " >&6
8580 else case e in #(
8581 e) if test -n "$ac_ct_OTOOL64"; then
8582 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587 IFS=$as_save_IFS
8588 case $as_dir in #(((
8589 '') as_dir=./ ;;
8590 */) ;;
8591 *) as_dir=$as_dir/ ;;
8592 esac
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8595 ac_cv_prog_ac_ct_OTOOL64="otool64"
8596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8597 break 2
8598 fi
8599 done
8600 done
8601 IFS=$as_save_IFS
8602
8603 fi ;;
8604 esac
8605 fi
8606 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8607 if test -n "$ac_ct_OTOOL64"; then
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8609 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8610 else
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 printf "%s\n" "no" >&6; }
8613 fi
8614
8615 if test "x$ac_ct_OTOOL64" = x; then
8616 OTOOL64=":"
8617 else
8618 case $cross_compiling:$ac_tool_warned in
8619 yes:)
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8621 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8622 ac_tool_warned=yes ;;
8623 esac
8624 OTOOL64=$ac_ct_OTOOL64
8625 fi
8626 else
8627 OTOOL64="$ac_cv_prog_OTOOL64"
8628 fi
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8657 printf %s "checking for -single_module linker flag... " >&6; }
8658 if test ${lt_cv_apple_cc_single_mod+y}
8659 then :
8660 printf %s "(cached) " >&6
8661 else case e in #(
8662 e) lt_cv_apple_cc_single_mod=no
8663 if test -z "$LT_MULTI_MODULE"; then
8664 # By default we will add the -single_module flag. You can override
8665 # by either setting the environment variable LT_MULTI_MODULE
8666 # non-empty at configure time, or by adding -multi_module to the
8667 # link flags.
8668 rm -rf libconftest.dylib*
8669 echo "int foo(void){return 1;}" > conftest.c
8670 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8671 -dynamiclib -Wl,-single_module conftest.c" >&5
8672 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8673 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8674 _lt_result=$?
8675 # If there is a non-empty error log, and "single_module"
8676 # appears in it, assume the flag caused a linker warning
8677 if test -s conftest.err && $GREP single_module conftest.err; then
8678 cat conftest.err >&5
8679 # Otherwise, if the output was created with a 0 exit code from
8680 # the compiler, it worked.
8681 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8682 lt_cv_apple_cc_single_mod=yes
8683 else
8684 cat conftest.err >&5
8685 fi
8686 rm -rf libconftest.dylib*
8687 rm -f conftest.*
8688 fi ;;
8689 esac
8690 fi
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8692 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8693
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8695 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8696 if test ${lt_cv_ld_exported_symbols_list+y}
8697 then :
8698 printf %s "(cached) " >&6
8699 else case e in #(
8700 e) lt_cv_ld_exported_symbols_list=no
8701 save_LDFLAGS=$LDFLAGS
8702 echo "_main" > conftest.sym
8703 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706
8707 int
8708 main (void)
8709 {
8710
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 if ac_fn_c_try_link "$LINENO"
8716 then :
8717 lt_cv_ld_exported_symbols_list=yes
8718 else case e in #(
8719 e) lt_cv_ld_exported_symbols_list=no ;;
8720 esac
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8723 conftest$ac_exeext conftest.$ac_ext
8724 LDFLAGS=$save_LDFLAGS
8725 ;;
8726 esac
8727 fi
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8729 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8730
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8732 printf %s "checking for -force_load linker flag... " >&6; }
8733 if test ${lt_cv_ld_force_load+y}
8734 then :
8735 printf %s "(cached) " >&6
8736 else case e in #(
8737 e) lt_cv_ld_force_load=no
8738 cat > conftest.c << _LT_EOF
8739 int forced_loaded() { return 2;}
8740 _LT_EOF
8741 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8742 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8743 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8744 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8745 echo "$RANLIB libconftest.a" >&5
8746 $RANLIB libconftest.a 2>&5
8747 cat > conftest.c << _LT_EOF
8748 int main() { return 0;}
8749 _LT_EOF
8750 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8751 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8752 _lt_result=$?
8753 if test -s conftest.err && $GREP force_load conftest.err; then
8754 cat conftest.err >&5
8755 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8756 lt_cv_ld_force_load=yes
8757 else
8758 cat conftest.err >&5
8759 fi
8760 rm -f conftest.err libconftest.a conftest conftest.c
8761 rm -rf conftest.dSYM
8762 ;;
8763 esac
8764 fi
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8766 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8767 case $host_os in
8768 rhapsody* | darwin1.[012])
8769 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8770 darwin1.*)
8771 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8772 darwin*)
8773 case $MACOSX_DEPLOYMENT_TARGET,$host in
8774 10.[012],*|,*powerpc*-darwin[5-8]*)
8775 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8776 *)
8777 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8778 esac
8779 ;;
8780 esac
8781 if test yes = "$lt_cv_apple_cc_single_mod"; then
8782 _lt_dar_single_mod='$single_module'
8783 fi
8784 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8785 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8786 else
8787 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8788 fi
8789 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8790 _lt_dsymutil='~$DSYMUTIL $lib || :'
8791 else
8792 _lt_dsymutil=
8793 fi
8794 ;;
8795 esac
8796
8797 # func_munge_path_list VARIABLE PATH
8798 # -----------------------------------
8799 # VARIABLE is name of variable containing _space_ separated list of
8800 # directories to be munged by the contents of PATH, which is string
8801 # having a format:
8802 # "DIR[:DIR]:"
8803 # string "DIR[ DIR]" will be prepended to VARIABLE
8804 # ":DIR[:DIR]"
8805 # string "DIR[ DIR]" will be appended to VARIABLE
8806 # "DIRP[:DIRP]::[DIRA:]DIRA"
8807 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8808 # "DIRA[ DIRA]" will be appended to VARIABLE
8809 # "DIR[:DIR]"
8810 # VARIABLE will be replaced by "DIR[ DIR]"
8811 func_munge_path_list ()
8812 {
8813 case x$2 in
8814 x)
8815 ;;
8816 *:)
8817 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8818 ;;
8819 x:*)
8820 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8821 ;;
8822 *::*)
8823 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8824 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8825 ;;
8826 *)
8827 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8828 ;;
8829 esac
8830 }
8831
8832 ac_header= ac_cache=
8833 for ac_item in $ac_header_c_list
8834 do
8835 if test $ac_cache; then
8836 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8837 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8838 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8839 fi
8840 ac_header= ac_cache=
8841 elif test $ac_header; then
8842 ac_cache=$ac_item
8843 else
8844 ac_header=$ac_item
8845 fi
8846 done
8847
8848
8849
8850
8851
8852
8853
8854
8855 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8856 then :
8857
8858 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8859
8860 fi
8861 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8862 "
8863 if test "x$ac_cv_header_dlfcn_h" = xyes
8864 then :
8865 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8866
8867 fi
8868
8869
8870
8871
8872
8873 # Set options
8874
8875
8876
8877 enable_dlopen=no
8878
8879
8880 enable_win32_dll=no
8881
8882
8883 # Check whether --enable-shared was given.
8884 if test ${enable_shared+y}
8885 then :
8886 enableval=$enable_shared; p=${PACKAGE-default}
8887 case $enableval in
8888 yes) enable_shared=yes ;;
8889 no) enable_shared=no ;;
8890 *)
8891 enable_shared=no
8892 # Look at the argument we got. We use all the common list separators.
8893 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8894 for pkg in $enableval; do
8895 IFS=$lt_save_ifs
8896 if test "X$pkg" = "X$p"; then
8897 enable_shared=yes
8898 fi
8899 done
8900 IFS=$lt_save_ifs
8901 ;;
8902 esac
8903 else case e in #(
8904 e) enable_shared=yes ;;
8905 esac
8906 fi
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918 # Check whether --with-pic was given.
8919 if test ${with_pic+y}
8920 then :
8921 withval=$with_pic; lt_p=${PACKAGE-default}
8922 case $withval in
8923 yes|no) pic_mode=$withval ;;
8924 *)
8925 pic_mode=default
8926 # Look at the argument we got. We use all the common list separators.
8927 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8928 for lt_pkg in $withval; do
8929 IFS=$lt_save_ifs
8930 if test "X$lt_pkg" = "X$lt_p"; then
8931 pic_mode=yes
8932 fi
8933 done
8934 IFS=$lt_save_ifs
8935 ;;
8936 esac
8937 else case e in #(
8938 e) pic_mode=default ;;
8939 esac
8940 fi
8941
8942
8943
8944
8945
8946
8947
8948
8949 # Check whether --enable-fast-install was given.
8950 if test ${enable_fast_install+y}
8951 then :
8952 enableval=$enable_fast_install; p=${PACKAGE-default}
8953 case $enableval in
8954 yes) enable_fast_install=yes ;;
8955 no) enable_fast_install=no ;;
8956 *)
8957 enable_fast_install=no
8958 # Look at the argument we got. We use all the common list separators.
8959 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8960 for pkg in $enableval; do
8961 IFS=$lt_save_ifs
8962 if test "X$pkg" = "X$p"; then
8963 enable_fast_install=yes
8964 fi
8965 done
8966 IFS=$lt_save_ifs
8967 ;;
8968 esac
8969 else case e in #(
8970 e) enable_fast_install=yes ;;
8971 esac
8972 fi
8973
8974
8975
8976
8977
8978
8979
8980
8981 shared_archive_member_spec=
8982 case $host,$enable_shared in
8983 power*-*-aix[5-9]*,yes)
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8985 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8986
8987 # Check whether --with-aix-soname was given.
8988 if test ${with_aix_soname+y}
8989 then :
8990 withval=$with_aix_soname; case $withval in
8991 aix|svr4|both)
8992 ;;
8993 *)
8994 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8995 ;;
8996 esac
8997 lt_cv_with_aix_soname=$with_aix_soname
8998 else case e in #(
8999 e) if test ${lt_cv_with_aix_soname+y}
9000 then :
9001 printf %s "(cached) " >&6
9002 else case e in #(
9003 e) lt_cv_with_aix_soname=aix ;;
9004 esac
9005 fi
9006
9007 with_aix_soname=$lt_cv_with_aix_soname ;;
9008 esac
9009 fi
9010
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9012 printf "%s\n" "$with_aix_soname" >&6; }
9013 if test aix != "$with_aix_soname"; then
9014 # For the AIX way of multilib, we name the shared archive member
9015 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9016 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9017 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9018 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9019 if test 64 = "${OBJECT_MODE-32}"; then
9020 shared_archive_member_spec=shr_64
9021 else
9022 shared_archive_member_spec=shr
9023 fi
9024 fi
9025 ;;
9026 *)
9027 with_aix_soname=aix
9028 ;;
9029 esac
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040 # This can be used to rebuild libtool when needed
9041 LIBTOOL_DEPS=$ltmain
9042
9043 # Always use our own libtool.
9044 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075 test -z "$LN_S" && LN_S="ln -s"
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090 if test -n "${ZSH_VERSION+set}"; then
9091 setopt NO_GLOB_SUBST
9092 fi
9093
9094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9095 printf %s "checking for objdir... " >&6; }
9096 if test ${lt_cv_objdir+y}
9097 then :
9098 printf %s "(cached) " >&6
9099 else case e in #(
9100 e) rm -f .libs 2>/dev/null
9101 mkdir .libs 2>/dev/null
9102 if test -d .libs; then
9103 lt_cv_objdir=.libs
9104 else
9105 # MS-DOS does not allow filenames that begin with a dot.
9106 lt_cv_objdir=_libs
9107 fi
9108 rmdir .libs 2>/dev/null ;;
9109 esac
9110 fi
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9112 printf "%s\n" "$lt_cv_objdir" >&6; }
9113 objdir=$lt_cv_objdir
9114
9115
9116
9117
9118
9119 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9120
9121
9122
9123
9124 case $host_os in
9125 aix3*)
9126 # AIX sometimes has problems with the GCC collect2 program. For some
9127 # reason, if we set the COLLECT_NAMES environment variable, the problems
9128 # vanish in a puff of smoke.
9129 if test set != "${COLLECT_NAMES+set}"; then
9130 COLLECT_NAMES=
9131 export COLLECT_NAMES
9132 fi
9133 ;;
9134 esac
9135
9136 # Global variables:
9137 ofile=libtool
9138 can_build_shared=yes
9139
9140 # All known linkers require a '.a' archive for static linking (except MSVC and
9141 # ICC, which need '.lib').
9142 libext=a
9143
9144 with_gnu_ld=$lt_cv_prog_gnu_ld
9145
9146 old_CC=$CC
9147 old_CFLAGS=$CFLAGS
9148
9149 # Set sane defaults for various variables
9150 test -z "$CC" && CC=cc
9151 test -z "$LTCC" && LTCC=$CC
9152 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9153 test -z "$LD" && LD=ld
9154 test -z "$ac_objext" && ac_objext=o
9155
9156 func_cc_basename $compiler
9157 cc_basename=$func_cc_basename_result
9158
9159
9160 # Only perform the check for file, if the check method requires it
9161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9162 case $deplibs_check_method in
9163 file_magic*)
9164 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9166 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9167 if test ${lt_cv_path_MAGIC_CMD+y}
9168 then :
9169 printf %s "(cached) " >&6
9170 else case e in #(
9171 e) case $MAGIC_CMD in
9172 [\\/*] | ?:[\\/]*)
9173 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9174 ;;
9175 *)
9176 lt_save_MAGIC_CMD=$MAGIC_CMD
9177 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9178 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9179 for ac_dir in $ac_dummy; do
9180 IFS=$lt_save_ifs
9181 test -z "$ac_dir" && ac_dir=.
9182 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9183 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9184 if test -n "$file_magic_test_file"; then
9185 case $deplibs_check_method in
9186 "file_magic "*)
9187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9188 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9190 $EGREP "$file_magic_regex" > /dev/null; then
9191 :
9192 else
9193 cat <<_LT_EOF 1>&2
9194
9195 *** Warning: the command libtool uses to detect shared libraries,
9196 *** $file_magic_cmd, produces output that libtool cannot recognize.
9197 *** The result is that libtool may fail to recognize shared libraries
9198 *** as such. This will affect the creation of libtool libraries that
9199 *** depend on shared libraries, but programs linked with such libtool
9200 *** libraries will work regardless of this problem. Nevertheless, you
9201 *** may want to report the problem to your system manager and/or to
9202 *** [email protected]
9203
9204 _LT_EOF
9205 fi ;;
9206 esac
9207 fi
9208 break
9209 fi
9210 done
9211 IFS=$lt_save_ifs
9212 MAGIC_CMD=$lt_save_MAGIC_CMD
9213 ;;
9214 esac ;;
9215 esac
9216 fi
9217
9218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9219 if test -n "$MAGIC_CMD"; then
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9221 printf "%s\n" "$MAGIC_CMD" >&6; }
9222 else
9223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 printf "%s\n" "no" >&6; }
9225 fi
9226
9227
9228
9229
9230
9231 if test -z "$lt_cv_path_MAGIC_CMD"; then
9232 if test -n "$ac_tool_prefix"; then
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9234 printf %s "checking for file... " >&6; }
9235 if test ${lt_cv_path_MAGIC_CMD+y}
9236 then :
9237 printf %s "(cached) " >&6
9238 else case e in #(
9239 e) case $MAGIC_CMD in
9240 [\\/*] | ?:[\\/]*)
9241 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9242 ;;
9243 *)
9244 lt_save_MAGIC_CMD=$MAGIC_CMD
9245 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9246 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9247 for ac_dir in $ac_dummy; do
9248 IFS=$lt_save_ifs
9249 test -z "$ac_dir" && ac_dir=.
9250 if test -f "$ac_dir/file"; then
9251 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9252 if test -n "$file_magic_test_file"; then
9253 case $deplibs_check_method in
9254 "file_magic "*)
9255 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9256 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9258 $EGREP "$file_magic_regex" > /dev/null; then
9259 :
9260 else
9261 cat <<_LT_EOF 1>&2
9262
9263 *** Warning: the command libtool uses to detect shared libraries,
9264 *** $file_magic_cmd, produces output that libtool cannot recognize.
9265 *** The result is that libtool may fail to recognize shared libraries
9266 *** as such. This will affect the creation of libtool libraries that
9267 *** depend on shared libraries, but programs linked with such libtool
9268 *** libraries will work regardless of this problem. Nevertheless, you
9269 *** may want to report the problem to your system manager and/or to
9270 *** [email protected]
9271
9272 _LT_EOF
9273 fi ;;
9274 esac
9275 fi
9276 break
9277 fi
9278 done
9279 IFS=$lt_save_ifs
9280 MAGIC_CMD=$lt_save_MAGIC_CMD
9281 ;;
9282 esac ;;
9283 esac
9284 fi
9285
9286 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9287 if test -n "$MAGIC_CMD"; then
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9289 printf "%s\n" "$MAGIC_CMD" >&6; }
9290 else
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 printf "%s\n" "no" >&6; }
9293 fi
9294
9295
9296 else
9297 MAGIC_CMD=:
9298 fi
9299 fi
9300
9301 fi
9302 ;;
9303 esac
9304
9305 # Use C for the default configuration in the libtool script
9306
9307 lt_save_CC=$CC
9308 ac_ext=c
9309 ac_cpp='$CPP $CPPFLAGS'
9310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9313
9314
9315 # Source file extension for C test sources.
9316 ac_ext=c
9317
9318 # Object file extension for compiled C test sources.
9319 objext=o
9320 objext=$objext
9321
9322 # Code to be used in simple compile tests
9323 lt_simple_compile_test_code="int some_variable = 0;"
9324
9325 # Code to be used in simple link tests
9326 lt_simple_link_test_code='int main(){return(0);}'
9327
9328
9329
9330
9331
9332
9333
9334 # If no C compiler was specified, use CC.
9335 LTCC=${LTCC-"$CC"}
9336
9337 # If no C compiler flags were specified, use CFLAGS.
9338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9339
9340 # Allow CC to be a program name with arguments.
9341 compiler=$CC
9342
9343 # Save the default compiler, since it gets overwritten when the other
9344 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9345 compiler_DEFAULT=$CC
9346
9347 # save warnings/boilerplate of simple test code
9348 ac_outfile=conftest.$ac_objext
9349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9351 _lt_compiler_boilerplate=`cat conftest.err`
9352 $RM conftest*
9353
9354 ac_outfile=conftest.$ac_objext
9355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9357 _lt_linker_boilerplate=`cat conftest.err`
9358 $RM -r conftest*
9359
9360
9361 ## CAVEAT EMPTOR:
9362 ## There is no encapsulation within the following macros, do not change
9363 ## the running order or otherwise move them around unless you know exactly
9364 ## what you are doing...
9365 if test -n "$compiler"; then
9366
9367 lt_prog_compiler_no_builtin_flag=
9368
9369 if test yes = "$GCC"; then
9370 case $cc_basename in
9371 nvcc*)
9372 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9373 *)
9374 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9375 esac
9376
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9378 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9379 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9380 then :
9381 printf %s "(cached) " >&6
9382 else case e in #(
9383 e) lt_cv_prog_compiler_rtti_exceptions=no
9384 ac_outfile=conftest.$ac_objext
9385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9386 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9387 # Insert the option either (1) after the last *FLAGS variable, or
9388 # (2) before a word containing "conftest.", or (3) at the end.
9389 # Note that $ac_compile itself does not contain backslashes and begins
9390 # with a dollar sign (not a hyphen), so the echo should work correctly.
9391 # The option is referenced via a variable to avoid confusing sed.
9392 lt_compile=`echo "$ac_compile" | $SED \
9393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9395 -e 's:$: $lt_compiler_flag:'`
9396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9397 (eval "$lt_compile" 2>conftest.err)
9398 ac_status=$?
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 if (exit $ac_status) && test -s "$ac_outfile"; then
9402 # The compiler can only warn and ignore the option if not recognized
9403 # So say no if there are warnings other than the usual output.
9404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9407 lt_cv_prog_compiler_rtti_exceptions=yes
9408 fi
9409 fi
9410 $RM conftest*
9411 ;;
9412 esac
9413 fi
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9415 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9416
9417 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9418 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9419 else
9420 :
9421 fi
9422
9423 fi
9424
9425
9426
9427
9428
9429
9430 lt_prog_compiler_wl=
9431 lt_prog_compiler_pic=
9432 lt_prog_compiler_static=
9433
9434
9435 if test yes = "$GCC"; then
9436 lt_prog_compiler_wl='-Wl,'
9437 lt_prog_compiler_static='-static'
9438
9439 case $host_os in
9440 aix*)
9441 # All AIX code is PIC.
9442 if test ia64 = "$host_cpu"; then
9443 # AIX 5 now supports IA64 processor
9444 lt_prog_compiler_static='-Bstatic'
9445 fi
9446 lt_prog_compiler_pic='-fPIC'
9447 ;;
9448
9449 amigaos*)
9450 case $host_cpu in
9451 powerpc)
9452 # see comment about AmigaOS4 .so support
9453 lt_prog_compiler_pic='-fPIC'
9454 ;;
9455 m68k)
9456 # FIXME: we need at least 68020 code to build shared libraries, but
9457 # adding the '-m68020' flag to GCC prevents building anything better,
9458 # like '-m68040'.
9459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9460 ;;
9461 esac
9462 ;;
9463
9464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9465 # PIC is the default for these OSes.
9466 ;;
9467
9468 mingw* | cygwin* | pw32* | os2* | cegcc*)
9469 # This hack is so that the source file can tell whether it is being
9470 # built for inclusion in a dll (and should export symbols for example).
9471 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9472 # (--disable-auto-import) libraries
9473 lt_prog_compiler_pic='-DDLL_EXPORT'
9474 case $host_os in
9475 os2*)
9476 lt_prog_compiler_static='$wl-static'
9477 ;;
9478 esac
9479 ;;
9480
9481 darwin* | rhapsody*)
9482 # PIC is the default on this platform
9483 # Common symbols not allowed in MH_DYLIB files
9484 lt_prog_compiler_pic='-fno-common'
9485 ;;
9486
9487 haiku*)
9488 # PIC is the default for Haiku.
9489 # The "-static" flag exists, but is broken.
9490 lt_prog_compiler_static=
9491 ;;
9492
9493 hpux*)
9494 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9495 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9496 # sets the default TLS model and affects inlining.
9497 case $host_cpu in
9498 hppa*64*)
9499 # +Z the default
9500 ;;
9501 *)
9502 lt_prog_compiler_pic='-fPIC'
9503 ;;
9504 esac
9505 ;;
9506
9507 interix[3-9]*)
9508 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9509 # Instead, we relocate shared libraries at runtime.
9510 ;;
9511
9512 msdosdjgpp*)
9513 # Just because we use GCC doesn't mean we suddenly get shared libraries
9514 # on systems that don't support them.
9515 lt_prog_compiler_can_build_shared=no
9516 enable_shared=no
9517 ;;
9518
9519 *nto* | *qnx*)
9520 # QNX uses GNU C++, but need to define -shared option too, otherwise
9521 # it will coredump.
9522 lt_prog_compiler_pic='-fPIC -shared'
9523 ;;
9524
9525 sysv4*MP*)
9526 if test -d /usr/nec; then
9527 lt_prog_compiler_pic=-Kconform_pic
9528 fi
9529 ;;
9530
9531 *)
9532 lt_prog_compiler_pic='-fPIC'
9533 ;;
9534 esac
9535
9536 case $cc_basename in
9537 nvcc*) # Cuda Compiler Driver 2.2
9538 lt_prog_compiler_wl='-Xlinker '
9539 if test -n "$lt_prog_compiler_pic"; then
9540 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9541 fi
9542 ;;
9543 esac
9544 else
9545 # PORTME Check for flag to pass linker flags through the system compiler.
9546 case $host_os in
9547 aix*)
9548 lt_prog_compiler_wl='-Wl,'
9549 if test ia64 = "$host_cpu"; then
9550 # AIX 5 now supports IA64 processor
9551 lt_prog_compiler_static='-Bstatic'
9552 else
9553 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9554 fi
9555 ;;
9556
9557 darwin* | rhapsody*)
9558 # PIC is the default on this platform
9559 # Common symbols not allowed in MH_DYLIB files
9560 lt_prog_compiler_pic='-fno-common'
9561 case $cc_basename in
9562 nagfor*)
9563 # NAG Fortran compiler
9564 lt_prog_compiler_wl='-Wl,-Wl,,'
9565 lt_prog_compiler_pic='-PIC'
9566 lt_prog_compiler_static='-Bstatic'
9567 ;;
9568 esac
9569 ;;
9570
9571 mingw* | cygwin* | pw32* | os2* | cegcc*)
9572 # This hack is so that the source file can tell whether it is being
9573 # built for inclusion in a dll (and should export symbols for example).
9574 lt_prog_compiler_pic='-DDLL_EXPORT'
9575 case $host_os in
9576 os2*)
9577 lt_prog_compiler_static='$wl-static'
9578 ;;
9579 esac
9580 ;;
9581
9582 hpux9* | hpux10* | hpux11*)
9583 lt_prog_compiler_wl='-Wl,'
9584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9585 # not for PA HP-UX.
9586 case $host_cpu in
9587 hppa*64*|ia64*)
9588 # +Z the default
9589 ;;
9590 *)
9591 lt_prog_compiler_pic='+Z'
9592 ;;
9593 esac
9594 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9595 lt_prog_compiler_static='$wl-a ${wl}archive'
9596 ;;
9597
9598 irix5* | irix6* | nonstopux*)
9599 lt_prog_compiler_wl='-Wl,'
9600 # PIC (with -KPIC) is the default.
9601 lt_prog_compiler_static='-non_shared'
9602 ;;
9603
9604 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9605 case $cc_basename in
9606 # old Intel for x86_64, which still supported -KPIC.
9607 ecc*)
9608 lt_prog_compiler_wl='-Wl,'
9609 lt_prog_compiler_pic='-KPIC'
9610 lt_prog_compiler_static='-static'
9611 ;;
9612 # icc used to be incompatible with GCC.
9613 # ICC 10 doesn't accept -KPIC any more.
9614 icc* | ifort*)
9615 lt_prog_compiler_wl='-Wl,'
9616 lt_prog_compiler_pic='-fPIC'
9617 lt_prog_compiler_static='-static'
9618 ;;
9619 # Lahey Fortran 8.1.
9620 lf95*)
9621 lt_prog_compiler_wl='-Wl,'
9622 lt_prog_compiler_pic='--shared'
9623 lt_prog_compiler_static='--static'
9624 ;;
9625 nagfor*)
9626 # NAG Fortran compiler
9627 lt_prog_compiler_wl='-Wl,-Wl,,'
9628 lt_prog_compiler_pic='-PIC'
9629 lt_prog_compiler_static='-Bstatic'
9630 ;;
9631 tcc*)
9632 # Fabrice Bellard et al's Tiny C Compiler
9633 lt_prog_compiler_wl='-Wl,'
9634 lt_prog_compiler_pic='-fPIC'
9635 lt_prog_compiler_static='-static'
9636 ;;
9637 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9638 # Portland Group compilers (*not* the Pentium gcc compiler,
9639 # which looks to be a dead project)
9640 lt_prog_compiler_wl='-Wl,'
9641 lt_prog_compiler_pic='-fpic'
9642 lt_prog_compiler_static='-Bstatic'
9643 ;;
9644 ccc*)
9645 lt_prog_compiler_wl='-Wl,'
9646 # All Alpha code is PIC.
9647 lt_prog_compiler_static='-non_shared'
9648 ;;
9649 xl* | bgxl* | bgf* | mpixl*)
9650 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9651 lt_prog_compiler_wl='-Wl,'
9652 lt_prog_compiler_pic='-qpic'
9653 lt_prog_compiler_static='-qstaticlink'
9654 ;;
9655 *)
9656 case `$CC -V 2>&1 | $SED 5q` in
9657 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9658 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9659 lt_prog_compiler_pic='-KPIC'
9660 lt_prog_compiler_static='-Bstatic'
9661 lt_prog_compiler_wl=''
9662 ;;
9663 *Sun\ F* | *Sun*Fortran*)
9664 lt_prog_compiler_pic='-KPIC'
9665 lt_prog_compiler_static='-Bstatic'
9666 lt_prog_compiler_wl='-Qoption ld '
9667 ;;
9668 *Sun\ C*)
9669 # Sun C 5.9
9670 lt_prog_compiler_pic='-KPIC'
9671 lt_prog_compiler_static='-Bstatic'
9672 lt_prog_compiler_wl='-Wl,'
9673 ;;
9674 *Intel*\ [CF]*Compiler*)
9675 lt_prog_compiler_wl='-Wl,'
9676 lt_prog_compiler_pic='-fPIC'
9677 lt_prog_compiler_static='-static'
9678 ;;
9679 *Portland\ Group*)
9680 lt_prog_compiler_wl='-Wl,'
9681 lt_prog_compiler_pic='-fpic'
9682 lt_prog_compiler_static='-Bstatic'
9683 ;;
9684 esac
9685 ;;
9686 esac
9687 ;;
9688
9689 newsos6)
9690 lt_prog_compiler_pic='-KPIC'
9691 lt_prog_compiler_static='-Bstatic'
9692 ;;
9693
9694 *nto* | *qnx*)
9695 # QNX uses GNU C++, but need to define -shared option too, otherwise
9696 # it will coredump.
9697 lt_prog_compiler_pic='-fPIC -shared'
9698 ;;
9699
9700 osf3* | osf4* | osf5*)
9701 lt_prog_compiler_wl='-Wl,'
9702 # All OSF/1 code is PIC.
9703 lt_prog_compiler_static='-non_shared'
9704 ;;
9705
9706 rdos*)
9707 lt_prog_compiler_static='-non_shared'
9708 ;;
9709
9710 solaris*)
9711 lt_prog_compiler_pic='-KPIC'
9712 lt_prog_compiler_static='-Bstatic'
9713 case $cc_basename in
9714 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9715 lt_prog_compiler_wl='-Qoption ld ';;
9716 *)
9717 lt_prog_compiler_wl='-Wl,';;
9718 esac
9719 ;;
9720
9721 sunos4*)
9722 lt_prog_compiler_wl='-Qoption ld '
9723 lt_prog_compiler_pic='-PIC'
9724 lt_prog_compiler_static='-Bstatic'
9725 ;;
9726
9727 sysv4 | sysv4.2uw2* | sysv4.3*)
9728 lt_prog_compiler_wl='-Wl,'
9729 lt_prog_compiler_pic='-KPIC'
9730 lt_prog_compiler_static='-Bstatic'
9731 ;;
9732
9733 sysv4*MP*)
9734 if test -d /usr/nec; then
9735 lt_prog_compiler_pic='-Kconform_pic'
9736 lt_prog_compiler_static='-Bstatic'
9737 fi
9738 ;;
9739
9740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9741 lt_prog_compiler_wl='-Wl,'
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 ;;
9745
9746 unicos*)
9747 lt_prog_compiler_wl='-Wl,'
9748 lt_prog_compiler_can_build_shared=no
9749 ;;
9750
9751 uts4*)
9752 lt_prog_compiler_pic='-pic'
9753 lt_prog_compiler_static='-Bstatic'
9754 ;;
9755
9756 *)
9757 lt_prog_compiler_can_build_shared=no
9758 ;;
9759 esac
9760 fi
9761
9762 case $host_os in
9763 # For platforms that do not support PIC, -DPIC is meaningless:
9764 *djgpp*)
9765 lt_prog_compiler_pic=
9766 ;;
9767 *)
9768 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9769 ;;
9770 esac
9771
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9773 printf %s "checking for $compiler option to produce PIC... " >&6; }
9774 if test ${lt_cv_prog_compiler_pic+y}
9775 then :
9776 printf %s "(cached) " >&6
9777 else case e in #(
9778 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9779 esac
9780 fi
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9782 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9783 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9784
9785 #
9786 # Check to make sure the PIC flag actually works.
9787 #
9788 if test -n "$lt_prog_compiler_pic"; then
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9790 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9791 if test ${lt_cv_prog_compiler_pic_works+y}
9792 then :
9793 printf %s "(cached) " >&6
9794 else case e in #(
9795 e) lt_cv_prog_compiler_pic_works=no
9796 ac_outfile=conftest.$ac_objext
9797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9799 # Insert the option either (1) after the last *FLAGS variable, or
9800 # (2) before a word containing "conftest.", or (3) at the end.
9801 # Note that $ac_compile itself does not contain backslashes and begins
9802 # with a dollar sign (not a hyphen), so the echo should work correctly.
9803 # The option is referenced via a variable to avoid confusing sed.
9804 lt_compile=`echo "$ac_compile" | $SED \
9805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9807 -e 's:$: $lt_compiler_flag:'`
9808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9809 (eval "$lt_compile" 2>conftest.err)
9810 ac_status=$?
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 if (exit $ac_status) && test -s "$ac_outfile"; then
9814 # The compiler can only warn and ignore the option if not recognized
9815 # So say no if there are warnings other than the usual output.
9816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9819 lt_cv_prog_compiler_pic_works=yes
9820 fi
9821 fi
9822 $RM conftest*
9823 ;;
9824 esac
9825 fi
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9827 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9828
9829 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9830 case $lt_prog_compiler_pic in
9831 "" | " "*) ;;
9832 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9833 esac
9834 else
9835 lt_prog_compiler_pic=
9836 lt_prog_compiler_can_build_shared=no
9837 fi
9838
9839 fi
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851 #
9852 # Check to make sure the static flag actually works.
9853 #
9854 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9856 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9857 if test ${lt_cv_prog_compiler_static_works+y}
9858 then :
9859 printf %s "(cached) " >&6
9860 else case e in #(
9861 e) lt_cv_prog_compiler_static_works=no
9862 save_LDFLAGS=$LDFLAGS
9863 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9864 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9865 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9866 # The linker can only warn and ignore the option if not recognized
9867 # So say no if there are warnings
9868 if test -s conftest.err; then
9869 # Append any errors to the config.log.
9870 cat conftest.err 1>&5
9871 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9873 if diff conftest.exp conftest.er2 >/dev/null; then
9874 lt_cv_prog_compiler_static_works=yes
9875 fi
9876 else
9877 lt_cv_prog_compiler_static_works=yes
9878 fi
9879 fi
9880 $RM -r conftest*
9881 LDFLAGS=$save_LDFLAGS
9882 ;;
9883 esac
9884 fi
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9886 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9887
9888 if test yes = "$lt_cv_prog_compiler_static_works"; then
9889 :
9890 else
9891 lt_prog_compiler_static=
9892 fi
9893
9894
9895
9896
9897
9898
9899
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9901 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9902 if test ${lt_cv_prog_compiler_c_o+y}
9903 then :
9904 printf %s "(cached) " >&6
9905 else case e in #(
9906 e) lt_cv_prog_compiler_c_o=no
9907 $RM -r conftest 2>/dev/null
9908 mkdir conftest
9909 cd conftest
9910 mkdir out
9911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9912
9913 lt_compiler_flag="-o out/conftest2.$ac_objext"
9914 # Insert the option either (1) after the last *FLAGS variable, or
9915 # (2) before a word containing "conftest.", or (3) at the end.
9916 # Note that $ac_compile itself does not contain backslashes and begins
9917 # with a dollar sign (not a hyphen), so the echo should work correctly.
9918 lt_compile=`echo "$ac_compile" | $SED \
9919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9921 -e 's:$: $lt_compiler_flag:'`
9922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9923 (eval "$lt_compile" 2>out/conftest.err)
9924 ac_status=$?
9925 cat out/conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9928 then
9929 # The compiler can only warn and ignore the option if not recognized
9930 # So say no if there are warnings
9931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9934 lt_cv_prog_compiler_c_o=yes
9935 fi
9936 fi
9937 chmod u+w . 2>&5
9938 $RM conftest*
9939 # SGI C++ compiler will create directory out/ii_files/ for
9940 # template instantiation
9941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9942 $RM out/* && rmdir out
9943 cd ..
9944 $RM -r conftest
9945 $RM conftest*
9946 ;;
9947 esac
9948 fi
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9950 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9951
9952
9953
9954
9955
9956
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9958 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9959 if test ${lt_cv_prog_compiler_c_o+y}
9960 then :
9961 printf %s "(cached) " >&6
9962 else case e in #(
9963 e) lt_cv_prog_compiler_c_o=no
9964 $RM -r conftest 2>/dev/null
9965 mkdir conftest
9966 cd conftest
9967 mkdir out
9968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9969
9970 lt_compiler_flag="-o out/conftest2.$ac_objext"
9971 # Insert the option either (1) after the last *FLAGS variable, or
9972 # (2) before a word containing "conftest.", or (3) at the end.
9973 # Note that $ac_compile itself does not contain backslashes and begins
9974 # with a dollar sign (not a hyphen), so the echo should work correctly.
9975 lt_compile=`echo "$ac_compile" | $SED \
9976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9978 -e 's:$: $lt_compiler_flag:'`
9979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9980 (eval "$lt_compile" 2>out/conftest.err)
9981 ac_status=$?
9982 cat out/conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9985 then
9986 # The compiler can only warn and ignore the option if not recognized
9987 # So say no if there are warnings
9988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9991 lt_cv_prog_compiler_c_o=yes
9992 fi
9993 fi
9994 chmod u+w . 2>&5
9995 $RM conftest*
9996 # SGI C++ compiler will create directory out/ii_files/ for
9997 # template instantiation
9998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9999 $RM out/* && rmdir out
10000 cd ..
10001 $RM -r conftest
10002 $RM conftest*
10003 ;;
10004 esac
10005 fi
10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10007 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10008
10009
10010
10011
10012 hard_links=nottested
10013 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10014 # do not overwrite the value of need_locks provided by the user
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10016 printf %s "checking if we can lock with hard links... " >&6; }
10017 hard_links=yes
10018 $RM conftest*
10019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10020 touch conftest.a
10021 ln conftest.a conftest.b 2>&5 || hard_links=no
10022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10024 printf "%s\n" "$hard_links" >&6; }
10025 if test no = "$hard_links"; then
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10027 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10028 need_locks=warn
10029 fi
10030 else
10031 need_locks=no
10032 fi
10033
10034
10035
10036
10037
10038
10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10040 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10041
10042 runpath_var=
10043 allow_undefined_flag=
10044 always_export_symbols=no
10045 archive_cmds=
10046 archive_expsym_cmds=
10047 compiler_needs_object=no
10048 enable_shared_with_static_runtimes=no
10049 export_dynamic_flag_spec=
10050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10051 hardcode_automatic=no
10052 hardcode_direct=no
10053 hardcode_direct_absolute=no
10054 hardcode_libdir_flag_spec=
10055 hardcode_libdir_separator=
10056 hardcode_minus_L=no
10057 hardcode_shlibpath_var=unsupported
10058 inherit_rpath=no
10059 link_all_deplibs=unknown
10060 module_cmds=
10061 module_expsym_cmds=
10062 old_archive_from_new_cmds=
10063 old_archive_from_expsyms_cmds=
10064 thread_safe_flag_spec=
10065 whole_archive_flag_spec=
10066 # include_expsyms should be a list of space-separated symbols to be *always*
10067 # included in the symbol list
10068 include_expsyms=
10069 # exclude_expsyms can be an extended regexp of symbols to exclude
10070 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10071 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10072 # as well as any symbol that contains 'd'.
10073 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10075 # platforms (ab)use it in PIC code, but their linkers get confused if
10076 # the symbol is explicitly referenced. Since portable code cannot
10077 # rely on this symbol name, it's probably fine to never include it in
10078 # preloaded symbol tables.
10079 # Exclude shared library initialization/finalization symbols.
10080 extract_expsyms_cmds=
10081
10082 case $host_os in
10083 cygwin* | mingw* | pw32* | cegcc*)
10084 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10085 # When not using gcc, we currently assume that we are using
10086 # Microsoft Visual C++ or Intel C++ Compiler.
10087 if test yes != "$GCC"; then
10088 with_gnu_ld=no
10089 fi
10090 ;;
10091 interix*)
10092 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10093 with_gnu_ld=yes
10094 ;;
10095 openbsd* | bitrig*)
10096 with_gnu_ld=no
10097 ;;
10098 esac
10099
10100 ld_shlibs=yes
10101
10102 # On some targets, GNU ld is compatible enough with the native linker
10103 # that we're better off using the native interface for both.
10104 lt_use_gnu_ld_interface=no
10105 if test yes = "$with_gnu_ld"; then
10106 case $host_os in
10107 aix*)
10108 # The AIX port of GNU ld has always aspired to compatibility
10109 # with the native linker. However, as the warning in the GNU ld
10110 # block says, versions before 2.19.5* couldn't really create working
10111 # shared libraries, regardless of the interface used.
10112 case `$LD -v 2>&1` in
10113 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10114 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10115 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10116 *)
10117 lt_use_gnu_ld_interface=yes
10118 ;;
10119 esac
10120 ;;
10121 *)
10122 lt_use_gnu_ld_interface=yes
10123 ;;
10124 esac
10125 fi
10126
10127 if test yes = "$lt_use_gnu_ld_interface"; then
10128 # If archive_cmds runs LD, not CC, wlarc should be empty
10129 wlarc='$wl'
10130
10131 # Set some defaults for GNU ld with shared library support. These
10132 # are reset later if shared libraries are not supported. Putting them
10133 # here allows them to be overridden if necessary.
10134 runpath_var=LD_RUN_PATH
10135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10136 export_dynamic_flag_spec='$wl--export-dynamic'
10137 # ancient GNU ld didn't support --whole-archive et. al.
10138 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10139 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10140 else
10141 whole_archive_flag_spec=
10142 fi
10143 supports_anon_versioning=no
10144 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10145 *GNU\ gold*) supports_anon_versioning=yes ;;
10146 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10147 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10148 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10149 *\ 2.11.*) ;; # other 2.11 versions
10150 *) supports_anon_versioning=yes ;;
10151 esac
10152
10153 # See if GNU ld supports shared libraries.
10154 case $host_os in
10155 aix[3-9]*)
10156 # On AIX/PPC, the GNU linker is very broken
10157 if test ia64 != "$host_cpu"; then
10158 ld_shlibs=no
10159 cat <<_LT_EOF 1>&2
10160
10161 *** Warning: the GNU linker, at least up to release 2.19, is reported
10162 *** to be unable to reliably create shared libraries on AIX.
10163 *** Therefore, libtool is disabling shared libraries support. If you
10164 *** really care for shared libraries, you may want to install binutils
10165 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10166 *** You will then need to restart the configuration process.
10167
10168 _LT_EOF
10169 fi
10170 ;;
10171
10172 amigaos*)
10173 case $host_cpu in
10174 powerpc)
10175 # see comment about AmigaOS4 .so support
10176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10177 archive_expsym_cmds=''
10178 ;;
10179 m68k)
10180 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)'
10181 hardcode_libdir_flag_spec='-L$libdir'
10182 hardcode_minus_L=yes
10183 ;;
10184 esac
10185 ;;
10186
10187 beos*)
10188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189 allow_undefined_flag=unsupported
10190 # Joseph Beckenbach <[email protected]> says some releases of gcc
10191 # support --undefined. This deserves some investigation. FIXME
10192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10193 else
10194 ld_shlibs=no
10195 fi
10196 ;;
10197
10198 cygwin* | mingw* | pw32* | cegcc*)
10199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10200 # as there is no search path for DLLs.
10201 hardcode_libdir_flag_spec='-L$libdir'
10202 export_dynamic_flag_spec='$wl--export-all-symbols'
10203 allow_undefined_flag=unsupported
10204 always_export_symbols=no
10205 enable_shared_with_static_runtimes=yes
10206 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'
10207 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10208
10209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10211 # If the export-symbols file already is a .def file, use it as
10212 # is; otherwise, prepend EXPORTS...
10213 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10214 cp $export_symbols $output_objdir/$soname.def;
10215 else
10216 echo EXPORTS > $output_objdir/$soname.def;
10217 cat $export_symbols >> $output_objdir/$soname.def;
10218 fi~
10219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10220 else
10221 ld_shlibs=no
10222 fi
10223 ;;
10224
10225 haiku*)
10226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10227 link_all_deplibs=yes
10228 ;;
10229
10230 os2*)
10231 hardcode_libdir_flag_spec='-L$libdir'
10232 hardcode_minus_L=yes
10233 allow_undefined_flag=unsupported
10234 shrext_cmds=.dll
10235 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10236 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10237 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10238 $ECHO EXPORTS >> $output_objdir/$libname.def~
10239 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10240 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10241 emximp -o $lib $output_objdir/$libname.def'
10242 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10245 $ECHO EXPORTS >> $output_objdir/$libname.def~
10246 prefix_cmds="$SED"~
10247 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10248 prefix_cmds="$prefix_cmds -e 1d";
10249 fi~
10250 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10251 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10252 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10253 emximp -o $lib $output_objdir/$libname.def'
10254 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10255 enable_shared_with_static_runtimes=yes
10256 file_list_spec='@'
10257 ;;
10258
10259 interix[3-9]*)
10260 hardcode_direct=no
10261 hardcode_shlibpath_var=no
10262 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10263 export_dynamic_flag_spec='$wl-E'
10264 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10265 # Instead, shared libraries are loaded at an image base (0x10000000 by
10266 # default) and relocated if they conflict, which is a slow very memory
10267 # consuming and fragmenting process. To avoid this, we pick a random,
10268 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10269 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10270 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10271 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'
10272 ;;
10273
10274 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10275 tmp_diet=no
10276 if test linux-dietlibc = "$host_os"; then
10277 case $cc_basename in
10278 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10279 esac
10280 fi
10281 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10282 && test no = "$tmp_diet"
10283 then
10284 tmp_addflag=' $pic_flag'
10285 tmp_sharedflag='-shared'
10286 case $cc_basename,$host_cpu in
10287 pgcc*) # Portland Group C compiler
10288 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'
10289 tmp_addflag=' $pic_flag'
10290 ;;
10291 pgf77* | pgf90* | pgf95* | pgfortran*)
10292 # Portland Group f77 and f90 compilers
10293 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'
10294 tmp_addflag=' $pic_flag -Mnomain' ;;
10295 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10296 tmp_addflag=' -i_dynamic' ;;
10297 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10298 tmp_addflag=' -i_dynamic -nofor_main' ;;
10299 ifc* | ifort*) # Intel Fortran compiler
10300 tmp_addflag=' -nofor_main' ;;
10301 lf95*) # Lahey Fortran 8.1
10302 whole_archive_flag_spec=
10303 tmp_sharedflag='--shared' ;;
10304 nagfor*) # NAGFOR 5.3
10305 tmp_sharedflag='-Wl,-shared' ;;
10306 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10307 tmp_sharedflag='-qmkshrobj'
10308 tmp_addflag= ;;
10309 nvcc*) # Cuda Compiler Driver 2.2
10310 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'
10311 compiler_needs_object=yes
10312 ;;
10313 esac
10314 case `$CC -V 2>&1 | $SED 5q` in
10315 *Sun\ C*) # Sun C 5.9
10316 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'
10317 compiler_needs_object=yes
10318 tmp_sharedflag='-G' ;;
10319 *Sun\ F*) # Sun Fortran 8.3
10320 tmp_sharedflag='-G' ;;
10321 esac
10322 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10323
10324 if test yes = "$supports_anon_versioning"; then
10325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10326 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10327 echo "local: *; };" >> $output_objdir/$libname.ver~
10328 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10329 fi
10330
10331 case $cc_basename in
10332 tcc*)
10333 export_dynamic_flag_spec='-rdynamic'
10334 ;;
10335 xlf* | bgf* | bgxlf* | mpixlf*)
10336 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10337 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10338 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10339 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10340 if test yes = "$supports_anon_versioning"; then
10341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10342 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10343 echo "local: *; };" >> $output_objdir/$libname.ver~
10344 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10345 fi
10346 ;;
10347 esac
10348 else
10349 ld_shlibs=no
10350 fi
10351 ;;
10352
10353 netbsd*)
10354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10355 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10356 wlarc=
10357 else
10358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10359 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10360 fi
10361 ;;
10362
10363 solaris*)
10364 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10365 ld_shlibs=no
10366 cat <<_LT_EOF 1>&2
10367
10368 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10369 *** create shared libraries on Solaris systems. Therefore, libtool
10370 *** is disabling shared libraries support. We urge you to upgrade GNU
10371 *** binutils to release 2.9.1 or newer. Another option is to modify
10372 *** your PATH or compiler configuration so that the native linker is
10373 *** used, and then restart.
10374
10375 _LT_EOF
10376 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10377 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10378 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10379 else
10380 ld_shlibs=no
10381 fi
10382 ;;
10383
10384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10385 case `$LD -v 2>&1` in
10386 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10387 ld_shlibs=no
10388 cat <<_LT_EOF 1>&2
10389
10390 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10391 *** reliably create shared libraries on SCO systems. Therefore, libtool
10392 *** is disabling shared libraries support. We urge you to upgrade GNU
10393 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10394 *** your PATH or compiler configuration so that the native linker is
10395 *** used, and then restart.
10396
10397 _LT_EOF
10398 ;;
10399 *)
10400 # For security reasons, it is highly recommended that you always
10401 # use absolute paths for naming shared libraries, and exclude the
10402 # DT_RUNPATH tag from executables and libraries. But doing so
10403 # requires that you compile everything twice, which is a pain.
10404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10405 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10408 else
10409 ld_shlibs=no
10410 fi
10411 ;;
10412 esac
10413 ;;
10414
10415 sunos4*)
10416 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10417 wlarc=
10418 hardcode_direct=yes
10419 hardcode_shlibpath_var=no
10420 ;;
10421
10422 *)
10423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10424 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10425 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10426 else
10427 ld_shlibs=no
10428 fi
10429 ;;
10430 esac
10431
10432 if test no = "$ld_shlibs"; then
10433 runpath_var=
10434 hardcode_libdir_flag_spec=
10435 export_dynamic_flag_spec=
10436 whole_archive_flag_spec=
10437 fi
10438 else
10439 # PORTME fill in a description of your system's linker (not GNU ld)
10440 case $host_os in
10441 aix3*)
10442 allow_undefined_flag=unsupported
10443 always_export_symbols=yes
10444 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'
10445 # Note: this linker hardcodes the directories in LIBPATH if there
10446 # are no directories specified by -L.
10447 hardcode_minus_L=yes
10448 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10449 # Neither direct hardcoding nor static linking is supported with a
10450 # broken collect2.
10451 hardcode_direct=unsupported
10452 fi
10453 ;;
10454
10455 aix[4-9]*)
10456 if test ia64 = "$host_cpu"; then
10457 # On IA64, the linker does run time linking by default, so we don't
10458 # have to do anything special.
10459 aix_use_runtimelinking=no
10460 exp_sym_flag='-Bexport'
10461 no_entry_flag=
10462 else
10463 # If we're using GNU nm, then we don't want the "-C" option.
10464 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10465 # Without the "-l" option, or with the "-B" option, AIX nm treats
10466 # weak defined symbols like other global defined symbols, whereas
10467 # GNU nm marks them as "W".
10468 # While the 'weak' keyword is ignored in the Export File, we need
10469 # it in the Import File for the 'aix-soname' feature, so we have
10470 # to replace the "-B" option with "-P" for AIX nm.
10471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10472 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10473 else
10474 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10475 fi
10476 aix_use_runtimelinking=no
10477
10478 # Test if we are trying to use run time linking or normal
10479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10480 # have runtime linking enabled, and use it for executables.
10481 # For shared libraries, we enable/disable runtime linking
10482 # depending on the kind of the shared library created -
10483 # when "with_aix_soname,aix_use_runtimelinking" is:
10484 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10485 # "aix,yes" lib.so shared, rtl:yes, for executables
10486 # lib.a static archive
10487 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10488 # lib.a(lib.so.V) shared, rtl:no, for executables
10489 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10490 # lib.a(lib.so.V) shared, rtl:no
10491 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10492 # lib.a static archive
10493 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10494 for ld_flag in $LDFLAGS; do
10495 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10496 aix_use_runtimelinking=yes
10497 break
10498 fi
10499 done
10500 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10501 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10502 # so we don't have lib.a shared libs to link our executables.
10503 # We have to force runtime linking in this case.
10504 aix_use_runtimelinking=yes
10505 LDFLAGS="$LDFLAGS -Wl,-brtl"
10506 fi
10507 ;;
10508 esac
10509
10510 exp_sym_flag='-bexport'
10511 no_entry_flag='-bnoentry'
10512 fi
10513
10514 # When large executables or shared objects are built, AIX ld can
10515 # have problems creating the table of contents. If linking a library
10516 # or program results in "error TOC overflow" add -mminimal-toc to
10517 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10518 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10519
10520 archive_cmds=''
10521 hardcode_direct=yes
10522 hardcode_direct_absolute=yes
10523 hardcode_libdir_separator=':'
10524 link_all_deplibs=yes
10525 file_list_spec='$wl-f,'
10526 case $with_aix_soname,$aix_use_runtimelinking in
10527 aix,*) ;; # traditional, no import file
10528 svr4,* | *,yes) # use import file
10529 # The Import File defines what to hardcode.
10530 hardcode_direct=no
10531 hardcode_direct_absolute=no
10532 ;;
10533 esac
10534
10535 if test yes = "$GCC"; then
10536 case $host_os in aix4.[012]|aix4.[012].*)
10537 # We only want to do this on AIX 4.2 and lower, the check
10538 # below for broken collect2 doesn't work under 4.3+
10539 collect2name=`$CC -print-prog-name=collect2`
10540 if test -f "$collect2name" &&
10541 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10542 then
10543 # We have reworked collect2
10544 :
10545 else
10546 # We have old collect2
10547 hardcode_direct=unsupported
10548 # It fails to find uninstalled libraries when the uninstalled
10549 # path is not listed in the libpath. Setting hardcode_minus_L
10550 # to unsupported forces relinking
10551 hardcode_minus_L=yes
10552 hardcode_libdir_flag_spec='-L$libdir'
10553 hardcode_libdir_separator=
10554 fi
10555 ;;
10556 esac
10557 shared_flag='-shared'
10558 if test yes = "$aix_use_runtimelinking"; then
10559 shared_flag="$shared_flag "'$wl-G'
10560 fi
10561 # Need to ensure runtime linking is disabled for the traditional
10562 # shared library, or the linker may eventually find shared libraries
10563 # /with/ Import File - we do not want to mix them.
10564 shared_flag_aix='-shared'
10565 shared_flag_svr4='-shared $wl-G'
10566 else
10567 # not using gcc
10568 if test ia64 = "$host_cpu"; then
10569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10570 # chokes on -Wl,-G. The following line is correct:
10571 shared_flag='-G'
10572 else
10573 if test yes = "$aix_use_runtimelinking"; then
10574 shared_flag='$wl-G'
10575 else
10576 shared_flag='$wl-bM:SRE'
10577 fi
10578 shared_flag_aix='$wl-bM:SRE'
10579 shared_flag_svr4='$wl-G'
10580 fi
10581 fi
10582
10583 export_dynamic_flag_spec='$wl-bexpall'
10584 # It seems that -bexpall does not export symbols beginning with
10585 # underscore (_), so it is better to generate a list of symbols to export.
10586 always_export_symbols=yes
10587 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10588 # Warning - without using the other runtime loading flags (-brtl),
10589 # -berok will link without error, but may produce a broken library.
10590 allow_undefined_flag='-berok'
10591 # Determine the default libpath from the value encoded in an
10592 # empty executable.
10593 if test set = "${lt_cv_aix_libpath+set}"; then
10594 aix_libpath=$lt_cv_aix_libpath
10595 else
10596 if test ${lt_cv_aix_libpath_+y}
10597 then :
10598 printf %s "(cached) " >&6
10599 else case e in #(
10600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602
10603 int
10604 main (void)
10605 {
10606
10607 ;
10608 return 0;
10609 }
10610 _ACEOF
10611 if ac_fn_c_try_link "$LINENO"
10612 then :
10613
10614 lt_aix_libpath_sed='
10615 /Import File Strings/,/^$/ {
10616 /^0/ {
10617 s/^0 *\([^ ]*\) *$/\1/
10618 p
10619 }
10620 }'
10621 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10622 # Check for a 64-bit object if we didn't find anything.
10623 if test -z "$lt_cv_aix_libpath_"; then
10624 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10625 fi
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10628 conftest$ac_exeext conftest.$ac_ext
10629 if test -z "$lt_cv_aix_libpath_"; then
10630 lt_cv_aix_libpath_=/usr/lib:/lib
10631 fi
10632 ;;
10633 esac
10634 fi
10635
10636 aix_libpath=$lt_cv_aix_libpath_
10637 fi
10638
10639 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10640 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10641 else
10642 if test ia64 = "$host_cpu"; then
10643 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10644 allow_undefined_flag="-z nodefs"
10645 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"
10646 else
10647 # Determine the default libpath from the value encoded in an
10648 # empty executable.
10649 if test set = "${lt_cv_aix_libpath+set}"; then
10650 aix_libpath=$lt_cv_aix_libpath
10651 else
10652 if test ${lt_cv_aix_libpath_+y}
10653 then :
10654 printf %s "(cached) " >&6
10655 else case e in #(
10656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658
10659 int
10660 main (void)
10661 {
10662
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 if ac_fn_c_try_link "$LINENO"
10668 then :
10669
10670 lt_aix_libpath_sed='
10671 /Import File Strings/,/^$/ {
10672 /^0/ {
10673 s/^0 *\([^ ]*\) *$/\1/
10674 p
10675 }
10676 }'
10677 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10678 # Check for a 64-bit object if we didn't find anything.
10679 if test -z "$lt_cv_aix_libpath_"; then
10680 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10681 fi
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10684 conftest$ac_exeext conftest.$ac_ext
10685 if test -z "$lt_cv_aix_libpath_"; then
10686 lt_cv_aix_libpath_=/usr/lib:/lib
10687 fi
10688 ;;
10689 esac
10690 fi
10691
10692 aix_libpath=$lt_cv_aix_libpath_
10693 fi
10694
10695 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10696 # Warning - without using the other run time loading flags,
10697 # -berok will link without error, but may produce a broken library.
10698 no_undefined_flag=' $wl-bernotok'
10699 allow_undefined_flag=' $wl-berok'
10700 if test yes = "$with_gnu_ld"; then
10701 # We only use this code for GNU lds that support --whole-archive.
10702 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10703 else
10704 # Exported symbols can be pulled into shared objects from archives
10705 whole_archive_flag_spec='$convenience'
10706 fi
10707 archive_cmds_need_lc=yes
10708 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10709 # -brtl affects multiple linker settings, -berok does not and is overridden later
10710 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10711 if test svr4 != "$with_aix_soname"; then
10712 # This is similar to how AIX traditionally builds its shared libraries.
10713 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10714 fi
10715 if test aix != "$with_aix_soname"; then
10716 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10717 else
10718 # used by -dlpreopen to get the symbols
10719 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10720 fi
10721 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10722 fi
10723 fi
10724 ;;
10725
10726 amigaos*)
10727 case $host_cpu in
10728 powerpc)
10729 # see comment about AmigaOS4 .so support
10730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10731 archive_expsym_cmds=''
10732 ;;
10733 m68k)
10734 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)'
10735 hardcode_libdir_flag_spec='-L$libdir'
10736 hardcode_minus_L=yes
10737 ;;
10738 esac
10739 ;;
10740
10741 bsdi[45]*)
10742 export_dynamic_flag_spec=-rdynamic
10743 ;;
10744
10745 cygwin* | mingw* | pw32* | cegcc*)
10746 # When not using gcc, we currently assume that we are using
10747 # Microsoft Visual C++ or Intel C++ Compiler.
10748 # hardcode_libdir_flag_spec is actually meaningless, as there is
10749 # no search path for DLLs.
10750 case $cc_basename in
10751 cl* | icl*)
10752 # Native MSVC or ICC
10753 hardcode_libdir_flag_spec=' '
10754 allow_undefined_flag=unsupported
10755 always_export_symbols=yes
10756 file_list_spec='@'
10757 # Tell ltmain to make .lib files, not .a files.
10758 libext=lib
10759 # Tell ltmain to make .dll files, not .so files.
10760 shrext_cmds=.dll
10761 # FIXME: Setting linknames here is a bad hack.
10762 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10763 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10764 cp "$export_symbols" "$output_objdir/$soname.def";
10765 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10766 else
10767 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10768 fi~
10769 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10770 linknames='
10771 # The linker will not automatically build a static lib if we build a DLL.
10772 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10773 enable_shared_with_static_runtimes=yes
10774 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10775 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10776 # Don't use ranlib
10777 old_postinstall_cmds='chmod 644 $oldlib'
10778 postlink_cmds='lt_outputfile="@OUTPUT@"~
10779 lt_tool_outputfile="@TOOL_OUTPUT@"~
10780 case $lt_outputfile in
10781 *.exe|*.EXE) ;;
10782 *)
10783 lt_outputfile=$lt_outputfile.exe
10784 lt_tool_outputfile=$lt_tool_outputfile.exe
10785 ;;
10786 esac~
10787 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10788 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10789 $RM "$lt_outputfile.manifest";
10790 fi'
10791 ;;
10792 *)
10793 # Assume MSVC and ICC wrapper
10794 hardcode_libdir_flag_spec=' '
10795 allow_undefined_flag=unsupported
10796 # Tell ltmain to make .lib files, not .a files.
10797 libext=lib
10798 # Tell ltmain to make .dll files, not .so files.
10799 shrext_cmds=.dll
10800 # FIXME: Setting linknames here is a bad hack.
10801 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10802 # The linker will automatically build a .lib file if we build a DLL.
10803 old_archive_from_new_cmds='true'
10804 # FIXME: Should let the user specify the lib program.
10805 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10806 enable_shared_with_static_runtimes=yes
10807 ;;
10808 esac
10809 ;;
10810
10811 darwin* | rhapsody*)
10812
10813
10814 archive_cmds_need_lc=no
10815 hardcode_direct=no
10816 hardcode_automatic=yes
10817 hardcode_shlibpath_var=unsupported
10818 if test yes = "$lt_cv_ld_force_load"; then
10819 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\"`'
10820
10821 else
10822 whole_archive_flag_spec=''
10823 fi
10824 link_all_deplibs=yes
10825 allow_undefined_flag=$_lt_dar_allow_undefined
10826 case $cc_basename in
10827 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10828 *) _lt_dar_can_shared=$GCC ;;
10829 esac
10830 if test yes = "$_lt_dar_can_shared"; then
10831 output_verbose_link_cmd=func_echo_all
10832 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10833 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10834 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"
10835 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"
10836
10837 else
10838 ld_shlibs=no
10839 fi
10840
10841 ;;
10842
10843 dgux*)
10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845 hardcode_libdir_flag_spec='-L$libdir'
10846 hardcode_shlibpath_var=no
10847 ;;
10848
10849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10850 # support. Future versions do this automatically, but an explicit c++rt0.o
10851 # does not break anything, and helps significantly (at the cost of a little
10852 # extra space).
10853 freebsd2.2*)
10854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10855 hardcode_libdir_flag_spec='-R$libdir'
10856 hardcode_direct=yes
10857 hardcode_shlibpath_var=no
10858 ;;
10859
10860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10861 freebsd2.*)
10862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10863 hardcode_direct=yes
10864 hardcode_minus_L=yes
10865 hardcode_shlibpath_var=no
10866 ;;
10867
10868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10869 freebsd* | dragonfly* | midnightbsd*)
10870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10871 hardcode_libdir_flag_spec='-R$libdir'
10872 hardcode_direct=yes
10873 hardcode_shlibpath_var=no
10874 ;;
10875
10876 hpux9*)
10877 if test yes = "$GCC"; then
10878 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10879 else
10880 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10881 fi
10882 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10883 hardcode_libdir_separator=:
10884 hardcode_direct=yes
10885
10886 # hardcode_minus_L: Not really in the search PATH,
10887 # but as the default location of the library.
10888 hardcode_minus_L=yes
10889 export_dynamic_flag_spec='$wl-E'
10890 ;;
10891
10892 hpux10*)
10893 if test yes,no = "$GCC,$with_gnu_ld"; then
10894 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10895 else
10896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10897 fi
10898 if test no = "$with_gnu_ld"; then
10899 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10900 hardcode_libdir_separator=:
10901 hardcode_direct=yes
10902 hardcode_direct_absolute=yes
10903 export_dynamic_flag_spec='$wl-E'
10904 # hardcode_minus_L: Not really in the search PATH,
10905 # but as the default location of the library.
10906 hardcode_minus_L=yes
10907 fi
10908 ;;
10909
10910 hpux11*)
10911 if test yes,no = "$GCC,$with_gnu_ld"; then
10912 case $host_cpu in
10913 hppa*64*)
10914 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10915 ;;
10916 ia64*)
10917 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10918 ;;
10919 *)
10920 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10921 ;;
10922 esac
10923 else
10924 case $host_cpu in
10925 hppa*64*)
10926 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 ;;
10928 ia64*)
10929 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10930 ;;
10931 *)
10932
10933 # Older versions of the 11.00 compiler do not understand -b yet
10934 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10936 printf %s "checking if $CC understands -b... " >&6; }
10937 if test ${lt_cv_prog_compiler__b+y}
10938 then :
10939 printf %s "(cached) " >&6
10940 else case e in #(
10941 e) lt_cv_prog_compiler__b=no
10942 save_LDFLAGS=$LDFLAGS
10943 LDFLAGS="$LDFLAGS -b"
10944 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10946 # The linker can only warn and ignore the option if not recognized
10947 # So say no if there are warnings
10948 if test -s conftest.err; then
10949 # Append any errors to the config.log.
10950 cat conftest.err 1>&5
10951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10953 if diff conftest.exp conftest.er2 >/dev/null; then
10954 lt_cv_prog_compiler__b=yes
10955 fi
10956 else
10957 lt_cv_prog_compiler__b=yes
10958 fi
10959 fi
10960 $RM -r conftest*
10961 LDFLAGS=$save_LDFLAGS
10962 ;;
10963 esac
10964 fi
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10966 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10967
10968 if test yes = "$lt_cv_prog_compiler__b"; then
10969 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10970 else
10971 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10972 fi
10973
10974 ;;
10975 esac
10976 fi
10977 if test no = "$with_gnu_ld"; then
10978 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10979 hardcode_libdir_separator=:
10980
10981 case $host_cpu in
10982 hppa*64*|ia64*)
10983 hardcode_direct=no
10984 hardcode_shlibpath_var=no
10985 ;;
10986 *)
10987 hardcode_direct=yes
10988 hardcode_direct_absolute=yes
10989 export_dynamic_flag_spec='$wl-E'
10990
10991 # hardcode_minus_L: Not really in the search PATH,
10992 # but as the default location of the library.
10993 hardcode_minus_L=yes
10994 ;;
10995 esac
10996 fi
10997 ;;
10998
10999 irix5* | irix6* | nonstopux*)
11000 if test yes = "$GCC"; then
11001 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'
11002 # Try to use the -exported_symbol ld option, if it does not
11003 # work, assume that -exports_file does not work either and
11004 # implicitly export all symbols.
11005 # This should be the same for all languages, so no per-tag cache variable.
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11007 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11008 if test ${lt_cv_irix_exported_symbol+y}
11009 then :
11010 printf %s "(cached) " >&6
11011 else case e in #(
11012 e) save_LDFLAGS=$LDFLAGS
11013 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016 int foo (void) { return 0; }
11017 _ACEOF
11018 if ac_fn_c_try_link "$LINENO"
11019 then :
11020 lt_cv_irix_exported_symbol=yes
11021 else case e in #(
11022 e) lt_cv_irix_exported_symbol=no ;;
11023 esac
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11026 conftest$ac_exeext conftest.$ac_ext
11027 LDFLAGS=$save_LDFLAGS ;;
11028 esac
11029 fi
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11031 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11032 if test yes = "$lt_cv_irix_exported_symbol"; then
11033 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'
11034 fi
11035 else
11036 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'
11037 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'
11038 fi
11039 archive_cmds_need_lc='no'
11040 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11041 hardcode_libdir_separator=:
11042 inherit_rpath=yes
11043 link_all_deplibs=yes
11044 ;;
11045
11046 linux*)
11047 case $cc_basename in
11048 tcc*)
11049 # Fabrice Bellard et al's Tiny C Compiler
11050 ld_shlibs=yes
11051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11052 ;;
11053 esac
11054 ;;
11055
11056 netbsd*)
11057 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11059 else
11060 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11061 fi
11062 hardcode_libdir_flag_spec='-R$libdir'
11063 hardcode_direct=yes
11064 hardcode_shlibpath_var=no
11065 ;;
11066
11067 newsos6)
11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069 hardcode_direct=yes
11070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11071 hardcode_libdir_separator=:
11072 hardcode_shlibpath_var=no
11073 ;;
11074
11075 *nto* | *qnx*)
11076 ;;
11077
11078 openbsd* | bitrig*)
11079 if test -f /usr/libexec/ld.so; then
11080 hardcode_direct=yes
11081 hardcode_shlibpath_var=no
11082 hardcode_direct_absolute=yes
11083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11085 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11086 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11087 export_dynamic_flag_spec='$wl-E'
11088 else
11089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11090 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11091 fi
11092 else
11093 ld_shlibs=no
11094 fi
11095 ;;
11096
11097 os2*)
11098 hardcode_libdir_flag_spec='-L$libdir'
11099 hardcode_minus_L=yes
11100 allow_undefined_flag=unsupported
11101 shrext_cmds=.dll
11102 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11103 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11104 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11105 $ECHO EXPORTS >> $output_objdir/$libname.def~
11106 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11107 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11108 emximp -o $lib $output_objdir/$libname.def'
11109 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11110 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11111 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11112 $ECHO EXPORTS >> $output_objdir/$libname.def~
11113 prefix_cmds="$SED"~
11114 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11115 prefix_cmds="$prefix_cmds -e 1d";
11116 fi~
11117 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11118 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11119 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11120 emximp -o $lib $output_objdir/$libname.def'
11121 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11122 enable_shared_with_static_runtimes=yes
11123 file_list_spec='@'
11124 ;;
11125
11126 osf3*)
11127 if test yes = "$GCC"; then
11128 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11129 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'
11130 else
11131 allow_undefined_flag=' -expect_unresolved \*'
11132 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'
11133 fi
11134 archive_cmds_need_lc='no'
11135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11136 hardcode_libdir_separator=:
11137 ;;
11138
11139 osf4* | osf5*) # as osf3* with the addition of -msym flag
11140 if test yes = "$GCC"; then
11141 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11142 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'
11143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11144 else
11145 allow_undefined_flag=' -expect_unresolved \*'
11146 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'
11147 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~
11148 $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'
11149
11150 # Both c and cxx compiler support -rpath directly
11151 hardcode_libdir_flag_spec='-rpath $libdir'
11152 fi
11153 archive_cmds_need_lc='no'
11154 hardcode_libdir_separator=:
11155 ;;
11156
11157 solaris*)
11158 no_undefined_flag=' -z defs'
11159 if test yes = "$GCC"; then
11160 wlarc='$wl'
11161 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11163 $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'
11164 else
11165 case `$CC -V 2>&1` in
11166 *"Compilers 5.0"*)
11167 wlarc=''
11168 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11170 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11171 ;;
11172 *)
11173 wlarc='$wl'
11174 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11176 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11177 ;;
11178 esac
11179 fi
11180 hardcode_libdir_flag_spec='-R$libdir'
11181 hardcode_shlibpath_var=no
11182 case $host_os in
11183 solaris2.[0-5] | solaris2.[0-5].*) ;;
11184 *)
11185 # The compiler driver will combine and reorder linker options,
11186 # but understands '-z linker_flag'. GCC discards it without '$wl',
11187 # but is careful enough not to reorder.
11188 # Supported since Solaris 2.6 (maybe 2.5.1?)
11189 if test yes = "$GCC"; then
11190 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11191 else
11192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11193 fi
11194 ;;
11195 esac
11196 link_all_deplibs=yes
11197 ;;
11198
11199 sunos4*)
11200 if test sequent = "$host_vendor"; then
11201 # Use $CC to link under sequent, because it throws in some extra .o
11202 # files that make .init and .fini sections work.
11203 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11204 else
11205 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11206 fi
11207 hardcode_libdir_flag_spec='-L$libdir'
11208 hardcode_direct=yes
11209 hardcode_minus_L=yes
11210 hardcode_shlibpath_var=no
11211 ;;
11212
11213 sysv4)
11214 case $host_vendor in
11215 sni)
11216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11217 hardcode_direct=yes # is this really true???
11218 ;;
11219 siemens)
11220 ## LD is ld it makes a PLAMLIB
11221 ## CC just makes a GrossModule.
11222 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11223 reload_cmds='$CC -r -o $output$reload_objs'
11224 hardcode_direct=no
11225 ;;
11226 motorola)
11227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11228 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11229 ;;
11230 esac
11231 runpath_var='LD_RUN_PATH'
11232 hardcode_shlibpath_var=no
11233 ;;
11234
11235 sysv4.3*)
11236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11237 hardcode_shlibpath_var=no
11238 export_dynamic_flag_spec='-Bexport'
11239 ;;
11240
11241 sysv4*MP*)
11242 if test -d /usr/nec; then
11243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11244 hardcode_shlibpath_var=no
11245 runpath_var=LD_RUN_PATH
11246 hardcode_runpath_var=yes
11247 ld_shlibs=yes
11248 fi
11249 ;;
11250
11251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11252 no_undefined_flag='$wl-z,text'
11253 archive_cmds_need_lc=no
11254 hardcode_shlibpath_var=no
11255 runpath_var='LD_RUN_PATH'
11256
11257 if test yes = "$GCC"; then
11258 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11259 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11260 else
11261 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11262 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11263 fi
11264 ;;
11265
11266 sysv5* | sco3.2v5* | sco5v6*)
11267 # Note: We CANNOT use -z defs as we might desire, because we do not
11268 # link with -lc, and that would cause any symbols used from libc to
11269 # always be unresolved, which means just about no library would
11270 # ever link correctly. If we're not using GNU ld we use -z text
11271 # though, which does catch some bad symbols but isn't as heavy-handed
11272 # as -z defs.
11273 no_undefined_flag='$wl-z,text'
11274 allow_undefined_flag='$wl-z,nodefs'
11275 archive_cmds_need_lc=no
11276 hardcode_shlibpath_var=no
11277 hardcode_libdir_flag_spec='$wl-R,$libdir'
11278 hardcode_libdir_separator=':'
11279 link_all_deplibs=yes
11280 export_dynamic_flag_spec='$wl-Bexport'
11281 runpath_var='LD_RUN_PATH'
11282
11283 if test yes = "$GCC"; then
11284 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11285 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11286 else
11287 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11288 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11289 fi
11290 ;;
11291
11292 uts4*)
11293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11294 hardcode_libdir_flag_spec='-L$libdir'
11295 hardcode_shlibpath_var=no
11296 ;;
11297
11298 *)
11299 ld_shlibs=no
11300 ;;
11301 esac
11302
11303 if test sni = "$host_vendor"; then
11304 case $host in
11305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11306 export_dynamic_flag_spec='$wl-Blargedynsym'
11307 ;;
11308 esac
11309 fi
11310 fi
11311
11312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11313 printf "%s\n" "$ld_shlibs" >&6; }
11314 test no = "$ld_shlibs" && can_build_shared=no
11315
11316 with_gnu_ld=$with_gnu_ld
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332 #
11333 # Do we need to explicitly link libc?
11334 #
11335 case "x$archive_cmds_need_lc" in
11336 x|xyes)
11337 # Assume -lc should be added
11338 archive_cmds_need_lc=yes
11339
11340 if test yes,yes = "$GCC,$enable_shared"; then
11341 case $archive_cmds in
11342 *'~'*)
11343 # FIXME: we may have to deal with multi-command sequences.
11344 ;;
11345 '$CC '*)
11346 # Test whether the compiler implicitly links with -lc since on some
11347 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11348 # to ld, don't add -lc before -lgcc.
11349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11350 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11351 if test ${lt_cv_archive_cmds_need_lc+y}
11352 then :
11353 printf %s "(cached) " >&6
11354 else case e in #(
11355 e) $RM conftest*
11356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11357
11358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11359 (eval $ac_compile) 2>&5
11360 ac_status=$?
11361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11362 test $ac_status = 0; } 2>conftest.err; then
11363 soname=conftest
11364 lib=conftest
11365 libobjs=conftest.$ac_objext
11366 deplibs=
11367 wl=$lt_prog_compiler_wl
11368 pic_flag=$lt_prog_compiler_pic
11369 compiler_flags=-v
11370 linker_flags=-v
11371 verstring=
11372 output_objdir=.
11373 libname=conftest
11374 lt_save_allow_undefined_flag=$allow_undefined_flag
11375 allow_undefined_flag=
11376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11377 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11378 ac_status=$?
11379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11380 test $ac_status = 0; }
11381 then
11382 lt_cv_archive_cmds_need_lc=no
11383 else
11384 lt_cv_archive_cmds_need_lc=yes
11385 fi
11386 allow_undefined_flag=$lt_save_allow_undefined_flag
11387 else
11388 cat conftest.err 1>&5
11389 fi
11390 $RM conftest*
11391 ;;
11392 esac
11393 fi
11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11395 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11396 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11397 ;;
11398 esac
11399 fi
11400 ;;
11401 esac
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11555 printf %s "checking dynamic linker characteristics... " >&6; }
11556
11557 if test yes = "$GCC"; then
11558 case $host_os in
11559 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11560 *) lt_awk_arg='/^libraries:/' ;;
11561 esac
11562 case $host_os in
11563 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11564 *) lt_sed_strip_eq='s|=/|/|g' ;;
11565 esac
11566 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11567 case $lt_search_path_spec in
11568 *\;*)
11569 # if the path contains ";" then we assume it to be the separator
11570 # otherwise default to the standard path separator (i.e. ":") - it is
11571 # assumed that no part of a normal pathname contains ";" but that should
11572 # okay in the real world where ";" in dirpaths is itself problematic.
11573 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11574 ;;
11575 *)
11576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11577 ;;
11578 esac
11579 # Ok, now we have the path, separated by spaces, we can step through it
11580 # and add multilib dir if necessary...
11581 lt_tmp_lt_search_path_spec=
11582 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11583 # ...but if some path component already ends with the multilib dir we assume
11584 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11585 case "$lt_multi_os_dir; $lt_search_path_spec " in
11586 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11587 lt_multi_os_dir=
11588 ;;
11589 esac
11590 for lt_sys_path in $lt_search_path_spec; do
11591 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11592 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11593 elif test -n "$lt_multi_os_dir"; then
11594 test -d "$lt_sys_path" && \
11595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11596 fi
11597 done
11598 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11599 BEGIN {RS = " "; FS = "/|\n";} {
11600 lt_foo = "";
11601 lt_count = 0;
11602 for (lt_i = NF; lt_i > 0; lt_i--) {
11603 if ($lt_i != "" && $lt_i != ".") {
11604 if ($lt_i == "..") {
11605 lt_count++;
11606 } else {
11607 if (lt_count == 0) {
11608 lt_foo = "/" $lt_i lt_foo;
11609 } else {
11610 lt_count--;
11611 }
11612 }
11613 }
11614 }
11615 if (lt_foo != "") { lt_freq[lt_foo]++; }
11616 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11617 }'`
11618 # AWK program above erroneously prepends '/' to C:/dos/paths
11619 # for these hosts.
11620 case $host_os in
11621 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11622 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11623 esac
11624 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11625 else
11626 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11627 fi
11628 library_names_spec=
11629 libname_spec='lib$name'
11630 soname_spec=
11631 shrext_cmds=.so
11632 postinstall_cmds=
11633 postuninstall_cmds=
11634 finish_cmds=
11635 finish_eval=
11636 shlibpath_var=
11637 shlibpath_overrides_runpath=unknown
11638 version_type=none
11639 dynamic_linker="$host_os ld.so"
11640 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11641 need_lib_prefix=unknown
11642 hardcode_into_libs=no
11643
11644 # when you set need_version to no, make sure it does not cause -set_version
11645 # flags to be left without arguments
11646 need_version=unknown
11647
11648
11649
11650 case $host_os in
11651 aix3*)
11652 version_type=linux # correct to gnu/linux during the next big refactor
11653 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11654 shlibpath_var=LIBPATH
11655
11656 # AIX 3 has no versioning support, so we append a major version to the name.
11657 soname_spec='$libname$release$shared_ext$major'
11658 ;;
11659
11660 aix[4-9]*)
11661 version_type=linux # correct to gnu/linux during the next big refactor
11662 need_lib_prefix=no
11663 need_version=no
11664 hardcode_into_libs=yes
11665 if test ia64 = "$host_cpu"; then
11666 # AIX 5 supports IA64
11667 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11668 shlibpath_var=LD_LIBRARY_PATH
11669 else
11670 # With GCC up to 2.95.x, collect2 would create an import file
11671 # for dependence libraries. The import file would start with
11672 # the line '#! .'. This would cause the generated library to
11673 # depend on '.', always an invalid library. This was fixed in
11674 # development snapshots of GCC prior to 3.0.
11675 case $host_os in
11676 aix4 | aix4.[01] | aix4.[01].*)
11677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11678 echo ' yes '
11679 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11680 :
11681 else
11682 can_build_shared=no
11683 fi
11684 ;;
11685 esac
11686 # Using Import Files as archive members, it is possible to support
11687 # filename-based versioning of shared library archives on AIX. While
11688 # this would work for both with and without runtime linking, it will
11689 # prevent static linking of such archives. So we do filename-based
11690 # shared library versioning with .so extension only, which is used
11691 # when both runtime linking and shared linking is enabled.
11692 # Unfortunately, runtime linking may impact performance, so we do
11693 # not want this to be the default eventually. Also, we use the
11694 # versioned .so libs for executables only if there is the -brtl
11695 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11696 # To allow for filename-based versioning support, we need to create
11697 # libNAME.so.V as an archive file, containing:
11698 # *) an Import File, referring to the versioned filename of the
11699 # archive as well as the shared archive member, telling the
11700 # bitwidth (32 or 64) of that shared object, and providing the
11701 # list of exported symbols of that shared object, eventually
11702 # decorated with the 'weak' keyword
11703 # *) the shared object with the F_LOADONLY flag set, to really avoid
11704 # it being seen by the linker.
11705 # At run time we better use the real file rather than another symlink,
11706 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11707
11708 case $with_aix_soname,$aix_use_runtimelinking in
11709 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11710 # soname into executable. Probably we can add versioning support to
11711 # collect2, so additional links can be useful in future.
11712 aix,yes) # traditional libtool
11713 dynamic_linker='AIX unversionable lib.so'
11714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11715 # instead of lib<name>.a to let people know that these are not
11716 # typical AIX shared libraries.
11717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11718 ;;
11719 aix,no) # traditional AIX only
11720 dynamic_linker='AIX lib.a(lib.so.V)'
11721 # We preserve .a as extension for shared libraries through AIX4.2
11722 # and later when we are not doing run time linking.
11723 library_names_spec='$libname$release.a $libname.a'
11724 soname_spec='$libname$release$shared_ext$major'
11725 ;;
11726 svr4,*) # full svr4 only
11727 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11728 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11729 # We do not specify a path in Import Files, so LIBPATH fires.
11730 shlibpath_overrides_runpath=yes
11731 ;;
11732 *,yes) # both, prefer svr4
11733 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11734 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11735 # unpreferred sharedlib libNAME.a needs extra handling
11736 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11737 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11738 # We do not specify a path in Import Files, so LIBPATH fires.
11739 shlibpath_overrides_runpath=yes
11740 ;;
11741 *,no) # both, prefer aix
11742 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11743 library_names_spec='$libname$release.a $libname.a'
11744 soname_spec='$libname$release$shared_ext$major'
11745 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11746 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11747 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11748 ;;
11749 esac
11750 shlibpath_var=LIBPATH
11751 fi
11752 ;;
11753
11754 amigaos*)
11755 case $host_cpu in
11756 powerpc)
11757 # Since July 2007 AmigaOS4 officially supports .so libraries.
11758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11760 ;;
11761 m68k)
11762 library_names_spec='$libname.ixlibrary $libname.a'
11763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11764 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11765 ;;
11766 esac
11767 ;;
11768
11769 beos*)
11770 library_names_spec='$libname$shared_ext'
11771 dynamic_linker="$host_os ld.so"
11772 shlibpath_var=LIBRARY_PATH
11773 ;;
11774
11775 bsdi[45]*)
11776 version_type=linux # correct to gnu/linux during the next big refactor
11777 need_version=no
11778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11779 soname_spec='$libname$release$shared_ext$major'
11780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11781 shlibpath_var=LD_LIBRARY_PATH
11782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11784 # the default ld.so.conf also contains /usr/contrib/lib and
11785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11786 # libtool to hard-code these into programs
11787 ;;
11788
11789 cygwin* | mingw* | pw32* | cegcc*)
11790 version_type=windows
11791 shrext_cmds=.dll
11792 need_version=no
11793 need_lib_prefix=no
11794
11795 case $GCC,$cc_basename in
11796 yes,*)
11797 # gcc
11798 library_names_spec='$libname.dll.a'
11799 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11800 postinstall_cmds='base_file=`basename \$file`~
11801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11802 dldir=$destdir/`dirname \$dlpath`~
11803 test -d \$dldir || mkdir -p \$dldir~
11804 $install_prog $dir/$dlname \$dldir/$dlname~
11805 chmod a+x \$dldir/$dlname~
11806 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11807 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11808 fi'
11809 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11810 dlpath=$dir/\$dldll~
11811 $RM \$dlpath'
11812 shlibpath_overrides_runpath=yes
11813
11814 case $host_os in
11815 cygwin*)
11816 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11817 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11818
11819 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11820 ;;
11821 mingw* | cegcc*)
11822 # MinGW DLLs use traditional 'lib' prefix
11823 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11824 ;;
11825 pw32*)
11826 # pw32 DLLs use 'pw' prefix rather than 'lib'
11827 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11828 ;;
11829 esac
11830 dynamic_linker='Win32 ld.exe'
11831 ;;
11832
11833 *,cl* | *,icl*)
11834 # Native MSVC or ICC
11835 libname_spec='$name'
11836 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11837 library_names_spec='$libname.dll.lib'
11838
11839 case $build_os in
11840 mingw*)
11841 sys_lib_search_path_spec=
11842 lt_save_ifs=$IFS
11843 IFS=';'
11844 for lt_path in $LIB
11845 do
11846 IFS=$lt_save_ifs
11847 # Let DOS variable expansion print the short 8.3 style file name.
11848 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11849 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11850 done
11851 IFS=$lt_save_ifs
11852 # Convert to MSYS style.
11853 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11854 ;;
11855 cygwin*)
11856 # Convert to unix form, then to dos form, then back to unix form
11857 # but this time dos style (no spaces!) so that the unix form looks
11858 # like /cygdrive/c/PROGRA~1:/cygdr...
11859 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11860 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11861 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11862 ;;
11863 *)
11864 sys_lib_search_path_spec=$LIB
11865 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11866 # It is most probably a Windows format PATH.
11867 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11868 else
11869 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11870 fi
11871 # FIXME: find the short name or the path components, as spaces are
11872 # common. (e.g. "Program Files" -> "PROGRA~1")
11873 ;;
11874 esac
11875
11876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11877 postinstall_cmds='base_file=`basename \$file`~
11878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11879 dldir=$destdir/`dirname \$dlpath`~
11880 test -d \$dldir || mkdir -p \$dldir~
11881 $install_prog $dir/$dlname \$dldir/$dlname'
11882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11883 dlpath=$dir/\$dldll~
11884 $RM \$dlpath'
11885 shlibpath_overrides_runpath=yes
11886 dynamic_linker='Win32 link.exe'
11887 ;;
11888
11889 *)
11890 # Assume MSVC and ICC wrapper
11891 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11892 dynamic_linker='Win32 ld.exe'
11893 ;;
11894 esac
11895 # FIXME: first we should search . and the directory the executable is in
11896 shlibpath_var=PATH
11897 ;;
11898
11899 darwin* | rhapsody*)
11900 dynamic_linker="$host_os dyld"
11901 version_type=darwin
11902 need_lib_prefix=no
11903 need_version=no
11904 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11905 soname_spec='$libname$release$major$shared_ext'
11906 shlibpath_overrides_runpath=yes
11907 shlibpath_var=DYLD_LIBRARY_PATH
11908 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11909
11910 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11911 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11912 ;;
11913
11914 dgux*)
11915 version_type=linux # correct to gnu/linux during the next big refactor
11916 need_lib_prefix=no
11917 need_version=no
11918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11919 soname_spec='$libname$release$shared_ext$major'
11920 shlibpath_var=LD_LIBRARY_PATH
11921 ;;
11922
11923 freebsd* | dragonfly* | midnightbsd*)
11924 # DragonFly does not have aout. When/if they implement a new
11925 # versioning mechanism, adjust this.
11926 if test -x /usr/bin/objformat; then
11927 objformat=`/usr/bin/objformat`
11928 else
11929 case $host_os in
11930 freebsd[23].*) objformat=aout ;;
11931 *) objformat=elf ;;
11932 esac
11933 fi
11934 version_type=freebsd-$objformat
11935 case $version_type in
11936 freebsd-elf*)
11937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11938 soname_spec='$libname$release$shared_ext$major'
11939 need_version=no
11940 need_lib_prefix=no
11941 ;;
11942 freebsd-*)
11943 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11944 need_version=yes
11945 ;;
11946 esac
11947 shlibpath_var=LD_LIBRARY_PATH
11948 case $host_os in
11949 freebsd2.*)
11950 shlibpath_overrides_runpath=yes
11951 ;;
11952 freebsd3.[01]* | freebsdelf3.[01]*)
11953 shlibpath_overrides_runpath=yes
11954 hardcode_into_libs=yes
11955 ;;
11956 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11957 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11958 shlibpath_overrides_runpath=no
11959 hardcode_into_libs=yes
11960 ;;
11961 *) # from 4.6 on, and DragonFly
11962 shlibpath_overrides_runpath=yes
11963 hardcode_into_libs=yes
11964 ;;
11965 esac
11966 ;;
11967
11968 haiku*)
11969 version_type=linux # correct to gnu/linux during the next big refactor
11970 need_lib_prefix=no
11971 need_version=no
11972 dynamic_linker="$host_os runtime_loader"
11973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974 soname_spec='$libname$release$shared_ext$major'
11975 shlibpath_var=LIBRARY_PATH
11976 shlibpath_overrides_runpath=no
11977 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11978 hardcode_into_libs=yes
11979 ;;
11980
11981 hpux9* | hpux10* | hpux11*)
11982 # Give a soname corresponding to the major version so that dld.sl refuses to
11983 # link against other versions.
11984 version_type=sunos
11985 need_lib_prefix=no
11986 need_version=no
11987 case $host_cpu in
11988 ia64*)
11989 shrext_cmds='.so'
11990 hardcode_into_libs=yes
11991 dynamic_linker="$host_os dld.so"
11992 shlibpath_var=LD_LIBRARY_PATH
11993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11995 soname_spec='$libname$release$shared_ext$major'
11996 if test 32 = "$HPUX_IA64_MODE"; then
11997 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11998 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11999 else
12000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12001 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12002 fi
12003 ;;
12004 hppa*64*)
12005 shrext_cmds='.sl'
12006 hardcode_into_libs=yes
12007 dynamic_linker="$host_os dld.sl"
12008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12011 soname_spec='$libname$release$shared_ext$major'
12012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12014 ;;
12015 *)
12016 shrext_cmds='.sl'
12017 dynamic_linker="$host_os dld.sl"
12018 shlibpath_var=SHLIB_PATH
12019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021 soname_spec='$libname$release$shared_ext$major'
12022 ;;
12023 esac
12024 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12025 postinstall_cmds='chmod 555 $lib'
12026 # or fails outright, so override atomically:
12027 install_override_mode=555
12028 ;;
12029
12030 interix[3-9]*)
12031 version_type=linux # correct to gnu/linux during the next big refactor
12032 need_lib_prefix=no
12033 need_version=no
12034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12035 soname_spec='$libname$release$shared_ext$major'
12036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12037 shlibpath_var=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath=no
12039 hardcode_into_libs=yes
12040 ;;
12041
12042 irix5* | irix6* | nonstopux*)
12043 case $host_os in
12044 nonstopux*) version_type=nonstopux ;;
12045 *)
12046 if test yes = "$lt_cv_prog_gnu_ld"; then
12047 version_type=linux # correct to gnu/linux during the next big refactor
12048 else
12049 version_type=irix
12050 fi ;;
12051 esac
12052 need_lib_prefix=no
12053 need_version=no
12054 soname_spec='$libname$release$shared_ext$major'
12055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12056 case $host_os in
12057 irix5* | nonstopux*)
12058 libsuff= shlibsuff=
12059 ;;
12060 *)
12061 case $LD in # libtool.m4 will add one of these switches to LD
12062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12063 libsuff= shlibsuff= libmagic=32-bit;;
12064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12065 libsuff=32 shlibsuff=N32 libmagic=N32;;
12066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12068 *) libsuff= shlibsuff= libmagic=never-match;;
12069 esac
12070 ;;
12071 esac
12072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12073 shlibpath_overrides_runpath=no
12074 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12075 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12076 hardcode_into_libs=yes
12077 ;;
12078
12079 # No shared lib support for Linux oldld, aout, or coff.
12080 linux*oldld* | linux*aout* | linux*coff*)
12081 dynamic_linker=no
12082 ;;
12083
12084 linux*android*)
12085 version_type=none # Android doesn't support versioned libraries.
12086 need_lib_prefix=no
12087 need_version=no
12088 library_names_spec='$libname$release$shared_ext'
12089 soname_spec='$libname$release$shared_ext'
12090 finish_cmds=
12091 shlibpath_var=LD_LIBRARY_PATH
12092 shlibpath_overrides_runpath=yes
12093
12094 # This implies no fast_install, which is unacceptable.
12095 # Some rework will be needed to allow for fast_install
12096 # before this can be enabled.
12097 hardcode_into_libs=yes
12098
12099 dynamic_linker='Android linker'
12100 # Don't embed -rpath directories since the linker doesn't support them.
12101 hardcode_libdir_flag_spec='-L$libdir'
12102 ;;
12103
12104 # This must be glibc/ELF.
12105 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12106 version_type=linux # correct to gnu/linux during the next big refactor
12107 need_lib_prefix=no
12108 need_version=no
12109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12110 soname_spec='$libname$release$shared_ext$major'
12111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12112 shlibpath_var=LD_LIBRARY_PATH
12113 shlibpath_overrides_runpath=no
12114
12115 # Some binutils ld are patched to set DT_RUNPATH
12116 if test ${lt_cv_shlibpath_overrides_runpath+y}
12117 then :
12118 printf %s "(cached) " >&6
12119 else case e in #(
12120 e) lt_cv_shlibpath_overrides_runpath=no
12121 save_LDFLAGS=$LDFLAGS
12122 save_libdir=$libdir
12123 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12124 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127
12128 int
12129 main (void)
12130 {
12131
12132 ;
12133 return 0;
12134 }
12135 _ACEOF
12136 if ac_fn_c_try_link "$LINENO"
12137 then :
12138 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12139 then :
12140 lt_cv_shlibpath_overrides_runpath=yes
12141 fi
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LDFLAGS=$save_LDFLAGS
12146 libdir=$save_libdir
12147 ;;
12148 esac
12149 fi
12150
12151 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12152
12153 # This implies no fast_install, which is unacceptable.
12154 # Some rework will be needed to allow for fast_install
12155 # before this can be enabled.
12156 hardcode_into_libs=yes
12157
12158 # Add ABI-specific directories to the system library path.
12159 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12160
12161 # Ideally, we could use ldconfig to report *all* directores which are
12162 # searched for libraries, however this is still not possible. Aside from not
12163 # being certain /sbin/ldconfig is available, command
12164 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12165 # even though it is searched at run-time. Try to do the best guess by
12166 # appending ld.so.conf contents (and includes) to the search path.
12167 if test -f /etc/ld.so.conf; then
12168 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' ' '`
12169 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12170 fi
12171
12172 # We used to test for /lib/ld.so.1 and disable shared libraries on
12173 # powerpc, because MkLinux only supported shared libraries with the
12174 # GNU dynamic linker. Since this was broken with cross compilers,
12175 # most powerpc-linux boxes support dynamic linking these days and
12176 # people can always --disable-shared, the test was removed, and we
12177 # assume the GNU/Linux dynamic linker is in use.
12178 dynamic_linker='GNU/Linux ld.so'
12179 ;;
12180
12181 netbsd*)
12182 version_type=sunos
12183 need_lib_prefix=no
12184 need_version=no
12185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12186 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12188 dynamic_linker='NetBSD (a.out) ld.so'
12189 else
12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12191 soname_spec='$libname$release$shared_ext$major'
12192 dynamic_linker='NetBSD ld.elf_so'
12193 fi
12194 shlibpath_var=LD_LIBRARY_PATH
12195 shlibpath_overrides_runpath=yes
12196 hardcode_into_libs=yes
12197 ;;
12198
12199 newsos6)
12200 version_type=linux # correct to gnu/linux during the next big refactor
12201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12202 shlibpath_var=LD_LIBRARY_PATH
12203 shlibpath_overrides_runpath=yes
12204 ;;
12205
12206 *nto* | *qnx*)
12207 version_type=qnx
12208 need_lib_prefix=no
12209 need_version=no
12210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12211 soname_spec='$libname$release$shared_ext$major'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 shlibpath_overrides_runpath=no
12214 hardcode_into_libs=yes
12215 dynamic_linker='ldqnx.so'
12216 ;;
12217
12218 openbsd* | bitrig*)
12219 version_type=sunos
12220 sys_lib_dlsearch_path_spec=/usr/lib
12221 need_lib_prefix=no
12222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12223 need_version=no
12224 else
12225 need_version=yes
12226 fi
12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=yes
12231 ;;
12232
12233 os2*)
12234 libname_spec='$name'
12235 version_type=windows
12236 shrext_cmds=.dll
12237 need_version=no
12238 need_lib_prefix=no
12239 # OS/2 can only load a DLL with a base name of 8 characters or less.
12240 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12241 v=$($ECHO $release$versuffix | tr -d .-);
12242 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12243 $ECHO $n$v`$shared_ext'
12244 library_names_spec='${libname}_dll.$libext'
12245 dynamic_linker='OS/2 ld.exe'
12246 shlibpath_var=BEGINLIBPATH
12247 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12249 postinstall_cmds='base_file=`basename \$file`~
12250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12251 dldir=$destdir/`dirname \$dlpath`~
12252 test -d \$dldir || mkdir -p \$dldir~
12253 $install_prog $dir/$dlname \$dldir/$dlname~
12254 chmod a+x \$dldir/$dlname~
12255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12257 fi'
12258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12259 dlpath=$dir/\$dldll~
12260 $RM \$dlpath'
12261 ;;
12262
12263 osf3* | osf4* | osf5*)
12264 version_type=osf
12265 need_lib_prefix=no
12266 need_version=no
12267 soname_spec='$libname$release$shared_ext$major'
12268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12272 ;;
12273
12274 rdos*)
12275 dynamic_linker=no
12276 ;;
12277
12278 solaris*)
12279 version_type=linux # correct to gnu/linux during the next big refactor
12280 need_lib_prefix=no
12281 need_version=no
12282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12283 soname_spec='$libname$release$shared_ext$major'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12286 hardcode_into_libs=yes
12287 # ldd complains unless libraries are executable
12288 postinstall_cmds='chmod +x $lib'
12289 ;;
12290
12291 sunos4*)
12292 version_type=sunos
12293 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=yes
12297 if test yes = "$with_gnu_ld"; then
12298 need_lib_prefix=no
12299 fi
12300 need_version=yes
12301 ;;
12302
12303 sysv4 | sysv4.3*)
12304 version_type=linux # correct to gnu/linux during the next big refactor
12305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12306 soname_spec='$libname$release$shared_ext$major'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 case $host_vendor in
12309 sni)
12310 shlibpath_overrides_runpath=no
12311 need_lib_prefix=no
12312 runpath_var=LD_RUN_PATH
12313 ;;
12314 siemens)
12315 need_lib_prefix=no
12316 ;;
12317 motorola)
12318 need_lib_prefix=no
12319 need_version=no
12320 shlibpath_overrides_runpath=no
12321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12322 ;;
12323 esac
12324 ;;
12325
12326 sysv4*MP*)
12327 if test -d /usr/nec; then
12328 version_type=linux # correct to gnu/linux during the next big refactor
12329 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12330 soname_spec='$libname$shared_ext.$major'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 fi
12333 ;;
12334
12335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12336 version_type=sco
12337 need_lib_prefix=no
12338 need_version=no
12339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12340 soname_spec='$libname$release$shared_ext$major'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 shlibpath_overrides_runpath=yes
12343 hardcode_into_libs=yes
12344 if test yes = "$with_gnu_ld"; then
12345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12346 else
12347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12348 case $host_os in
12349 sco3.2v5*)
12350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12351 ;;
12352 esac
12353 fi
12354 sys_lib_dlsearch_path_spec='/usr/lib'
12355 ;;
12356
12357 tpf*)
12358 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12359 version_type=linux # correct to gnu/linux during the next big refactor
12360 need_lib_prefix=no
12361 need_version=no
12362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12363 shlibpath_var=LD_LIBRARY_PATH
12364 shlibpath_overrides_runpath=no
12365 hardcode_into_libs=yes
12366 ;;
12367
12368 uts4*)
12369 version_type=linux # correct to gnu/linux during the next big refactor
12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371 soname_spec='$libname$release$shared_ext$major'
12372 shlibpath_var=LD_LIBRARY_PATH
12373 ;;
12374
12375 *)
12376 dynamic_linker=no
12377 ;;
12378 esac
12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12380 printf "%s\n" "$dynamic_linker" >&6; }
12381 test no = "$dynamic_linker" && can_build_shared=no
12382
12383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12384 if test yes = "$GCC"; then
12385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12386 fi
12387
12388 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12389 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12390 fi
12391
12392 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12393 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12394 fi
12395
12396 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12397 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12398
12399 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12400 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12401
12402 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12403 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12502 printf %s "checking how to hardcode library paths into programs... " >&6; }
12503 hardcode_action=
12504 if test -n "$hardcode_libdir_flag_spec" ||
12505 test -n "$runpath_var" ||
12506 test yes = "$hardcode_automatic"; then
12507
12508 # We can hardcode non-existent directories.
12509 if test no != "$hardcode_direct" &&
12510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12511 # have to relink, otherwise we might link with an installed library
12512 # when we should be linking with a yet-to-be-installed one
12513 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12514 test no != "$hardcode_minus_L"; then
12515 # Linking always hardcodes the temporary library directory.
12516 hardcode_action=relink
12517 else
12518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12519 hardcode_action=immediate
12520 fi
12521 else
12522 # We cannot hardcode anything, or else we can only hardcode existing
12523 # directories.
12524 hardcode_action=unsupported
12525 fi
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12527 printf "%s\n" "$hardcode_action" >&6; }
12528
12529 if test relink = "$hardcode_action" ||
12530 test yes = "$inherit_rpath"; then
12531 # Fast installation is not supported
12532 enable_fast_install=no
12533 elif test yes = "$shlibpath_overrides_runpath" ||
12534 test no = "$enable_shared"; then
12535 # Fast installation is not necessary
12536 enable_fast_install=needless
12537 fi
12538
12539
12540
12541
12542
12543
12544 if test yes != "$enable_dlopen"; then
12545 enable_dlopen=unknown
12546 enable_dlopen_self=unknown
12547 enable_dlopen_self_static=unknown
12548 else
12549 lt_cv_dlopen=no
12550 lt_cv_dlopen_libs=
12551
12552 case $host_os in
12553 beos*)
12554 lt_cv_dlopen=load_add_on
12555 lt_cv_dlopen_libs=
12556 lt_cv_dlopen_self=yes
12557 ;;
12558
12559 mingw* | pw32* | cegcc*)
12560 lt_cv_dlopen=LoadLibrary
12561 lt_cv_dlopen_libs=
12562 ;;
12563
12564 cygwin*)
12565 lt_cv_dlopen=dlopen
12566 lt_cv_dlopen_libs=
12567 ;;
12568
12569 darwin*)
12570 # if libdl is installed we need to link against it
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12572 printf %s "checking for dlopen in -ldl... " >&6; }
12573 if test ${ac_cv_lib_dl_dlopen+y}
12574 then :
12575 printf %s "(cached) " >&6
12576 else case e in #(
12577 e) ac_check_lib_save_LIBS=$LIBS
12578 LIBS="-ldl $LIBS"
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581
12582 /* Override any GCC internal prototype to avoid an error.
12583 Use char because int might match the return type of a GCC
12584 builtin and then its argument prototype would still apply.
12585 The 'extern "C"' is for builds by C++ compilers;
12586 although this is not generally supported in C code supporting it here
12587 has little cost and some practical benefit (sr 110532). */
12588 #ifdef __cplusplus
12589 extern "C"
12590 #endif
12591 char dlopen (void);
12592 int
12593 main (void)
12594 {
12595 return dlopen ();
12596 ;
12597 return 0;
12598 }
12599 _ACEOF
12600 if ac_fn_c_try_link "$LINENO"
12601 then :
12602 ac_cv_lib_dl_dlopen=yes
12603 else case e in #(
12604 e) ac_cv_lib_dl_dlopen=no ;;
12605 esac
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS ;;
12610 esac
12611 fi
12612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12613 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12614 if test "x$ac_cv_lib_dl_dlopen" = xyes
12615 then :
12616 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12617 else case e in #(
12618 e)
12619 lt_cv_dlopen=dyld
12620 lt_cv_dlopen_libs=
12621 lt_cv_dlopen_self=yes
12622 ;;
12623 esac
12624 fi
12625
12626 ;;
12627
12628 tpf*)
12629 # Don't try to run any link tests for TPF. We know it's impossible
12630 # because TPF is a cross-compiler, and we know how we open DSOs.
12631 lt_cv_dlopen=dlopen
12632 lt_cv_dlopen_libs=
12633 lt_cv_dlopen_self=no
12634 ;;
12635
12636 *)
12637 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12638 if test "x$ac_cv_func_shl_load" = xyes
12639 then :
12640 lt_cv_dlopen=shl_load
12641 else case e in #(
12642 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12643 printf %s "checking for shl_load in -ldld... " >&6; }
12644 if test ${ac_cv_lib_dld_shl_load+y}
12645 then :
12646 printf %s "(cached) " >&6
12647 else case e in #(
12648 e) ac_check_lib_save_LIBS=$LIBS
12649 LIBS="-ldld $LIBS"
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652
12653 /* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply.
12656 The 'extern "C"' is for builds by C++ compilers;
12657 although this is not generally supported in C code supporting it here
12658 has little cost and some practical benefit (sr 110532). */
12659 #ifdef __cplusplus
12660 extern "C"
12661 #endif
12662 char shl_load (void);
12663 int
12664 main (void)
12665 {
12666 return shl_load ();
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"
12672 then :
12673 ac_cv_lib_dld_shl_load=yes
12674 else case e in #(
12675 e) ac_cv_lib_dld_shl_load=no ;;
12676 esac
12677 fi
12678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS ;;
12681 esac
12682 fi
12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12684 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12685 if test "x$ac_cv_lib_dld_shl_load" = xyes
12686 then :
12687 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12688 else case e in #(
12689 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12690 if test "x$ac_cv_func_dlopen" = xyes
12691 then :
12692 lt_cv_dlopen=dlopen
12693 else case e in #(
12694 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12695 printf %s "checking for dlopen in -ldl... " >&6; }
12696 if test ${ac_cv_lib_dl_dlopen+y}
12697 then :
12698 printf %s "(cached) " >&6
12699 else case e in #(
12700 e) ac_check_lib_save_LIBS=$LIBS
12701 LIBS="-ldl $LIBS"
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704
12705 /* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply.
12708 The 'extern "C"' is for builds by C++ compilers;
12709 although this is not generally supported in C code supporting it here
12710 has little cost and some practical benefit (sr 110532). */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char dlopen (void);
12715 int
12716 main (void)
12717 {
12718 return dlopen ();
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"
12724 then :
12725 ac_cv_lib_dl_dlopen=yes
12726 else case e in #(
12727 e) ac_cv_lib_dl_dlopen=no ;;
12728 esac
12729 fi
12730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12731 conftest$ac_exeext conftest.$ac_ext
12732 LIBS=$ac_check_lib_save_LIBS ;;
12733 esac
12734 fi
12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12736 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12737 if test "x$ac_cv_lib_dl_dlopen" = xyes
12738 then :
12739 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12740 else case e in #(
12741 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12742 printf %s "checking for dlopen in -lsvld... " >&6; }
12743 if test ${ac_cv_lib_svld_dlopen+y}
12744 then :
12745 printf %s "(cached) " >&6
12746 else case e in #(
12747 e) ac_check_lib_save_LIBS=$LIBS
12748 LIBS="-lsvld $LIBS"
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751
12752 /* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply.
12755 The 'extern "C"' is for builds by C++ compilers;
12756 although this is not generally supported in C code supporting it here
12757 has little cost and some practical benefit (sr 110532). */
12758 #ifdef __cplusplus
12759 extern "C"
12760 #endif
12761 char dlopen (void);
12762 int
12763 main (void)
12764 {
12765 return dlopen ();
12766 ;
12767 return 0;
12768 }
12769 _ACEOF
12770 if ac_fn_c_try_link "$LINENO"
12771 then :
12772 ac_cv_lib_svld_dlopen=yes
12773 else case e in #(
12774 e) ac_cv_lib_svld_dlopen=no ;;
12775 esac
12776 fi
12777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS ;;
12780 esac
12781 fi
12782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12783 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12784 if test "x$ac_cv_lib_svld_dlopen" = xyes
12785 then :
12786 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12787 else case e in #(
12788 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12789 printf %s "checking for dld_link in -ldld... " >&6; }
12790 if test ${ac_cv_lib_dld_dld_link+y}
12791 then :
12792 printf %s "(cached) " >&6
12793 else case e in #(
12794 e) ac_check_lib_save_LIBS=$LIBS
12795 LIBS="-ldld $LIBS"
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798
12799 /* Override any GCC internal prototype to avoid an error.
12800 Use char because int might match the return type of a GCC
12801 builtin and then its argument prototype would still apply.
12802 The 'extern "C"' is for builds by C++ compilers;
12803 although this is not generally supported in C code supporting it here
12804 has little cost and some practical benefit (sr 110532). */
12805 #ifdef __cplusplus
12806 extern "C"
12807 #endif
12808 char dld_link (void);
12809 int
12810 main (void)
12811 {
12812 return dld_link ();
12813 ;
12814 return 0;
12815 }
12816 _ACEOF
12817 if ac_fn_c_try_link "$LINENO"
12818 then :
12819 ac_cv_lib_dld_dld_link=yes
12820 else case e in #(
12821 e) ac_cv_lib_dld_dld_link=no ;;
12822 esac
12823 fi
12824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12825 conftest$ac_exeext conftest.$ac_ext
12826 LIBS=$ac_check_lib_save_LIBS ;;
12827 esac
12828 fi
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12830 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12831 if test "x$ac_cv_lib_dld_dld_link" = xyes
12832 then :
12833 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12834 fi
12835
12836 ;;
12837 esac
12838 fi
12839
12840 ;;
12841 esac
12842 fi
12843
12844 ;;
12845 esac
12846 fi
12847
12848 ;;
12849 esac
12850 fi
12851
12852 ;;
12853 esac
12854 fi
12855
12856 ;;
12857 esac
12858
12859 if test no = "$lt_cv_dlopen"; then
12860 enable_dlopen=no
12861 else
12862 enable_dlopen=yes
12863 fi
12864
12865 case $lt_cv_dlopen in
12866 dlopen)
12867 save_CPPFLAGS=$CPPFLAGS
12868 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12869
12870 save_LDFLAGS=$LDFLAGS
12871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12872
12873 save_LIBS=$LIBS
12874 LIBS="$lt_cv_dlopen_libs $LIBS"
12875
12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12877 printf %s "checking whether a program can dlopen itself... " >&6; }
12878 if test ${lt_cv_dlopen_self+y}
12879 then :
12880 printf %s "(cached) " >&6
12881 else case e in #(
12882 e) if test yes = "$cross_compiling"; then :
12883 lt_cv_dlopen_self=cross
12884 else
12885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12886 lt_status=$lt_dlunknown
12887 cat > conftest.$ac_ext <<_LT_EOF
12888 #line $LINENO "configure"
12889 #include "confdefs.h"
12890
12891 #if HAVE_DLFCN_H
12892 #include <dlfcn.h>
12893 #endif
12894
12895 #include <stdio.h>
12896
12897 #ifdef RTLD_GLOBAL
12898 # define LT_DLGLOBAL RTLD_GLOBAL
12899 #else
12900 # ifdef DL_GLOBAL
12901 # define LT_DLGLOBAL DL_GLOBAL
12902 # else
12903 # define LT_DLGLOBAL 0
12904 # endif
12905 #endif
12906
12907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12908 find out it does not work in some platform. */
12909 #ifndef LT_DLLAZY_OR_NOW
12910 # ifdef RTLD_LAZY
12911 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12912 # else
12913 # ifdef DL_LAZY
12914 # define LT_DLLAZY_OR_NOW DL_LAZY
12915 # else
12916 # ifdef RTLD_NOW
12917 # define LT_DLLAZY_OR_NOW RTLD_NOW
12918 # else
12919 # ifdef DL_NOW
12920 # define LT_DLLAZY_OR_NOW DL_NOW
12921 # else
12922 # define LT_DLLAZY_OR_NOW 0
12923 # endif
12924 # endif
12925 # endif
12926 # endif
12927 #endif
12928
12929 /* When -fvisibility=hidden is used, assume the code has been annotated
12930 correspondingly for the symbols needed. */
12931 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12932 int fnord () __attribute__((visibility("default")));
12933 #endif
12934
12935 int fnord () { return 42; }
12936 int main ()
12937 {
12938 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12939 int status = $lt_dlunknown;
12940
12941 if (self)
12942 {
12943 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12944 else
12945 {
12946 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12947 else puts (dlerror ());
12948 }
12949 /* dlclose (self); */
12950 }
12951 else
12952 puts (dlerror ());
12953
12954 return status;
12955 }
12956 _LT_EOF
12957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12958 (eval $ac_link) 2>&5
12959 ac_status=$?
12960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12961 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12962 (./conftest; exit; ) >&5 2>/dev/null
12963 lt_status=$?
12964 case x$lt_status in
12965 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12966 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12967 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12968 esac
12969 else :
12970 # compilation failed
12971 lt_cv_dlopen_self=no
12972 fi
12973 fi
12974 rm -fr conftest*
12975
12976 ;;
12977 esac
12978 fi
12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12980 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12981
12982 if test yes = "$lt_cv_dlopen_self"; then
12983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12985 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12986 if test ${lt_cv_dlopen_self_static+y}
12987 then :
12988 printf %s "(cached) " >&6
12989 else case e in #(
12990 e) if test yes = "$cross_compiling"; then :
12991 lt_cv_dlopen_self_static=cross
12992 else
12993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12994 lt_status=$lt_dlunknown
12995 cat > conftest.$ac_ext <<_LT_EOF
12996 #line $LINENO "configure"
12997 #include "confdefs.h"
12998
12999 #if HAVE_DLFCN_H
13000 #include <dlfcn.h>
13001 #endif
13002
13003 #include <stdio.h>
13004
13005 #ifdef RTLD_GLOBAL
13006 # define LT_DLGLOBAL RTLD_GLOBAL
13007 #else
13008 # ifdef DL_GLOBAL
13009 # define LT_DLGLOBAL DL_GLOBAL
13010 # else
13011 # define LT_DLGLOBAL 0
13012 # endif
13013 #endif
13014
13015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13016 find out it does not work in some platform. */
13017 #ifndef LT_DLLAZY_OR_NOW
13018 # ifdef RTLD_LAZY
13019 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13020 # else
13021 # ifdef DL_LAZY
13022 # define LT_DLLAZY_OR_NOW DL_LAZY
13023 # else
13024 # ifdef RTLD_NOW
13025 # define LT_DLLAZY_OR_NOW RTLD_NOW
13026 # else
13027 # ifdef DL_NOW
13028 # define LT_DLLAZY_OR_NOW DL_NOW
13029 # else
13030 # define LT_DLLAZY_OR_NOW 0
13031 # endif
13032 # endif
13033 # endif
13034 # endif
13035 #endif
13036
13037 /* When -fvisibility=hidden is used, assume the code has been annotated
13038 correspondingly for the symbols needed. */
13039 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13040 int fnord () __attribute__((visibility("default")));
13041 #endif
13042
13043 int fnord () { return 42; }
13044 int main ()
13045 {
13046 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13047 int status = $lt_dlunknown;
13048
13049 if (self)
13050 {
13051 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13052 else
13053 {
13054 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13055 else puts (dlerror ());
13056 }
13057 /* dlclose (self); */
13058 }
13059 else
13060 puts (dlerror ());
13061
13062 return status;
13063 }
13064 _LT_EOF
13065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13066 (eval $ac_link) 2>&5
13067 ac_status=$?
13068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13069 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13070 (./conftest; exit; ) >&5 2>/dev/null
13071 lt_status=$?
13072 case x$lt_status in
13073 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13074 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13075 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13076 esac
13077 else :
13078 # compilation failed
13079 lt_cv_dlopen_self_static=no
13080 fi
13081 fi
13082 rm -fr conftest*
13083
13084 ;;
13085 esac
13086 fi
13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13088 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13089 fi
13090
13091 CPPFLAGS=$save_CPPFLAGS
13092 LDFLAGS=$save_LDFLAGS
13093 LIBS=$save_LIBS
13094 ;;
13095 esac
13096
13097 case $lt_cv_dlopen_self in
13098 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13099 *) enable_dlopen_self=unknown ;;
13100 esac
13101
13102 case $lt_cv_dlopen_self_static in
13103 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13104 *) enable_dlopen_self_static=unknown ;;
13105 esac
13106 fi
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124 striplib=
13125 old_striplib=
13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13127 printf %s "checking whether stripping libraries is possible... " >&6; }
13128 if test -z "$STRIP"; then
13129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 printf "%s\n" "no" >&6; }
13131 else
13132 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13133 old_striplib="$STRIP --strip-debug"
13134 striplib="$STRIP --strip-unneeded"
13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13136 printf "%s\n" "yes" >&6; }
13137 else
13138 case $host_os in
13139 darwin*)
13140 # FIXME - insert some real tests, host_os isn't really good enough
13141 striplib="$STRIP -x"
13142 old_striplib="$STRIP -S"
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144 printf "%s\n" "yes" >&6; }
13145 ;;
13146 freebsd*)
13147 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13148 old_striplib="$STRIP --strip-debug"
13149 striplib="$STRIP --strip-unneeded"
13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13151 printf "%s\n" "yes" >&6; }
13152 else
13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 printf "%s\n" "no" >&6; }
13155 fi
13156 ;;
13157 *)
13158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 printf "%s\n" "no" >&6; }
13160 ;;
13161 esac
13162 fi
13163 fi
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176 # Report what library types will actually be built
13177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13178 printf %s "checking if libtool supports shared libraries... " >&6; }
13179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13180 printf "%s\n" "$can_build_shared" >&6; }
13181
13182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13183 printf %s "checking whether to build shared libraries... " >&6; }
13184 test no = "$can_build_shared" && enable_shared=no
13185
13186 # On AIX, shared libraries and static libraries use the same namespace, and
13187 # are all built from PIC.
13188 case $host_os in
13189 aix3*)
13190 test yes = "$enable_shared" && enable_static=no
13191 if test -n "$RANLIB"; then
13192 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13193 postinstall_cmds='$RANLIB $lib'
13194 fi
13195 ;;
13196
13197 aix[4-9]*)
13198 if test ia64 != "$host_cpu"; then
13199 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13200 yes,aix,yes) ;; # shared object as lib.so file only
13201 yes,svr4,*) ;; # shared object as lib.so archive member only
13202 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13203 esac
13204 fi
13205 ;;
13206 esac
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13208 printf "%s\n" "$enable_shared" >&6; }
13209
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13211 printf %s "checking whether to build static libraries... " >&6; }
13212 # Make sure either enable_shared or enable_static is yes.
13213 test yes = "$enable_shared" || enable_static=yes
13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13215 printf "%s\n" "$enable_static" >&6; }
13216
13217
13218
13219
13220 fi
13221 ac_ext=c
13222 ac_cpp='$CPP $CPPFLAGS'
13223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13226
13227 CC=$lt_save_CC
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243 ac_config_commands="$ac_config_commands libtool"
13244
13245
13246
13247
13248 # Only expand once:
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13260 if test -n "$ac_tool_prefix"; then
13261 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13262 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 printf %s "checking for $ac_word... " >&6; }
13265 if test ${ac_cv_path_PKG_CONFIG+y}
13266 then :
13267 printf %s "(cached) " >&6
13268 else case e in #(
13269 e) case $PKG_CONFIG in
13270 [\\/]* | ?:[\\/]*)
13271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13272 ;;
13273 *)
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277 IFS=$as_save_IFS
13278 case $as_dir in #(((
13279 '') as_dir=./ ;;
13280 */) ;;
13281 *) as_dir=$as_dir/ ;;
13282 esac
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13285 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13287 break 2
13288 fi
13289 done
13290 done
13291 IFS=$as_save_IFS
13292
13293 ;;
13294 esac ;;
13295 esac
13296 fi
13297 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13298 if test -n "$PKG_CONFIG"; then
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13300 printf "%s\n" "$PKG_CONFIG" >&6; }
13301 else
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303 printf "%s\n" "no" >&6; }
13304 fi
13305
13306
13307 fi
13308 if test -z "$ac_cv_path_PKG_CONFIG"; then
13309 ac_pt_PKG_CONFIG=$PKG_CONFIG
13310 # Extract the first word of "pkg-config", so it can be a program name with args.
13311 set dummy pkg-config; ac_word=$2
13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313 printf %s "checking for $ac_word... " >&6; }
13314 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13315 then :
13316 printf %s "(cached) " >&6
13317 else case e in #(
13318 e) case $ac_pt_PKG_CONFIG in
13319 [\\/]* | ?:[\\/]*)
13320 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13321 ;;
13322 *)
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13325 do
13326 IFS=$as_save_IFS
13327 case $as_dir in #(((
13328 '') as_dir=./ ;;
13329 */) ;;
13330 *) as_dir=$as_dir/ ;;
13331 esac
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13334 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13336 break 2
13337 fi
13338 done
13339 done
13340 IFS=$as_save_IFS
13341
13342 ;;
13343 esac ;;
13344 esac
13345 fi
13346 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13347 if test -n "$ac_pt_PKG_CONFIG"; then
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13349 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13350 else
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 printf "%s\n" "no" >&6; }
13353 fi
13354
13355 if test "x$ac_pt_PKG_CONFIG" = x; then
13356 PKG_CONFIG=""
13357 else
13358 case $cross_compiling:$ac_tool_warned in
13359 yes:)
13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13361 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13362 ac_tool_warned=yes ;;
13363 esac
13364 PKG_CONFIG=$ac_pt_PKG_CONFIG
13365 fi
13366 else
13367 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13368 fi
13369
13370 fi
13371 if test -n "$PKG_CONFIG"; then
13372 _pkg_min_version=0.9.0
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13374 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13375 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13377 printf "%s\n" "yes" >&6; }
13378 else
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 printf "%s\n" "no" >&6; }
13381 PKG_CONFIG=""
13382 fi
13383 fi
13384
13385
13386 build_linux=no
13387 build_sunos=no
13388
13389 case "${host_os}" in
13390 linux*)
13391 build_linux=yes
13392 ;;
13393 solaris2*)
13394 build_sunos=yes
13395 ;;
13396 *)
13397 as_fn_error $? "\"OS ${host_os} not supported\"" "$LINENO" 5
13398 ;;
13399 esac
13400
13401 if test "x${build_linux}" = "xyes" ; then
13402 LINUX_TRUE=
13403 LINUX_FALSE='#'
13404 else
13405 LINUX_TRUE='#'
13406 LINUX_FALSE=
13407 fi
13408
13409 if test "x${build_sunos}" = "xyes" ; then
13410 SUNOS_TRUE=
13411 SUNOS_FALSE='#'
13412 else
13413 SUNOS_TRUE='#'
13414 SUNOS_FALSE=
13415 fi
13416
13417 if test -z "$SUNOS_TRUE"; then :
13418 CFLAGS="$CFLAGS -DSOL2 -DSRV4"
13419 fi
13420
13421 #
13422 # Checks for header files, these will set the HAVE_[FILE]_H macros in config.h
13423 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13424 if test "x$ac_cv_type__Bool" = xyes
13425 then :
13426
13427 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
13428
13429
13430 fi
13431
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
13433 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
13434 if test ${ac_cv_header_stdbool_h+y}
13435 then :
13436 printf %s "(cached) " >&6
13437 else case e in #(
13438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440 #include <stdbool.h>
13441
13442 /* "true" and "false" should be usable in #if expressions and
13443 integer constant expressions, and "bool" should be a valid
13444 type name.
13445
13446 Although C99 requires bool, true, and false to be macros,
13447 C23 and C++11 overrule that, so do not test for that.
13448 Although C99 requires __bool_true_false_are_defined and
13449 _Bool, C23 says they are obsolescent, so do not require
13450 them. */
13451
13452 #if !true
13453 #error "'true' is not true"
13454 #endif
13455 #if true != 1
13456 #error "'true' is not equal to 1"
13457 #endif
13458 char b[true == 1 ? 1 : -1];
13459 char c[true];
13460
13461 #if false
13462 #error "'false' is not false"
13463 #endif
13464 #if false != 0
13465 #error "'false' is not equal to 0"
13466 #endif
13467 char d[false == 0 ? 1 : -1];
13468
13469 enum { e = false, f = true, g = false * true, h = true * 256 };
13470
13471 char i[(bool) 0.5 == true ? 1 : -1];
13472 char j[(bool) 0.0 == false ? 1 : -1];
13473 char k[sizeof (bool) > 0 ? 1 : -1];
13474
13475 struct sb { bool s: 1; bool t; } s;
13476 char l[sizeof s.t > 0 ? 1 : -1];
13477
13478 /* The following fails for
13479 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13480 bool m[h];
13481 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
13482 char o[-1 - (bool) 0 < 0 ? 1 : -1];
13483 /* Catch a bug in an HP-UX C compiler. See
13484 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13485 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
13486 */
13487 bool p = true;
13488 bool *pp = &p;
13489
13490 int
13491 main (void)
13492 {
13493
13494 bool ps = &s;
13495 *pp |= p;
13496 *pp |= ! p;
13497
13498 /* Refer to every declared value, so they cannot be
13499 discarded as unused. */
13500 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
13501 + !l + !m + !n + !o + !p + !pp + !ps);
13502
13503 ;
13504 return 0;
13505 }
13506 _ACEOF
13507 if ac_fn_c_try_compile "$LINENO"
13508 then :
13509 ac_cv_header_stdbool_h=yes
13510 else case e in #(
13511 e) ac_cv_header_stdbool_h=no ;;
13512 esac
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13515 esac
13516 fi
13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13518 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
13519
13520 if test $ac_cv_header_stdbool_h = yes; then
13521
13522 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
13523
13524 fi
13525
13526 ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
13527 if test "x$ac_cv_header_asm_types_h" = xyes
13528 then :
13529 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
13530
13531 fi
13532 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
13533 if test "x$ac_cv_header_crypt_h" = xyes
13534 then :
13535 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
13536
13537 fi
13538 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
13539 if test "x$ac_cv_header_paths_h" = xyes
13540 then :
13541 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
13542
13543 fi
13544 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
13545 if test "x$ac_cv_header_shadow_h" = xyes
13546 then :
13547 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
13548
13549 fi
13550 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
13551 if test "x$ac_cv_header_stddef_h" = xyes
13552 then :
13553 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
13554
13555 fi
13556 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13557 if test "x$ac_cv_header_stdarg_h" = xyes
13558 then :
13559 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
13560
13561 fi
13562 ac_fn_c_check_header_compile "$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
13563 if test "x$ac_cv_header_sys_dlpi_h" = xyes
13564 then :
13565 printf "%s\n" "#define HAVE_SYS_DLPI_H 1" >>confdefs.h
13566
13567 fi
13568 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13569 if test "x$ac_cv_header_sys_ioctl_h" = xyes
13570 then :
13571 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
13572
13573 fi
13574 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13575 if test "x$ac_cv_header_sys_socket_h" = xyes
13576 then :
13577 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
13578
13579 fi
13580 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13581 if test "x$ac_cv_header_sys_time_h" = xyes
13582 then :
13583 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13584
13585 fi
13586 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
13587 if test "x$ac_cv_header_sys_uio_h" = xyes
13588 then :
13589 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
13590
13591 fi
13592 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
13593 if test "x$ac_cv_header_time_h" = xyes
13594 then :
13595 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
13596
13597 fi
13598 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13599 if test "x$ac_cv_header_unistd_h" = xyes
13600 then :
13601 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13602
13603 fi
13604 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
13605 if test "x$ac_cv_header_utmp_h" = xyes
13606 then :
13607 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
13608
13609 fi
13610
13611
13612 #
13613 # Check for linux specific headers, required by pppoe, or pppol2tp
13614 if test -z "$LINUX_TRUE"; then :
13615
13616 ac_fn_c_check_header_compile "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
13617 if test "x$ac_cv_header_net_bpf_h" = xyes
13618 then :
13619 printf "%s\n" "#define HAVE_NET_BPF_H 1" >>confdefs.h
13620
13621 fi
13622 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
13623 if test "x$ac_cv_header_net_if_h" = xyes
13624 then :
13625 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
13626
13627 fi
13628 ac_fn_c_check_header_compile "$LINENO" "net/if_types.h" "ac_cv_header_net_if_types_h" "$ac_includes_default"
13629 if test "x$ac_cv_header_net_if_types_h" = xyes
13630 then :
13631 printf "%s\n" "#define HAVE_NET_IF_TYPES_H 1" >>confdefs.h
13632
13633 fi
13634 ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "$ac_includes_default"
13635 if test "x$ac_cv_header_net_if_arp_h" = xyes
13636 then :
13637 printf "%s\n" "#define HAVE_NET_IF_ARP_H 1" >>confdefs.h
13638
13639 fi
13640 ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "$ac_includes_default"
13641 if test "x$ac_cv_header_linux_if_h" = xyes
13642 then :
13643 printf "%s\n" "#define HAVE_LINUX_IF_H 1" >>confdefs.h
13644
13645 fi
13646 ac_fn_c_check_header_compile "$LINENO" "linux/if_ether.h" "ac_cv_header_linux_if_ether_h" "$ac_includes_default"
13647 if test "x$ac_cv_header_linux_if_ether_h" = xyes
13648 then :
13649 printf "%s\n" "#define HAVE_LINUX_IF_ETHER_H 1" >>confdefs.h
13650
13651 fi
13652 ac_fn_c_check_header_compile "$LINENO" "linux/if_packet.h" "ac_cv_header_linux_if_packet_h" "$ac_includes_default"
13653 if test "x$ac_cv_header_linux_if_packet_h" = xyes
13654 then :
13655 printf "%s\n" "#define HAVE_LINUX_IF_PACKET_H 1" >>confdefs.h
13656
13657 fi
13658 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "$ac_includes_default"
13659 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
13660 then :
13661 printf "%s\n" "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h
13662
13663 fi
13664 ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
13665 if test "x$ac_cv_header_netpacket_packet_h" = xyes
13666 then :
13667 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h
13668
13669 fi
13670
13671
13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_ll in <linux/if_packet.h>" >&5
13673 printf %s "checking for struct sockaddr_ll in <linux/if_packet.h>... " >&6; }
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676 #include <linux/if_packet.h>
13677 int
13678 main (void)
13679 {
13680 sizeof(struct sockaddr_ll)
13681 ;
13682 return 0;
13683 }
13684 _ACEOF
13685 if ac_fn_c_try_compile "$LINENO"
13686 then :
13687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13688 printf "%s\n" "yes" >&6; }
13689
13690 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_LL 1" >>confdefs.h
13691
13692
13693 else case e in #(
13694 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 printf "%s\n" "no" >&6; } ;;
13696 esac
13697 fi
13698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13699
13700 fi
13701
13702
13703 # The cast to long int works around a bug in the HP C Compiler
13704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13705 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13706 # This bug is HP SR number 8606223364.
13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13708 printf %s "checking size of unsigned int... " >&6; }
13709 if test ${ac_cv_sizeof_unsigned_int+y}
13710 then :
13711 printf %s "(cached) " >&6
13712 else case e in #(
13713 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
13714 then :
13715
13716 else case e in #(
13717 e) if test "$ac_cv_type_unsigned_int" = yes; then
13718 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13719 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13720 as_fn_error 77 "cannot compute sizeof (unsigned int)
13721 See 'config.log' for more details" "$LINENO" 5; }
13722 else
13723 ac_cv_sizeof_unsigned_int=0
13724 fi ;;
13725 esac
13726 fi
13727 ;;
13728 esac
13729 fi
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13731 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
13732
13733
13734
13735 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
13736
13737
13738 # The cast to long int works around a bug in the HP C Compiler
13739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13740 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13741 # This bug is HP SR number 8606223364.
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13743 printf %s "checking size of unsigned long... " >&6; }
13744 if test ${ac_cv_sizeof_unsigned_long+y}
13745 then :
13746 printf %s "(cached) " >&6
13747 else case e in #(
13748 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
13749 then :
13750
13751 else case e in #(
13752 e) if test "$ac_cv_type_unsigned_long" = yes; then
13753 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13754 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13755 as_fn_error 77 "cannot compute sizeof (unsigned long)
13756 See 'config.log' for more details" "$LINENO" 5; }
13757 else
13758 ac_cv_sizeof_unsigned_long=0
13759 fi ;;
13760 esac
13761 fi
13762 ;;
13763 esac
13764 fi
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13766 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
13767
13768
13769
13770 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
13771
13772
13773 # The cast to long int works around a bug in the HP C Compiler
13774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13775 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13776 # This bug is HP SR number 8606223364.
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
13778 printf %s "checking size of unsigned short... " >&6; }
13779 if test ${ac_cv_sizeof_unsigned_short+y}
13780 then :
13781 printf %s "(cached) " >&6
13782 else case e in #(
13783 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"
13784 then :
13785
13786 else case e in #(
13787 e) if test "$ac_cv_type_unsigned_short" = yes; then
13788 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13789 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13790 as_fn_error 77 "cannot compute sizeof (unsigned short)
13791 See 'config.log' for more details" "$LINENO" 5; }
13792 else
13793 ac_cv_sizeof_unsigned_short=0
13794 fi ;;
13795 esac
13796 fi
13797 ;;
13798 esac
13799 fi
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
13801 printf "%s\n" "$ac_cv_sizeof_unsigned_short" >&6; }
13802
13803
13804
13805 printf "%s\n" "#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short" >>confdefs.h
13806
13807
13808
13809 # Checks for library functions.
13810 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13811 if test "x$ac_cv_func_mmap" = xyes
13812 then :
13813 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13814
13815 fi
13816 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp"
13817 if test "x$ac_cv_func_logwtmp" = xyes
13818 then :
13819 printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h
13820
13821 fi
13822 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13823 if test "x$ac_cv_func_strerror" = xyes
13824 then :
13825 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
13826
13827 fi
13828
13829
13830 #
13831 # If libc doesn't provide logwtmp, check if libutil provides logwtmp(), and if so link to it.
13832 if test "x${ac_cv_func_logwtmp}" != "xyes"
13833 then :
13834
13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for logwtmp in -lutil" >&5
13836 printf %s "checking for logwtmp in -lutil... " >&6; }
13837 if test ${ac_cv_lib_util_logwtmp+y}
13838 then :
13839 printf %s "(cached) " >&6
13840 else case e in #(
13841 e) ac_check_lib_save_LIBS=$LIBS
13842 LIBS="-lutil $LIBS"
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13845
13846 /* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply.
13849 The 'extern "C"' is for builds by C++ compilers;
13850 although this is not generally supported in C code supporting it here
13851 has little cost and some practical benefit (sr 110532). */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char logwtmp (void);
13856 int
13857 main (void)
13858 {
13859 return logwtmp ();
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 if ac_fn_c_try_link "$LINENO"
13865 then :
13866 ac_cv_lib_util_logwtmp=yes
13867 else case e in #(
13868 e) ac_cv_lib_util_logwtmp=no ;;
13869 esac
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13872 conftest$ac_exeext conftest.$ac_ext
13873 LIBS=$ac_check_lib_save_LIBS ;;
13874 esac
13875 fi
13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_logwtmp" >&5
13877 printf "%s\n" "$ac_cv_lib_util_logwtmp" >&6; }
13878 if test "x$ac_cv_lib_util_logwtmp" = xyes
13879 then :
13880
13881
13882 printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h
13883
13884 UTIL_LIBS="-lutil"
13885
13886
13887 fi
13888
13889
13890 fi
13891
13892 #
13893 # Check if libcrypt have crypt() function
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13895 printf %s "checking for crypt in -lcrypt... " >&6; }
13896 if test ${ac_cv_lib_crypt_crypt+y}
13897 then :
13898 printf %s "(cached) " >&6
13899 else case e in #(
13900 e) ac_check_lib_save_LIBS=$LIBS
13901 LIBS="-lcrypt $LIBS"
13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h. */
13904
13905 /* Override any GCC internal prototype to avoid an error.
13906 Use char because int might match the return type of a GCC
13907 builtin and then its argument prototype would still apply.
13908 The 'extern "C"' is for builds by C++ compilers;
13909 although this is not generally supported in C code supporting it here
13910 has little cost and some practical benefit (sr 110532). */
13911 #ifdef __cplusplus
13912 extern "C"
13913 #endif
13914 char crypt (void);
13915 int
13916 main (void)
13917 {
13918 return crypt ();
13919 ;
13920 return 0;
13921 }
13922 _ACEOF
13923 if ac_fn_c_try_link "$LINENO"
13924 then :
13925 ac_cv_lib_crypt_crypt=yes
13926 else case e in #(
13927 e) ac_cv_lib_crypt_crypt=no ;;
13928 esac
13929 fi
13930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13931 conftest$ac_exeext conftest.$ac_ext
13932 LIBS=$ac_check_lib_save_LIBS ;;
13933 esac
13934 fi
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13936 printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
13937 if test "x$ac_cv_lib_crypt_crypt" = xyes
13938 then :
13939 CRYPT_LIBS="-lcrypt"
13940
13941 fi
13942
13943
13944 #
13945 # Should pppd link with -lsystemd (Linux only)
13946 # Check whether --enable-systemd was given.
13947 if test ${enable_systemd+y}
13948 then :
13949 enableval=$enable_systemd;
13950 fi
13951
13952 if test "x${enable_systemd}" = "xyes"; then
13953 WITH_SYSTEMD_TRUE=
13954 WITH_SYSTEMD_FALSE='#'
13955 else
13956 WITH_SYSTEMD_TRUE='#'
13957 WITH_SYSTEMD_FALSE=
13958 fi
13959
13960 if test -z "$WITH_SYSTEMD_TRUE"; then :
13961
13962 printf "%s\n" "#define SYSTEMD 1" >>confdefs.h
13963
13964 fi
13965 if test "x${enable_systemd}" = "xyes"
13966 then :
13967
13968
13969 pkg_failed=no
13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
13971 printf %s "checking for libsystemd... " >&6; }
13972
13973 if test -n "$SYSTEMD_CFLAGS"; then
13974 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
13975 elif test -n "$PKG_CONFIG"; then
13976 if test -n "$PKG_CONFIG" && \
13977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
13978 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
13979 ac_status=$?
13980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13981 test $ac_status = 0; }; then
13982 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
13983 test "x$?" != "x0" && pkg_failed=yes
13984 else
13985 pkg_failed=yes
13986 fi
13987 else
13988 pkg_failed=untried
13989 fi
13990 if test -n "$SYSTEMD_LIBS"; then
13991 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
13992 elif test -n "$PKG_CONFIG"; then
13993 if test -n "$PKG_CONFIG" && \
13994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
13995 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
13996 ac_status=$?
13997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13998 test $ac_status = 0; }; then
13999 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
14000 test "x$?" != "x0" && pkg_failed=yes
14001 else
14002 pkg_failed=yes
14003 fi
14004 else
14005 pkg_failed=untried
14006 fi
14007
14008
14009
14010 if test $pkg_failed = yes; then
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 printf "%s\n" "no" >&6; }
14013
14014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14015 _pkg_short_errors_supported=yes
14016 else
14017 _pkg_short_errors_supported=no
14018 fi
14019 if test $_pkg_short_errors_supported = yes; then
14020 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
14021 else
14022 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
14023 fi
14024 # Put the nasty error message in config.log where it belongs
14025 echo "$SYSTEMD_PKG_ERRORS" >&5
14026
14027 as_fn_error $? "Package requirements (libsystemd) were not met:
14028
14029 $SYSTEMD_PKG_ERRORS
14030
14031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14032 installed software in a non-standard prefix.
14033
14034 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
14035 and SYSTEMD_LIBS to avoid the need to call pkg-config.
14036 See the pkg-config man page for more details." "$LINENO" 5
14037 elif test $pkg_failed = untried; then
14038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 printf "%s\n" "no" >&6; }
14040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14041 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14042 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14043 is in your PATH or set the PKG_CONFIG environment variable to the full
14044 path to pkg-config.
14045
14046 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
14047 and SYSTEMD_LIBS to avoid the need to call pkg-config.
14048 See the pkg-config man page for more details.
14049
14050 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14051 See 'config.log' for more details" "$LINENO" 5; }
14052 else
14053 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
14054 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
14055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14056 printf "%s\n" "yes" >&6; }
14057
14058 fi
14059 fi
14060
14061 #
14062 # Enable Callback Protocol Support, disabled by default
14063 # Check whether --enable-cbcp was given.
14064 if test ${enable_cbcp+y}
14065 then :
14066 enableval=$enable_cbcp;
14067 fi
14068
14069 if test "x${enable_cbcp}" = "xyes"; then
14070 PPP_WITH_CBCP_TRUE=
14071 PPP_WITH_CBCP_FALSE='#'
14072 else
14073 PPP_WITH_CBCP_TRUE='#'
14074 PPP_WITH_CBCP_FALSE=
14075 fi
14076
14077 if test -z "$PPP_WITH_CBCP_TRUE"; then :
14078
14079 printf "%s\n" "#define PPP_WITH_CBCP 1" >>confdefs.h
14080
14081 fi
14082
14083 #
14084 # Disable Microsoft extensions will remove CHAP, MPPE and PEAP support
14085 # Check whether --enable-microsoft-extensions was given.
14086 if test ${enable_microsoft_extensions+y}
14087 then :
14088 enableval=$enable_microsoft_extensions;
14089 fi
14090
14091
14092 if test "x${enable_microsoft_extensions}" != "xno"; then
14093 PPP_WITH_CHAPMS_TRUE=
14094 PPP_WITH_CHAPMS_FALSE='#'
14095 else
14096 PPP_WITH_CHAPMS_TRUE='#'
14097 PPP_WITH_CHAPMS_FALSE=
14098 fi
14099
14100 if test -z "$PPP_WITH_CHAPMS_TRUE"; then :
14101
14102 printf "%s\n" "#define PPP_WITH_CHAPMS 1" >>confdefs.h
14103
14104 fi
14105
14106 if test "x${build_sunos}" != "xyes" && test "x${enable_microsoft_extensions}" != "xno"; then
14107 PPP_WITH_MPPE_TRUE=
14108 PPP_WITH_MPPE_FALSE='#'
14109 else
14110 PPP_WITH_MPPE_TRUE='#'
14111 PPP_WITH_MPPE_FALSE=
14112 fi
14113
14114 if test -z "$PPP_WITH_MPPE_TRUE"; then :
14115
14116 printf "%s\n" "#define PPP_WITH_MPPE 1" >>confdefs.h
14117
14118 fi
14119
14120 #
14121 # Enable Microsoft LAN Manager support, depends on Microsoft Extensions
14122 # Check whether --enable-mslanman was given.
14123 if test ${enable_mslanman+y}
14124 then :
14125 enableval=$enable_mslanman;
14126 fi
14127
14128 if test "x${enable_mslanman}" = "xyes" && test "x${enable_microsoft_extensions}" != "xno"
14129 then :
14130
14131 printf "%s\n" "#define PPP_WITH_MSLANMAN 1" >>confdefs.h
14132
14133 fi
14134
14135 #
14136 # Disable IPv6 support
14137 # Check whether --enable-ipv6cp was given.
14138 if test ${enable_ipv6cp+y}
14139 then :
14140 enableval=$enable_ipv6cp;
14141 fi
14142
14143 if test "x${enable_ipv6cp}" != "xno"; then
14144 PPP_WITH_IPV6CP_TRUE=
14145 PPP_WITH_IPV6CP_FALSE='#'
14146 else
14147 PPP_WITH_IPV6CP_TRUE='#'
14148 PPP_WITH_IPV6CP_FALSE=
14149 fi
14150
14151 if test -z "$PPP_WITH_IPV6CP_TRUE"; then :
14152
14153 printf "%s\n" "#define PPP_WITH_IPV6CP 1" >>confdefs.h
14154
14155 fi
14156
14157 #
14158 # Disable Multilink support
14159 # Check whether --enable-multilink was given.
14160 if test ${enable_multilink+y}
14161 then :
14162 enableval=$enable_multilink;
14163 fi
14164
14165 if test "x${enable_multilink}" = "xyes"; then
14166 PPP_WITH_MULTILINK_TRUE=
14167 PPP_WITH_MULTILINK_FALSE='#'
14168 else
14169 PPP_WITH_MULTILINK_TRUE='#'
14170 PPP_WITH_MULTILINK_FALSE=
14171 fi
14172
14173 if test -z "$PPP_WITH_MULTILINK_TRUE"; then :
14174
14175 printf "%s\n" "#define PPP_WITH_MULTILINK 1" >>confdefs.h
14176
14177 fi
14178 if test "x${build_sunos}" = "xyes" && test "x${enable_multilink}" = "xyes"
14179 then :
14180 as_fn_error $? "Multilink is not supported on SunOS" "$LINENO" 5
14181 fi
14182
14183 #
14184 # Multilink require Trivial Database Support
14185 if test "x${enable_multilink}" = "xyes"; then
14186 PPP_WITH_TDB_TRUE=
14187 PPP_WITH_TDB_FALSE='#'
14188 else
14189 PPP_WITH_TDB_TRUE='#'
14190 PPP_WITH_TDB_FALSE=
14191 fi
14192
14193 if test -z "$PPP_WITH_TDB_TRUE"; then :
14194
14195 printf "%s\n" "#define PPP_WITH_TDB 1" >>confdefs.h
14196
14197 fi
14198
14199 #
14200 # Enable support for loadable plugins
14201 # Check whether --enable-plugins was given.
14202 if test ${enable_plugins+y}
14203 then :
14204 enableval=$enable_plugins;
14205 fi
14206
14207 if test "x$enable_plugins" != "xno"
14208 then :
14209
14210 printf "%s\n" "#define PPP_WITH_PLUGINS 1" >>confdefs.h
14211
14212 fi
14213 if test "x${enable_plugins}" != "xno"; then
14214 PPP_WITH_PLUGINS_TRUE=
14215 PPP_WITH_PLUGINS_FALSE='#'
14216 else
14217 PPP_WITH_PLUGINS_TRUE='#'
14218 PPP_WITH_PLUGINS_FALSE=
14219 fi
14220
14221
14222 #
14223 # Disable EAP-TLS support
14224 # Check whether --enable-eaptls was given.
14225 if test ${enable_eaptls+y}
14226 then :
14227 enableval=$enable_eaptls;
14228 fi
14229
14230 if test "x$enable_eaptls" != "xno"
14231 then :
14232
14233 printf "%s\n" "#define PPP_WITH_EAPTLS 1" >>confdefs.h
14234
14235 fi
14236 if test "x${enable_eaptls}" != "xno"; then
14237 PPP_WITH_EAPTLS_TRUE=
14238 PPP_WITH_EAPTLS_FALSE='#'
14239 else
14240 PPP_WITH_EAPTLS_TRUE='#'
14241 PPP_WITH_EAPTLS_FALSE=
14242 fi
14243
14244
14245 #
14246 # Disable PEAP support
14247 # Check whether --enable-peap was given.
14248 if test ${enable_peap+y}
14249 then :
14250 enableval=$enable_peap;
14251 fi
14252
14253 if test "x${enable_peap}" != "xno" && test "x${enable_microsoft_extensions}" != "xno"
14254 then :
14255
14256 printf "%s\n" "#define PPP_WITH_PEAP 1" >>confdefs.h
14257
14258 fi
14259 if test "x${enable_peap}" != "xno" && test "x${enable_microsoft_extensions}" != "xno"; then
14260 PPP_WITH_PEAP_TRUE=
14261 PPP_WITH_PEAP_FALSE='#'
14262 else
14263 PPP_WITH_PEAP_TRUE='#'
14264 PPP_WITH_PEAP_FALSE=
14265 fi
14266
14267
14268 #
14269 # Disable OpenSSL engine support
14270 # Check whether --enable-openssl-engine was given.
14271 if test ${enable_openssl_engine+y}
14272 then :
14273 enableval=$enable_openssl_engine;
14274 fi
14275
14276 if test "x$enable_openssl_engine" != "xno"
14277 then :
14278
14279 else case e in #(
14280 e)
14281 printf "%s\n" "#define OPENSSL_NO_ENGINE 1" >>confdefs.h
14282 ;;
14283 esac
14284 fi
14285
14286 #
14287 # Specify runtime directory
14288
14289 # Check whether --with-plugin-dir was given.
14290 if test ${with_plugin_dir+y}
14291 then :
14292 withval=$with_plugin_dir;
14293 fi
14294
14295 if test -n "$with_plugin_dir"
14296 then :
14297 PPPD_PLUGIN_DIR="$with_plugin_dir"
14298 else case e in #(
14299 e) PPPD_PLUGIN_DIR="${libdir}/pppd/$VERSION" ;;
14300 esac
14301 fi
14302 PPPD_PLUGIN_DIR="$PPPD_PLUGIN_DIR"
14303
14304
14305 #
14306 # Specify runtime directory
14307
14308 # Check whether --with-runtime-dir was given.
14309 if test ${with_runtime_dir+y}
14310 then :
14311 withval=$with_runtime_dir;
14312 fi
14313
14314 if test -n "$with_runtime_dir"
14315 then :
14316 PPPD_RUNTIME_DIR="$with_runtime_dir"
14317 else case e in #(
14318 e) PPPD_RUNTIME_DIR="${runstatedir}/pppd" ;;
14319 esac
14320 fi
14321
14322
14323 #
14324 # Specify runtime directory
14325
14326 # Check whether --with-logfile-dir was given.
14327 if test ${with_logfile_dir+y}
14328 then :
14329 withval=$with_logfile_dir;
14330 fi
14331
14332 if test -n "$with_logfile_dir"
14333 then :
14334 PPPD_LOGFILE_DIR="$with_logfile_dir"
14335 else case e in #(
14336 e) PPPD_LOGFILE_DIR="${localstatedir}/log/ppp" ;;
14337 esac
14338 fi
14339
14340
14341 #
14342 # System CA certificates path
14343
14344 # Check whether --with-system-ca-path was given.
14345 if test ${with_system_ca_path+y}
14346 then :
14347 withval=$with_system_ca_path;
14348 case "$withval" in
14349 "" | y | ye | yes)
14350 with_system_ca_path="${sysconfdir}/ssl/certs"
14351 ;;
14352 n | no)
14353 ;;
14354 *)
14355 with_system_ca_path="$withval"
14356 ;;
14357 esac
14358
14359 else case e in #(
14360 e) with_system_ca_path="${sysconfdir}/ssl/certs" ;;
14361 esac
14362 fi
14363
14364 if test "$with_system_ca_path" != "no"; then
14365 PPP_WITH_SYSTEM_CA_PATH_TRUE=
14366 PPP_WITH_SYSTEM_CA_PATH_FALSE='#'
14367 else
14368 PPP_WITH_SYSTEM_CA_PATH_TRUE='#'
14369 PPP_WITH_SYSTEM_CA_PATH_FALSE=
14370 fi
14371
14372 if test -z "$PPP_WITH_SYSTEM_CA_PATH_TRUE"; then :
14373
14374 SYSTEM_CA_PATH="$with_system_ca_path"
14375
14376 fi
14377
14378
14379 #
14380 # Check for OpenSSL
14381
14382 found=false
14383
14384 # Check whether --with-openssl was given.
14385 if test ${with_openssl+y}
14386 then :
14387 withval=$with_openssl;
14388 case "$withval" in
14389 "" | y | ye | yes )
14390 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
14391 ;;
14392 n | no )
14393 ;;
14394 *) ssldirs="$withval"
14395 ;;
14396 esac
14397
14398 else case e in #(
14399 e)
14400 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
14401 ;;
14402 esac
14403 fi
14404
14405
14406 if test "${with_openssl}" != "no"
14407 then :
14408
14409 # if pkg-config is installed and openssl has installed a .pc file,
14410 # then use that information and don't search ssldirs
14411 # Extract the first word of "pkg-config", so it can be a program name with args.
14412 set dummy pkg-config; ac_word=$2
14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14414 printf %s "checking for $ac_word... " >&6; }
14415 if test ${ac_cv_path_PKG_CONFIG+y}
14416 then :
14417 printf %s "(cached) " >&6
14418 else case e in #(
14419 e) case $PKG_CONFIG in
14420 [\\/]* | ?:[\\/]*)
14421 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14422 ;;
14423 *)
14424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14425 for as_dir in $PATH
14426 do
14427 IFS=$as_save_IFS
14428 case $as_dir in #(((
14429 '') as_dir=./ ;;
14430 */) ;;
14431 *) as_dir=$as_dir/ ;;
14432 esac
14433 for ac_exec_ext in '' $ac_executable_extensions; do
14434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14435 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14437 break 2
14438 fi
14439 done
14440 done
14441 IFS=$as_save_IFS
14442
14443 ;;
14444 esac ;;
14445 esac
14446 fi
14447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14448 if test -n "$PKG_CONFIG"; then
14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14450 printf "%s\n" "$PKG_CONFIG" >&6; }
14451 else
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14453 printf "%s\n" "no" >&6; }
14454 fi
14455
14456
14457 if test x"$PKG_CONFIG" != x""; then
14458 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
14459 if test $? = 0; then
14460 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
14461 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
14462 found=true
14463 fi
14464 fi
14465
14466 fi
14467
14468 if test "${with_openssl}" != "no" && test "${found}" != "true"
14469 then :
14470
14471 OPENSSL_INCLUDES=
14472 for ssldir in $ssldirs; do
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
14474 printf %s "checking for openssl/ssl.h in $ssldir... " >&6; }
14475 if test -f "$ssldir/include/openssl/ssl.h"
14476 then :
14477
14478 OPENSSL_INCLUDES="-I$ssldir/include"
14479 OPENSSL_LDFLAGS="-L$ssldir/lib"
14480 OPENSSL_LIBS="-lssl -lcrypto"
14481 found=true
14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14483 printf "%s\n" "yes" >&6; }
14484 break
14485
14486 else case e in #(
14487 e)
14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489 printf "%s\n" "no" >&6; }
14490 ;;
14491 esac
14492 fi
14493 done
14494 fi
14495
14496 if test "${with_openssl}" != "no" && test "${found}" = "true"
14497 then :
14498
14499
14500 # try the preprocessor and linker with our new flags,
14501 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14502
14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
14504 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
14505 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
14506 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
14507
14508 save_LIBS="$LIBS"
14509 save_LDFLAGS="$LDFLAGS"
14510 save_CPPFLAGS="$CPPFLAGS"
14511 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14512 LIBS="$OPENSSL_LIBS $LIBS"
14513 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 #include <openssl/ssl.h>
14517 int
14518 main (void)
14519 {
14520 SSL_new(NULL)
14521 ;
14522 return 0;
14523 }
14524 _ACEOF
14525 if ac_fn_c_try_link "$LINENO"
14526 then :
14527
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14529 printf "%s\n" "yes" >&6; }
14530
14531
14532 else case e in #(
14533 e)
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14535 printf "%s\n" "no" >&6; }
14536
14537 ;;
14538 esac
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14541 conftest$ac_exeext conftest.$ac_ext
14542 CPPFLAGS="$save_CPPFLAGS"
14543 LDFLAGS="$save_LDFLAGS"
14544 LIBS="$save_LIBS"
14545
14546
14547
14548
14549
14550 fi
14551
14552 if test "x${with_openssl}" != "xno"; then
14553 PPP_WITH_OPENSSL_TRUE=
14554 PPP_WITH_OPENSSL_FALSE='#'
14555 else
14556 PPP_WITH_OPENSSL_TRUE='#'
14557 PPP_WITH_OPENSSL_FALSE=
14558 fi
14559
14560 if test -z "$PPP_WITH_OPENSSL_TRUE"; then :
14561
14562 printf "%s\n" "#define PPP_WITH_OPENSSL 1" >>confdefs.h
14563
14564 fi
14565
14566 #
14567 # Check if OpenSSL has compiled in support for various ciphers
14568 ac_ext=c
14569 ac_cpp='$CPP $CPPFLAGS'
14570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14574 printf %s "checking how to run the C preprocessor... " >&6; }
14575 # On Suns, sometimes $CPP names a directory.
14576 if test -n "$CPP" && test -d "$CPP"; then
14577 CPP=
14578 fi
14579 if test -z "$CPP"; then
14580 if test ${ac_cv_prog_CPP+y}
14581 then :
14582 printf %s "(cached) " >&6
14583 else case e in #(
14584 e) # Double quotes because $CC needs to be expanded
14585 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14586 do
14587 ac_preproc_ok=false
14588 for ac_c_preproc_warn_flag in '' yes
14589 do
14590 # Use a header file that comes with gcc, so configuring glibc
14591 # with a fresh cross-compiler works.
14592 # On the NeXT, cc -E runs the code through the compiler's parser,
14593 # not just through cpp. "Syntax error" is here to catch this case.
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14596 #include <limits.h>
14597 Syntax error
14598 _ACEOF
14599 if ac_fn_c_try_cpp "$LINENO"
14600 then :
14601
14602 else case e in #(
14603 e) # Broken: fails on valid input.
14604 continue ;;
14605 esac
14606 fi
14607 rm -f conftest.err conftest.i conftest.$ac_ext
14608
14609 # OK, works on sane cases. Now check whether nonexistent headers
14610 # can be detected and how.
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include <ac_nonexistent.h>
14614 _ACEOF
14615 if ac_fn_c_try_cpp "$LINENO"
14616 then :
14617 # Broken: success on invalid input.
14618 continue
14619 else case e in #(
14620 e) # Passes both tests.
14621 ac_preproc_ok=:
14622 break ;;
14623 esac
14624 fi
14625 rm -f conftest.err conftest.i conftest.$ac_ext
14626
14627 done
14628 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14629 rm -f conftest.i conftest.err conftest.$ac_ext
14630 if $ac_preproc_ok
14631 then :
14632 break
14633 fi
14634
14635 done
14636 ac_cv_prog_CPP=$CPP
14637 ;;
14638 esac
14639 fi
14640 CPP=$ac_cv_prog_CPP
14641 else
14642 ac_cv_prog_CPP=$CPP
14643 fi
14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14645 printf "%s\n" "$CPP" >&6; }
14646 ac_preproc_ok=false
14647 for ac_c_preproc_warn_flag in '' yes
14648 do
14649 # Use a header file that comes with gcc, so configuring glibc
14650 # with a fresh cross-compiler works.
14651 # On the NeXT, cc -E runs the code through the compiler's parser,
14652 # not just through cpp. "Syntax error" is here to catch this case.
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14655 #include <limits.h>
14656 Syntax error
14657 _ACEOF
14658 if ac_fn_c_try_cpp "$LINENO"
14659 then :
14660
14661 else case e in #(
14662 e) # Broken: fails on valid input.
14663 continue ;;
14664 esac
14665 fi
14666 rm -f conftest.err conftest.i conftest.$ac_ext
14667
14668 # OK, works on sane cases. Now check whether nonexistent headers
14669 # can be detected and how.
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 #include <ac_nonexistent.h>
14673 _ACEOF
14674 if ac_fn_c_try_cpp "$LINENO"
14675 then :
14676 # Broken: success on invalid input.
14677 continue
14678 else case e in #(
14679 e) # Passes both tests.
14680 ac_preproc_ok=:
14681 break ;;
14682 esac
14683 fi
14684 rm -f conftest.err conftest.i conftest.$ac_ext
14685
14686 done
14687 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14688 rm -f conftest.i conftest.err conftest.$ac_ext
14689 if $ac_preproc_ok
14690 then :
14691
14692 else case e in #(
14693 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14694 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14695 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14696 See 'config.log' for more details" "$LINENO" 5; } ;;
14697 esac
14698 fi
14699
14700 ac_ext=c
14701 ac_cpp='$CPP $CPPFLAGS'
14702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14705
14706
14707 if test "x${with_openssl}" != "xno"
14708 then :
14709
14710
14711
14712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for md4 support in openssl" >&5
14713 printf %s "checking for md4 support in openssl... " >&6; }
14714 save_CPPFLAGS="$CPPFLAGS"
14715 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14718
14719 #include <openssl/opensslconf.h>
14720 int
14721 main (void)
14722 {
14723 #ifdef OPENSSL_NO_MD4
14724 #error "No support for OPENSSL_NO_MD4"
14725 #endif
14726 ;
14727 return 0;
14728 }
14729 _ACEOF
14730 if ac_fn_c_try_cpp "$LINENO"
14731 then :
14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14733 printf "%s\n" "yes" >&6; }
14734 ac_cv_openssl_md4=yes
14735
14736 else case e in #(
14737 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738 printf "%s\n" "no" >&6; }
14739 ac_cv_openssl_md4=no
14740
14741 ;;
14742 esac
14743 fi
14744 rm -f conftest.err conftest.i conftest.$ac_ext
14745 CPPFLAGS="$save_CPPFLAGS"
14746
14747
14748
14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for md5 support in openssl" >&5
14750 printf %s "checking for md5 support in openssl... " >&6; }
14751 save_CPPFLAGS="$CPPFLAGS"
14752 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14755
14756 #include <openssl/opensslconf.h>
14757 int
14758 main (void)
14759 {
14760 #ifdef OPENSSL_NO_MD5
14761 #error "No support for OPENSSL_NO_MD5"
14762 #endif
14763 ;
14764 return 0;
14765 }
14766 _ACEOF
14767 if ac_fn_c_try_cpp "$LINENO"
14768 then :
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14770 printf "%s\n" "yes" >&6; }
14771 ac_cv_openssl_md5=yes
14772
14773 else case e in #(
14774 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14775 printf "%s\n" "no" >&6; }
14776 ac_cv_openssl_md5=no
14777
14778 ;;
14779 esac
14780 fi
14781 rm -f conftest.err conftest.i conftest.$ac_ext
14782 CPPFLAGS="$save_CPPFLAGS"
14783
14784
14785
14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for des support in openssl" >&5
14787 printf %s "checking for des support in openssl... " >&6; }
14788 save_CPPFLAGS="$CPPFLAGS"
14789 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792
14793 #include <openssl/opensslconf.h>
14794 int
14795 main (void)
14796 {
14797 #ifdef OPENSSL_NO_DES
14798 #error "No support for OPENSSL_NO_DES"
14799 #endif
14800 ;
14801 return 0;
14802 }
14803 _ACEOF
14804 if ac_fn_c_try_cpp "$LINENO"
14805 then :
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14807 printf "%s\n" "yes" >&6; }
14808 ac_cv_openssl_des=yes
14809
14810 else case e in #(
14811 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14812 printf "%s\n" "no" >&6; }
14813 ac_cv_openssl_des=no
14814
14815 ;;
14816 esac
14817 fi
14818 rm -f conftest.err conftest.i conftest.$ac_ext
14819 CPPFLAGS="$save_CPPFLAGS"
14820
14821
14822
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sha support in openssl" >&5
14824 printf %s "checking for sha support in openssl... " >&6; }
14825 save_CPPFLAGS="$CPPFLAGS"
14826 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14829
14830 #include <openssl/opensslconf.h>
14831 int
14832 main (void)
14833 {
14834 #ifdef OPENSSL_NO_SHA
14835 #error "No support for OPENSSL_NO_SHA"
14836 #endif
14837 ;
14838 return 0;
14839 }
14840 _ACEOF
14841 if ac_fn_c_try_cpp "$LINENO"
14842 then :
14843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14844 printf "%s\n" "yes" >&6; }
14845 ac_cv_openssl_sha=yes
14846
14847 else case e in #(
14848 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 printf "%s\n" "no" >&6; }
14850 ac_cv_openssl_sha=no
14851
14852 ;;
14853 esac
14854 fi
14855 rm -f conftest.err conftest.i conftest.$ac_ext
14856 CPPFLAGS="$save_CPPFLAGS"
14857
14858
14859 else case e in #(
14860 e)
14861 if test "x${enable_eaptls}" != "xno" || test "x${enable_peap}" != "xno"
14862 then :
14863 as_fn_error $? "OpenSSL not found, and if this is your intention then run configure --disable-eaptls and --disable-peap" "$LINENO" 5
14864 fi
14865 ;;
14866 esac
14867 fi
14868
14869 if test "x${ac_cv_openssl_md4}" = "xyes"; then
14870 OPENSSL_HAVE_MD4_TRUE=
14871 OPENSSL_HAVE_MD4_FALSE='#'
14872 else
14873 OPENSSL_HAVE_MD4_TRUE='#'
14874 OPENSSL_HAVE_MD4_FALSE=
14875 fi
14876
14877 if test -z "$OPENSSL_HAVE_MD4_TRUE"; then :
14878
14879 printf "%s\n" "#define OPENSSL_HAVE_MD4 1" >>confdefs.h
14880
14881 fi
14882
14883 if test "x${ac_cv_openssl_md5}" = "xyes"; then
14884 OPENSSL_HAVE_MD5_TRUE=
14885 OPENSSL_HAVE_MD5_FALSE='#'
14886 else
14887 OPENSSL_HAVE_MD5_TRUE='#'
14888 OPENSSL_HAVE_MD5_FALSE=
14889 fi
14890
14891 if test -z "$OPENSSL_HAVE_MD5_TRUE"; then :
14892
14893 printf "%s\n" "#define OPENSSL_HAVE_MD5 1" >>confdefs.h
14894
14895 fi
14896
14897 if test "x${ac_cv_openssl_sha}" = "xyes"; then
14898 OPENSSL_HAVE_SHA_TRUE=
14899 OPENSSL_HAVE_SHA_FALSE='#'
14900 else
14901 OPENSSL_HAVE_SHA_TRUE='#'
14902 OPENSSL_HAVE_SHA_FALSE=
14903 fi
14904
14905 if test -z "$OPENSSL_HAVE_SHA_TRUE"; then :
14906
14907 printf "%s\n" "#define OPENSSL_HAVE_SHA 1" >>confdefs.h
14908
14909 fi
14910
14911 if test "x${ac_cv_openssl_des}" = "xyes"; then
14912 OPENSSL_HAVE_DES_TRUE=
14913 OPENSSL_HAVE_DES_FALSE='#'
14914 else
14915 OPENSSL_HAVE_DES_TRUE='#'
14916 OPENSSL_HAVE_DES_FALSE=
14917 fi
14918
14919 if test -z "$OPENSSL_HAVE_DES_TRUE"; then :
14920
14921 printf "%s\n" "#define OPENSSL_HAVE_DES 1" >>confdefs.h
14922
14923 fi
14924
14925 #
14926 # With libsrp support
14927
14928
14929 # Check whether --with-srp was given.
14930 if test ${with_srp+y}
14931 then :
14932 withval=$with_srp;
14933 case "$withval" in
14934 "" | y | ye | yes)
14935 srpdirs="/usr/local /usr/lib /usr"
14936 ;;
14937 n | no)
14938 with_srp="no"
14939 ;;
14940 *)
14941 srpdirs="$withval"
14942 ;;
14943 esac
14944
14945 fi
14946
14947
14948 if test "x${with_srp}" != "xno" ; then
14949 SRP_LIBS="-lsrp"
14950 for srpdir in $srpdirs; do
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srp.h in $srpdir" >&5
14952 printf %s "checking for srp.h in $srpdir... " >&6; }
14953 if test -f "$srpdir/include/srp.h"; then
14954 SRP_CFLAGS="-I$srpdir/include"
14955 SRP_LDFLAGS="-L$srpdir/lib"
14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14957 printf "%s\n" "yes" >&6; }
14958 break
14959 else
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961 printf "%s\n" "no" >&6; }
14962 fi
14963 done
14964
14965 # try the preprocessor and linker with our new flags,
14966 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14967
14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling and linking against libsrp works" >&5
14969 printf %s "checking if compiling and linking against libsrp works... " >&6; }
14970
14971 save_LIBS="$LIBS"
14972 save_LDFLAGS="$LDFLAGS"
14973 save_CPPFLAGS="$CPPFLAGS"
14974 LDFLAGS="$SRP_LDFLAGS $OPENSSL_LDFLAGS $LDFLAGS"
14975 LIBS="$SRP_LIBS $OPENSSL_LIBS $LIBS"
14976 CPPFLAGS="$SRP_CFLAGS $OPENSSL_INCLUDES $CPPFLAGS"
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979 #include <srp.h>
14980 #include <stddef.h>
14981 int
14982 main (void)
14983 {
14984 SRP_use_engine(NULL);
14985 ;
14986 return 0;
14987 }
14988 _ACEOF
14989 if ac_fn_c_try_link "$LINENO"
14990 then :
14991
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14993 printf "%s\n" "yes" >&6; }
14994 with_srp=yes
14995
14996
14997 printf "%s\n" "#define PPP_WITH_SRP 1" >>confdefs.h
14998
14999
15000 else case e in #(
15001 e)
15002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15003 printf "%s\n" "no" >&6; }
15004 with_srp="no"
15005
15006 ;;
15007 esac
15008 fi
15009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15010 conftest$ac_exeext conftest.$ac_ext
15011 CPPFLAGS="$save_CPPFLAGS"
15012 LDFLAGS="$save_LDFLAGS"
15013 LIBS="$save_LIBS"
15014
15015
15016
15017
15018 fi
15019
15020 if test "x${with_srp}" != "xno"; then
15021 WITH_SRP_TRUE=
15022 WITH_SRP_FALSE='#'
15023 else
15024 WITH_SRP_TRUE='#'
15025 WITH_SRP_FALSE=
15026 fi
15027
15028
15029
15030 #
15031 # With libatm support
15032
15033
15034 # Check whether --with-atm was given.
15035 if test ${with_atm+y}
15036 then :
15037 withval=$with_atm;
15038 case "$withval" in
15039 "" | y | ye | yes)
15040 atmdirs="/usr/local /usr/lib /usr"
15041 ;;
15042 n | no)
15043 with_atm="no"
15044 ;;
15045 *)
15046 atmdirs="$withval"
15047 ;;
15048 esac
15049
15050 fi
15051
15052
15053 if test "x${with_atm}" != "xno" ; then
15054 ATM_LIBS="-latm"
15055 for atmdir in $atmdirs; do
15056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for atm.h in $atmdir" >&5
15057 printf %s "checking for atm.h in $atmdir... " >&6; }
15058 if test -f "$atmdir/include/atm.h"; then
15059 ATM_CFLAGS="-I$atmdir/include"
15060 ATM_LDFLAGS="-L$atmdir/lib"
15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15062 printf "%s\n" "yes" >&6; }
15063 break
15064 else
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15066 printf "%s\n" "no" >&6; }
15067 fi
15068 done
15069
15070 # try the preprocessor and linker with our new flags,
15071 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
15072
15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling and linking against libatm works" >&5
15074 printf %s "checking if compiling and linking against libatm works... " >&6; }
15075
15076 save_LIBS="$LIBS"
15077 save_LDFLAGS="$LDFLAGS"
15078 save_CPPFLAGS="$CPPFLAGS"
15079 LDFLAGS="$LDFLAGS $ATM_LDFLAGS"
15080 LIBS="$ATM_LIBS $LIBS"
15081 CPPFLAGS="$ATM_CFLAGS $CPPFLAGS"
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15084 #include <atm.h>
15085 #include <stddef.h>
15086 int
15087 main (void)
15088 {
15089 text2atm(NULL,NULL,0,0);
15090 ;
15091 return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_c_try_link "$LINENO"
15095 then :
15096
15097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15098 printf "%s\n" "yes" >&6; }
15099 with_atm=yes
15100
15101
15102 else case e in #(
15103 e)
15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 printf "%s\n" "no" >&6; }
15106 with_atm="no"
15107
15108 ;;
15109 esac
15110 fi
15111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15112 conftest$ac_exeext conftest.$ac_ext
15113 CPPFLAGS="$save_CPPFLAGS"
15114 LDFLAGS="$save_LDFLAGS"
15115 LIBS="$save_LIBS"
15116
15117
15118
15119
15120 fi
15121 if test "x${with_atm}" != "xno"; then
15122 WITH_LIBATM_TRUE=
15123 WITH_LIBATM_FALSE='#'
15124 else
15125 WITH_LIBATM_TRUE='#'
15126 WITH_LIBATM_FALSE=
15127 fi
15128
15129
15130
15131 #
15132 # With libpam support
15133
15134
15135 # Check whether --with-pam was given.
15136 if test ${with_pam+y}
15137 then :
15138 withval=$with_pam;
15139 fi
15140
15141
15142 case "$with_pam" in #(
15143 ye|y) :
15144 with_pam=yes ;; #(
15145 n) :
15146 with_pam=no ;; #(
15147 *) :
15148 ;;
15149 esac
15150
15151 if test "x$with_pam" != "xno"
15152 then :
15153
15154 case "$with_pam" in #(
15155 ""|yes) :
15156
15157 pkg_failed=no
15158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam" >&5
15159 printf %s "checking for pam... " >&6; }
15160
15161 if test -n "$PAM_CFLAGS"; then
15162 pkg_cv_PAM_CFLAGS="$PAM_CFLAGS"
15163 elif test -n "$PKG_CONFIG"; then
15164 if test -n "$PKG_CONFIG" && \
15165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pam\""; } >&5
15166 ($PKG_CONFIG --exists --print-errors "pam") 2>&5
15167 ac_status=$?
15168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15169 test $ac_status = 0; }; then
15170 pkg_cv_PAM_CFLAGS=`$PKG_CONFIG --cflags "pam" 2>/dev/null`
15171 test "x$?" != "x0" && pkg_failed=yes
15172 else
15173 pkg_failed=yes
15174 fi
15175 else
15176 pkg_failed=untried
15177 fi
15178 if test -n "$PAM_LIBS"; then
15179 pkg_cv_PAM_LIBS="$PAM_LIBS"
15180 elif test -n "$PKG_CONFIG"; then
15181 if test -n "$PKG_CONFIG" && \
15182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pam\""; } >&5
15183 ($PKG_CONFIG --exists --print-errors "pam") 2>&5
15184 ac_status=$?
15185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15186 test $ac_status = 0; }; then
15187 pkg_cv_PAM_LIBS=`$PKG_CONFIG --libs "pam" 2>/dev/null`
15188 test "x$?" != "x0" && pkg_failed=yes
15189 else
15190 pkg_failed=yes
15191 fi
15192 else
15193 pkg_failed=untried
15194 fi
15195
15196
15197
15198 if test $pkg_failed = yes; then
15199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200 printf "%s\n" "no" >&6; }
15201
15202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15203 _pkg_short_errors_supported=yes
15204 else
15205 _pkg_short_errors_supported=no
15206 fi
15207 if test $_pkg_short_errors_supported = yes; then
15208 PAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pam" 2>&1`
15209 else
15210 PAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pam" 2>&1`
15211 fi
15212 # Put the nasty error message in config.log where it belongs
15213 echo "$PAM_PKG_ERRORS" >&5
15214
15215 pamdirs="/usr/local /usr/lib /usr"
15216 elif test $pkg_failed = untried; then
15217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15218 printf "%s\n" "no" >&6; }
15219 pamdirs="/usr/local /usr/lib /usr"
15220 else
15221 PAM_CFLAGS=$pkg_cv_PAM_CFLAGS
15222 PAM_LIBS=$pkg_cv_PAM_LIBS
15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15224 printf "%s\n" "yes" >&6; }
15225 pamdirs=
15226 fi ;; #(
15227 *) :
15228 pamdirs="$with_pam" ;;
15229 esac
15230
15231 if test -n "$pamdirs"
15232 then :
15233
15234 PAM_LIBS="-lpam"
15235 for pamdir in $pamdirs; do
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_appl.h in $pamdir" >&5
15237 printf %s "checking for pam_appl.h in $pamdir... " >&6; }
15238 if test -f "$pamdir/include/security/pam_appl.h"; then
15239 PAM_CFLAGS="-I$pamdir/include"
15240 PAM_LDFLAGS="-L$pamdir/lib"
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15242 printf "%s\n" "yes" >&6; }
15243 break
15244 else
15245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15246 printf "%s\n" "no" >&6; }
15247 fi
15248 done
15249
15250 fi
15251
15252 # try the preprocessor and linker with our new flags,
15253 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
15254
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling and linking against libpam works" >&5
15256 printf %s "checking if compiling and linking against libpam works... " >&6; }
15257
15258 save_LIBS="$LIBS"
15259 save_LDFLAGS="$LDFLAGS"
15260 save_CPPFLAGS="$CPPFLAGS"
15261 LDFLAGS="$LDFLAGS $PAM_LDFLAGS"
15262 LIBS="$PAM_LIBS $LIBS"
15263 CPPFLAGS="$PAM_CFLAGS $CPPFLAGS"
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266 #include <security/pam_appl.h>
15267 #include <stddef.h>
15268 int
15269 main (void)
15270 {
15271 pam_authenticate(NULL, 0);
15272 ;
15273 return 0;
15274 }
15275 _ACEOF
15276 if ac_fn_c_try_link "$LINENO"
15277 then :
15278
15279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15280 printf "%s\n" "yes" >&6; }
15281 with_pam=yes
15282
15283 printf "%s\n" "#define PPP_WITH_PAM 1" >>confdefs.h
15284
15285
15286 else case e in #(
15287 e)
15288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15289 printf "%s\n" "no" >&6; }
15290 with_pam="no"
15291
15292 ;;
15293 esac
15294 fi
15295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15296 conftest$ac_exeext conftest.$ac_ext
15297 CPPFLAGS="$save_CPPFLAGS"
15298 LDFLAGS="$save_LDFLAGS"
15299 LIBS="$save_LIBS"
15300
15301
15302
15303
15304
15305 fi
15306 if test "x${with_pam}" != "xno"; then
15307 WITH_LIBPAM_TRUE=
15308 WITH_LIBPAM_FALSE='#'
15309 else
15310 WITH_LIBPAM_TRUE='#'
15311 WITH_LIBPAM_FALSE=
15312 fi
15313
15314
15315 if test "x${with_pam}" = "xyes"; then
15316 PPP_WITH_PAM_TRUE=
15317 PPP_WITH_PAM_FALSE='#'
15318 else
15319 PPP_WITH_PAM_TRUE='#'
15320 PPP_WITH_PAM_FALSE=
15321 fi
15322
15323
15324 #
15325 # With libpcap support, activate pppd on network activity
15326
15327
15328 # Check whether --with-pcap was given.
15329 if test ${with_pcap+y}
15330 then :
15331 withval=$with_pcap;
15332 case "$withval" in
15333 "" | y | ye | yes)
15334 pcapdirs="/usr/local /usr/lib /usr"
15335 ;;
15336 n | no)
15337 with_pcap="no"
15338 ;;
15339 *)
15340 pcapdirs="$withval"
15341 ;;
15342 esac
15343
15344 fi
15345
15346
15347 if test "x${with_pcap}" != "xno" ; then
15348 PCAP_LIBS="-lpcap"
15349 for pcapdir in $pcapdirs; do
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap.h in $pcapdir" >&5
15351 printf %s "checking for pcap.h in $pcapdir... " >&6; }
15352 if test -f "$pcapdir/include/pcap.h"; then
15353 PCAP_CFLAGS="-I$pcapdir/include"
15354 PCAP_LDFLAGS="-L$pcapdir/lib"
15355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15356 printf "%s\n" "yes" >&6; }
15357 break
15358 else
15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15360 printf "%s\n" "no" >&6; }
15361 fi
15362 done
15363
15364 # try the preprocessor and linker with our new flags,
15365 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
15366
15367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiling and linking against libpcap works" >&5
15368 printf %s "checking if compiling and linking against libpcap works... " >&6; }
15369
15370 save_LIBS="$LIBS"
15371 save_LDFLAGS="$LDFLAGS"
15372 save_CPPFLAGS="$CPPFLAGS"
15373 LDFLAGS="$PCAP_LDFLAGS $LDFLAGS"
15374 LIBS="$PCAP_LIBS $LIBS"
15375 CPPFLAGS="$PCAP_CFLAGS $CPPFLAGS"
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 #include <pcap.h>
15379 int
15380 main (void)
15381 {
15382 pcap_create(0,0);
15383 ;
15384 return 0;
15385 }
15386 _ACEOF
15387 if ac_fn_c_try_link "$LINENO"
15388 then :
15389
15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15391 printf "%s\n" "yes" >&6; }
15392 with_pcap=yes
15393
15394
15395 else case e in #(
15396 e)
15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15398 printf "%s\n" "no" >&6; }
15399 with_pcap="no"
15400
15401 ;;
15402 esac
15403 fi
15404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15405 conftest$ac_exeext conftest.$ac_ext
15406 CPPFLAGS="$save_CPPFLAGS"
15407 LDFLAGS="$save_LDFLAGS"
15408 LIBS="$save_LIBS"
15409
15410
15411
15412
15413 fi
15414
15415 if test "x${with_pcap}" != "xno"; then
15416 WITH_PCAP_TRUE=
15417 WITH_PCAP_FALSE='#'
15418 else
15419 WITH_PCAP_TRUE='#'
15420 WITH_PCAP_FALSE=
15421 fi
15422
15423
15424
15425 #
15426 # SunOS provides a version of libpcap that would work, but SunOS has no support for activity filter
15427 if test "x${with_pcap}" = "xyes" && test "x${build_sunos}" != "xyes" ; then
15428 PPP_WITH_FILTER_TRUE=
15429 PPP_WITH_FILTER_FALSE='#'
15430 else
15431 PPP_WITH_FILTER_TRUE='#'
15432 PPP_WITH_FILTER_FALSE=
15433 fi
15434
15435 if test -z "$PPP_WITH_FILTER_TRUE"; then :
15436
15437
15438 printf "%s\n" "#define PPP_WITH_FILTER 1" >>confdefs.h
15439
15440 else
15441
15442 if test "x${build_sunos}" = "xyes"
15443 then :
15444
15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Packet activity filter not supported on SunOS" >&5
15446 printf "%s\n" "$as_me: WARNING: Packet activity filter not supported on SunOS" >&2;}
15447 with_pcap="no"
15448
15449 fi
15450
15451 fi
15452
15453
15454 printf "%s\n" "#define PPPD_VERSION \"$VERSION\"" >>confdefs.h
15455
15456
15457 ac_config_files="$ac_config_files Makefile chat/Makefile include/Makefile pppd/Makefile pppd/pppd.pc pppd/plugins/Makefile pppd/plugins/pppoe/Makefile pppd/plugins/pppoatm/Makefile pppd/plugins/pppol2tp/Makefile pppd/plugins/radius/Makefile pppdump/Makefile pppstats/Makefile scripts/Makefile"
15458
15459 cat >confcache <<\_ACEOF
15460 # This file is a shell script that caches the results of configure
15461 # tests run on this system so they can be shared between configure
15462 # scripts and configure runs, see configure's option --config-cache.
15463 # It is not useful on other systems. If it contains results you don't
15464 # want to keep, you may remove or edit it.
15465 #
15466 # config.status only pays attention to the cache file if you give it
15467 # the --recheck option to rerun configure.
15468 #
15469 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15470 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15471 # following values.
15472
15473 _ACEOF
15474
15475 # The following way of writing the cache mishandles newlines in values,
15476 # but we know of no workaround that is simple, portable, and efficient.
15477 # So, we kill variables containing newlines.
15478 # Ultrix sh set writes to stderr and can't be redirected directly,
15479 # and sets the high bit in the cache file unless we assign to the vars.
15480 (
15481 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15482 eval ac_val=\$$ac_var
15483 case $ac_val in #(
15484 *${as_nl}*)
15485 case $ac_var in #(
15486 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15487 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15488 esac
15489 case $ac_var in #(
15490 _ | IFS | as_nl) ;; #(
15491 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15492 *) { eval $ac_var=; unset $ac_var;} ;;
15493 esac ;;
15494 esac
15495 done
15496
15497 (set) 2>&1 |
15498 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15499 *${as_nl}ac_space=\ *)
15500 # 'set' does not quote correctly, so add quotes: double-quote
15501 # substitution turns \\\\ into \\, and sed turns \\ into \.
15502 sed -n \
15503 "s/'/'\\\\''/g;
15504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15505 ;; #(
15506 *)
15507 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15508 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15509 ;;
15510 esac |
15511 sort
15512 ) |
15513 sed '
15514 /^ac_cv_env_/b end
15515 t clear
15516 :clear
15517 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15518 t end
15519 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15520 :end' >>confcache
15521 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15522 if test -w "$cache_file"; then
15523 if test "x$cache_file" != "x/dev/null"; then
15524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15525 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15526 if test ! -f "$cache_file" || test -h "$cache_file"; then
15527 cat confcache >"$cache_file"
15528 else
15529 case $cache_file in #(
15530 */* | ?:*)
15531 mv -f confcache "$cache_file"$$ &&
15532 mv -f "$cache_file"$$ "$cache_file" ;; #(
15533 *)
15534 mv -f confcache "$cache_file" ;;
15535 esac
15536 fi
15537 fi
15538 else
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15540 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15541 fi
15542 fi
15543 rm -f confcache
15544
15545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15546 # Let make expand exec_prefix.
15547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15548
15549 DEFS=-DHAVE_CONFIG_H
15550
15551 ac_libobjs=
15552 ac_ltlibobjs=
15553 U=
15554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15555 # 1. Remove the extension, and $U if already installed.
15556 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15557 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15558 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15559 # will be set to the directory where LIBOBJS objects are built.
15560 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15561 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15562 done
15563 LIBOBJS=$ac_libobjs
15564
15565 LTLIBOBJS=$ac_ltlibobjs
15566
15567
15568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15569 printf %s "checking that generated files are newer than configure... " >&6; }
15570 if test -n "$am_sleep_pid"; then
15571 # Hide warnings about reused PIDs.
15572 wait $am_sleep_pid 2>/dev/null
15573 fi
15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15575 printf "%s\n" "done" >&6; }
15576 if test -n "$EXEEXT"; then
15577 am__EXEEXT_TRUE=
15578 am__EXEEXT_FALSE='#'
15579 else
15580 am__EXEEXT_TRUE='#'
15581 am__EXEEXT_FALSE=
15582 fi
15583
15584 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15585 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 fi
15588 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15589 as_fn_error $? "conditional \"AMDEP\" was never defined.
15590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 fi
15592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15593 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 fi
15596 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
15597 as_fn_error $? "conditional \"LINUX\" was never defined.
15598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 fi
15600 if test -z "${SUNOS_TRUE}" && test -z "${SUNOS_FALSE}"; then
15601 as_fn_error $? "conditional \"SUNOS\" was never defined.
15602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 fi
15604 if test -z "${WITH_SYSTEMD_TRUE}" && test -z "${WITH_SYSTEMD_FALSE}"; then
15605 as_fn_error $? "conditional \"WITH_SYSTEMD\" was never defined.
15606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 fi
15608 if test -z "${PPP_WITH_CBCP_TRUE}" && test -z "${PPP_WITH_CBCP_FALSE}"; then
15609 as_fn_error $? "conditional \"PPP_WITH_CBCP\" was never defined.
15610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 fi
15612 if test -z "${PPP_WITH_CHAPMS_TRUE}" && test -z "${PPP_WITH_CHAPMS_FALSE}"; then
15613 as_fn_error $? "conditional \"PPP_WITH_CHAPMS\" was never defined.
15614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15615 fi
15616 if test -z "${PPP_WITH_MPPE_TRUE}" && test -z "${PPP_WITH_MPPE_FALSE}"; then
15617 as_fn_error $? "conditional \"PPP_WITH_MPPE\" was never defined.
15618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619 fi
15620 if test -z "${PPP_WITH_IPV6CP_TRUE}" && test -z "${PPP_WITH_IPV6CP_FALSE}"; then
15621 as_fn_error $? "conditional \"PPP_WITH_IPV6CP\" was never defined.
15622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15623 fi
15624 if test -z "${PPP_WITH_MULTILINK_TRUE}" && test -z "${PPP_WITH_MULTILINK_FALSE}"; then
15625 as_fn_error $? "conditional \"PPP_WITH_MULTILINK\" was never defined.
15626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15627 fi
15628 if test -z "${PPP_WITH_TDB_TRUE}" && test -z "${PPP_WITH_TDB_FALSE}"; then
15629 as_fn_error $? "conditional \"PPP_WITH_TDB\" was never defined.
15630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15631 fi
15632 if test -z "${PPP_WITH_PLUGINS_TRUE}" && test -z "${PPP_WITH_PLUGINS_FALSE}"; then
15633 as_fn_error $? "conditional \"PPP_WITH_PLUGINS\" was never defined.
15634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15635 fi
15636 if test -z "${PPP_WITH_EAPTLS_TRUE}" && test -z "${PPP_WITH_EAPTLS_FALSE}"; then
15637 as_fn_error $? "conditional \"PPP_WITH_EAPTLS\" was never defined.
15638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15639 fi
15640 if test -z "${PPP_WITH_PEAP_TRUE}" && test -z "${PPP_WITH_PEAP_FALSE}"; then
15641 as_fn_error $? "conditional \"PPP_WITH_PEAP\" was never defined.
15642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 fi
15644 if test -z "${PPP_WITH_SYSTEM_CA_PATH_TRUE}" && test -z "${PPP_WITH_SYSTEM_CA_PATH_FALSE}"; then
15645 as_fn_error $? "conditional \"PPP_WITH_SYSTEM_CA_PATH\" was never defined.
15646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 fi
15648 if test -z "${PPP_WITH_OPENSSL_TRUE}" && test -z "${PPP_WITH_OPENSSL_FALSE}"; then
15649 as_fn_error $? "conditional \"PPP_WITH_OPENSSL\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15651 fi
15652 if test -z "${OPENSSL_HAVE_MD4_TRUE}" && test -z "${OPENSSL_HAVE_MD4_FALSE}"; then
15653 as_fn_error $? "conditional \"OPENSSL_HAVE_MD4\" was never defined.
15654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15655 fi
15656 if test -z "${OPENSSL_HAVE_MD5_TRUE}" && test -z "${OPENSSL_HAVE_MD5_FALSE}"; then
15657 as_fn_error $? "conditional \"OPENSSL_HAVE_MD5\" was never defined.
15658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15659 fi
15660 if test -z "${OPENSSL_HAVE_SHA_TRUE}" && test -z "${OPENSSL_HAVE_SHA_FALSE}"; then
15661 as_fn_error $? "conditional \"OPENSSL_HAVE_SHA\" was never defined.
15662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 fi
15664 if test -z "${OPENSSL_HAVE_DES_TRUE}" && test -z "${OPENSSL_HAVE_DES_FALSE}"; then
15665 as_fn_error $? "conditional \"OPENSSL_HAVE_DES\" was never defined.
15666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15667 fi
15668 if test -z "${WITH_SRP_TRUE}" && test -z "${WITH_SRP_FALSE}"; then
15669 as_fn_error $? "conditional \"WITH_SRP\" was never defined.
15670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15671 fi
15672 if test -z "${WITH_LIBATM_TRUE}" && test -z "${WITH_LIBATM_FALSE}"; then
15673 as_fn_error $? "conditional \"WITH_LIBATM\" was never defined.
15674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15675 fi
15676 if test -z "${WITH_LIBPAM_TRUE}" && test -z "${WITH_LIBPAM_FALSE}"; then
15677 as_fn_error $? "conditional \"WITH_LIBPAM\" was never defined.
15678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15679 fi
15680 if test -z "${PPP_WITH_PAM_TRUE}" && test -z "${PPP_WITH_PAM_FALSE}"; then
15681 as_fn_error $? "conditional \"PPP_WITH_PAM\" was never defined.
15682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683 fi
15684 if test -z "${WITH_PCAP_TRUE}" && test -z "${WITH_PCAP_FALSE}"; then
15685 as_fn_error $? "conditional \"WITH_PCAP\" was never defined.
15686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 fi
15688 if test -z "${PPP_WITH_FILTER_TRUE}" && test -z "${PPP_WITH_FILTER_FALSE}"; then
15689 as_fn_error $? "conditional \"PPP_WITH_FILTER\" was never defined.
15690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 fi
15692
15693 : "${CONFIG_STATUS=./config.status}"
15694 ac_write_fail=0
15695 ac_clean_files_save=$ac_clean_files
15696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15698 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15699 as_write_fail=0
15700 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15701 #! $SHELL
15702 # Generated by $as_me.
15703 # Run this file to recreate the current configuration.
15704 # Compiler output produced by configure, useful for debugging
15705 # configure, is in config.log if it exists.
15706
15707 debug=false
15708 ac_cs_recheck=false
15709 ac_cs_silent=false
15710
15711 SHELL=\${CONFIG_SHELL-$SHELL}
15712 export SHELL
15713 _ASEOF
15714 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15715 ## -------------------- ##
15716 ## M4sh Initialization. ##
15717 ## -------------------- ##
15718
15719 # Be more Bourne compatible
15720 DUALCASE=1; export DUALCASE # for MKS sh
15721 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15722 then :
15723 emulate sh
15724 NULLCMD=:
15725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15726 # is contrary to our usage. Disable this feature.
15727 alias -g '${1+"$@"}'='"$@"'
15728 setopt NO_GLOB_SUBST
15729 else case e in #(
15730 e) case `(set -o) 2>/dev/null` in #(
15731 *posix*) :
15732 set -o posix ;; #(
15733 *) :
15734 ;;
15735 esac ;;
15736 esac
15737 fi
15738
15739
15740
15741 # Reset variables that may have inherited troublesome values from
15742 # the environment.
15743
15744 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15745 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15746 # side effect of setting IFS to empty, thus disabling word splitting.)
15747 # Quoting is to prevent editors from complaining about space-tab.
15748 as_nl='
15749 '
15750 export as_nl
15751 IFS=" "" $as_nl"
15752
15753 PS1='$ '
15754 PS2='> '
15755 PS4='+ '
15756
15757 # Ensure predictable behavior from utilities with locale-dependent output.
15758 LC_ALL=C
15759 export LC_ALL
15760 LANGUAGE=C
15761 export LANGUAGE
15762
15763 # We cannot yet rely on "unset" to work, but we need these variables
15764 # to be unset--not just set to an empty or harmless value--now, to
15765 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15766 # also avoids known problems related to "unset" and subshell syntax
15767 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15768 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15769 do eval test \${$as_var+y} \
15770 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15771 done
15772
15773 # Ensure that fds 0, 1, and 2 are open.
15774 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15775 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15776 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15777
15778 # The user is always right.
15779 if ${PATH_SEPARATOR+false} :; then
15780 PATH_SEPARATOR=:
15781 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15782 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15783 PATH_SEPARATOR=';'
15784 }
15785 fi
15786
15787
15788 # Find who we are. Look in the path if we contain no directory separator.
15789 as_myself=
15790 case $0 in #((
15791 *[\\/]* ) as_myself=$0 ;;
15792 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793 for as_dir in $PATH
15794 do
15795 IFS=$as_save_IFS
15796 case $as_dir in #(((
15797 '') as_dir=./ ;;
15798 */) ;;
15799 *) as_dir=$as_dir/ ;;
15800 esac
15801 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15802 done
15803 IFS=$as_save_IFS
15804
15805 ;;
15806 esac
15807 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15808 # in which case we are not to be found in the path.
15809 if test "x$as_myself" = x; then
15810 as_myself=$0
15811 fi
15812 if test ! -f "$as_myself"; then
15813 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15814 exit 1
15815 fi
15816
15817
15818
15819 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15820 # ----------------------------------------
15821 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15822 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15823 # script with STATUS, using 1 if that was 0.
15824 as_fn_error ()
15825 {
15826 as_status=$1; test $as_status -eq 0 && as_status=1
15827 if test "$4"; then
15828 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15830 fi
15831 printf "%s\n" "$as_me: error: $2" >&2
15832 as_fn_exit $as_status
15833 } # as_fn_error
15834
15835
15836 # as_fn_set_status STATUS
15837 # -----------------------
15838 # Set $? to STATUS, without forking.
15839 as_fn_set_status ()
15840 {
15841 return $1
15842 } # as_fn_set_status
15843
15844 # as_fn_exit STATUS
15845 # -----------------
15846 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15847 as_fn_exit ()
15848 {
15849 set +e
15850 as_fn_set_status $1
15851 exit $1
15852 } # as_fn_exit
15853
15854 # as_fn_unset VAR
15855 # ---------------
15856 # Portably unset VAR.
15857 as_fn_unset ()
15858 {
15859 { eval $1=; unset $1;}
15860 }
15861 as_unset=as_fn_unset
15862
15863 # as_fn_append VAR VALUE
15864 # ----------------------
15865 # Append the text in VALUE to the end of the definition contained in VAR. Take
15866 # advantage of any shell optimizations that allow amortized linear growth over
15867 # repeated appends, instead of the typical quadratic growth present in naive
15868 # implementations.
15869 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15870 then :
15871 eval 'as_fn_append ()
15872 {
15873 eval $1+=\$2
15874 }'
15875 else case e in #(
15876 e) as_fn_append ()
15877 {
15878 eval $1=\$$1\$2
15879 } ;;
15880 esac
15881 fi # as_fn_append
15882
15883 # as_fn_arith ARG...
15884 # ------------------
15885 # Perform arithmetic evaluation on the ARGs, and store the result in the
15886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15887 # must be portable across $(()) and expr.
15888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15889 then :
15890 eval 'as_fn_arith ()
15891 {
15892 as_val=$(( $* ))
15893 }'
15894 else case e in #(
15895 e) as_fn_arith ()
15896 {
15897 as_val=`expr "$@" || test $? -eq 1`
15898 } ;;
15899 esac
15900 fi # as_fn_arith
15901
15902
15903 if expr a : '\(a\)' >/dev/null 2>&1 &&
15904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15905 as_expr=expr
15906 else
15907 as_expr=false
15908 fi
15909
15910 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15911 as_basename=basename
15912 else
15913 as_basename=false
15914 fi
15915
15916 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15917 as_dirname=dirname
15918 else
15919 as_dirname=false
15920 fi
15921
15922 as_me=`$as_basename -- "$0" ||
15923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15924 X"$0" : 'X\(//\)$' \| \
15925 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15926 printf "%s\n" X/"$0" |
15927 sed '/^.*\/\([^/][^/]*\)\/*$/{
15928 s//\1/
15929 q
15930 }
15931 /^X\/\(\/\/\)$/{
15932 s//\1/
15933 q
15934 }
15935 /^X\/\(\/\).*/{
15936 s//\1/
15937 q
15938 }
15939 s/.*/./; q'`
15940
15941 # Avoid depending upon Character Ranges.
15942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15945 as_cr_digits='0123456789'
15946 as_cr_alnum=$as_cr_Letters$as_cr_digits
15947
15948
15949 # Determine whether it's possible to make 'echo' print without a newline.
15950 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15951 # for compatibility with existing Makefiles.
15952 ECHO_C= ECHO_N= ECHO_T=
15953 case `echo -n x` in #(((((
15954 -n*)
15955 case `echo 'xy\c'` in
15956 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15957 xy) ECHO_C='\c';;
15958 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15959 ECHO_T=' ';;
15960 esac;;
15961 *)
15962 ECHO_N='-n';;
15963 esac
15964
15965 # For backward compatibility with old third-party macros, we provide
15966 # the shell variables $as_echo and $as_echo_n. New code should use
15967 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15968 as_echo='printf %s\n'
15969 as_echo_n='printf %s'
15970
15971 rm -f conf$$ conf$$.exe conf$$.file
15972 if test -d conf$$.dir; then
15973 rm -f conf$$.dir/conf$$.file
15974 else
15975 rm -f conf$$.dir
15976 mkdir conf$$.dir 2>/dev/null
15977 fi
15978 if (echo >conf$$.file) 2>/dev/null; then
15979 if ln -s conf$$.file conf$$ 2>/dev/null; then
15980 as_ln_s='ln -s'
15981 # ... but there are two gotchas:
15982 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15983 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15984 # In both cases, we have to default to 'cp -pR'.
15985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15986 as_ln_s='cp -pR'
15987 elif ln conf$$.file conf$$ 2>/dev/null; then
15988 as_ln_s=ln
15989 else
15990 as_ln_s='cp -pR'
15991 fi
15992 else
15993 as_ln_s='cp -pR'
15994 fi
15995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15996 rmdir conf$$.dir 2>/dev/null
15997
15998
15999 # as_fn_mkdir_p
16000 # -------------
16001 # Create "$as_dir" as a directory, including parents if necessary.
16002 as_fn_mkdir_p ()
16003 {
16004
16005 case $as_dir in #(
16006 -*) as_dir=./$as_dir;;
16007 esac
16008 test -d "$as_dir" || eval $as_mkdir_p || {
16009 as_dirs=
16010 while :; do
16011 case $as_dir in #(
16012 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16013 *) as_qdir=$as_dir;;
16014 esac
16015 as_dirs="'$as_qdir' $as_dirs"
16016 as_dir=`$as_dirname -- "$as_dir" ||
16017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16018 X"$as_dir" : 'X\(//\)[^/]' \| \
16019 X"$as_dir" : 'X\(//\)$' \| \
16020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16021 printf "%s\n" X"$as_dir" |
16022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16023 s//\1/
16024 q
16025 }
16026 /^X\(\/\/\)[^/].*/{
16027 s//\1/
16028 q
16029 }
16030 /^X\(\/\/\)$/{
16031 s//\1/
16032 q
16033 }
16034 /^X\(\/\).*/{
16035 s//\1/
16036 q
16037 }
16038 s/.*/./; q'`
16039 test -d "$as_dir" && break
16040 done
16041 test -z "$as_dirs" || eval "mkdir $as_dirs"
16042 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16043
16044
16045 } # as_fn_mkdir_p
16046 if mkdir -p . 2>/dev/null; then
16047 as_mkdir_p='mkdir -p "$as_dir"'
16048 else
16049 test -d ./-p && rmdir ./-p
16050 as_mkdir_p=false
16051 fi
16052
16053
16054 # as_fn_executable_p FILE
16055 # -----------------------
16056 # Test if FILE is an executable regular file.
16057 as_fn_executable_p ()
16058 {
16059 test -f "$1" && test -x "$1"
16060 } # as_fn_executable_p
16061 as_test_x='test -x'
16062 as_executable_p=as_fn_executable_p
16063
16064 # Sed expression to map a string onto a valid CPP name.
16065 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16066 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16067
16068 # Sed expression to map a string onto a valid variable name.
16069 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16070 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16071
16072
16073 exec 6>&1
16074 ## ----------------------------------- ##
16075 ## Main body of $CONFIG_STATUS script. ##
16076 ## ----------------------------------- ##
16077 _ASEOF
16078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16079
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 # Save the log message, to keep $0 and so on meaningful, and to
16082 # report actual input values of CONFIG_FILES etc. instead of their
16083 # values after options handling.
16084 ac_log="
16085 This file was extended by ppp $as_me 2.5.2, which was
16086 generated by GNU Autoconf 2.72. Invocation command line was
16087
16088 CONFIG_FILES = $CONFIG_FILES
16089 CONFIG_HEADERS = $CONFIG_HEADERS
16090 CONFIG_LINKS = $CONFIG_LINKS
16091 CONFIG_COMMANDS = $CONFIG_COMMANDS
16092 $ $0 $@
16093
16094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16095 "
16096
16097 _ACEOF
16098
16099 case $ac_config_files in *"
16100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16101 esac
16102
16103 case $ac_config_headers in *"
16104 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16105 esac
16106
16107
16108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16109 # Files that config.status was made for.
16110 config_files="$ac_config_files"
16111 config_headers="$ac_config_headers"
16112 config_commands="$ac_config_commands"
16113
16114 _ACEOF
16115
16116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16117 ac_cs_usage="\
16118 '$as_me' instantiates files and other configuration actions
16119 from templates according to the current configuration. Unless the files
16120 and actions are specified as TAGs, all are instantiated by default.
16121
16122 Usage: $0 [OPTION]... [TAG]...
16123
16124 -h, --help print this help, then exit
16125 -V, --version print version number and configuration settings, then exit
16126 --config print configuration, then exit
16127 -q, --quiet, --silent
16128 do not print progress messages
16129 -d, --debug don't remove temporary files
16130 --recheck update $as_me by reconfiguring in the same conditions
16131 --file=FILE[:TEMPLATE]
16132 instantiate the configuration file FILE
16133 --header=FILE[:TEMPLATE]
16134 instantiate the configuration header FILE
16135
16136 Configuration files:
16137 $config_files
16138
16139 Configuration headers:
16140 $config_headers
16141
16142 Configuration commands:
16143 $config_commands
16144
16145 Report bugs to <https://github.com/ppp-project/ppp>."
16146
16147 _ACEOF
16148 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16149 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16151 ac_cs_config='$ac_cs_config_escaped'
16152 ac_cs_version="\\
16153 ppp config.status 2.5.2
16154 configured by $0, generated by GNU Autoconf 2.72,
16155 with options \\"\$ac_cs_config\\"
16156
16157 Copyright (C) 2023 Free Software Foundation, Inc.
16158 This config.status script is free software; the Free Software Foundation
16159 gives unlimited permission to copy, distribute and modify it."
16160
16161 ac_pwd='$ac_pwd'
16162 srcdir='$srcdir'
16163 INSTALL='$INSTALL'
16164 MKDIR_P='$MKDIR_P'
16165 AWK='$AWK'
16166 test -n "\$AWK" || AWK=awk
16167 _ACEOF
16168
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16170 # The default lists apply if the user does not specify any file.
16171 ac_need_defaults=:
16172 while test $# != 0
16173 do
16174 case $1 in
16175 --*=?*)
16176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16177 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16178 ac_shift=:
16179 ;;
16180 --*=)
16181 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16182 ac_optarg=
16183 ac_shift=:
16184 ;;
16185 *)
16186 ac_option=$1
16187 ac_optarg=$2
16188 ac_shift=shift
16189 ;;
16190 esac
16191
16192 case $ac_option in
16193 # Handling of the options.
16194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16195 ac_cs_recheck=: ;;
16196 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16197 printf "%s\n" "$ac_cs_version"; exit ;;
16198 --config | --confi | --conf | --con | --co | --c )
16199 printf "%s\n" "$ac_cs_config"; exit ;;
16200 --debug | --debu | --deb | --de | --d | -d )
16201 debug=: ;;
16202 --file | --fil | --fi | --f )
16203 $ac_shift
16204 case $ac_optarg in
16205 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16206 '') as_fn_error $? "missing file argument" ;;
16207 esac
16208 as_fn_append CONFIG_FILES " '$ac_optarg'"
16209 ac_need_defaults=false;;
16210 --header | --heade | --head | --hea )
16211 $ac_shift
16212 case $ac_optarg in
16213 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16214 esac
16215 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16216 ac_need_defaults=false;;
16217 --he | --h)
16218 # Conflict between --help and --header
16219 as_fn_error $? "ambiguous option: '$1'
16220 Try '$0 --help' for more information.";;
16221 --help | --hel | -h )
16222 printf "%s\n" "$ac_cs_usage"; exit ;;
16223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16225 ac_cs_silent=: ;;
16226
16227 # This is an error.
16228 -*) as_fn_error $? "unrecognized option: '$1'
16229 Try '$0 --help' for more information." ;;
16230
16231 *) as_fn_append ac_config_targets " $1"
16232 ac_need_defaults=false ;;
16233
16234 esac
16235 shift
16236 done
16237
16238 ac_configure_extra_args=
16239
16240 if $ac_cs_silent; then
16241 exec 6>/dev/null
16242 ac_configure_extra_args="$ac_configure_extra_args --silent"
16243 fi
16244
16245 _ACEOF
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 if \$ac_cs_recheck; then
16248 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16249 shift
16250 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16251 CONFIG_SHELL='$SHELL'
16252 export CONFIG_SHELL
16253 exec "\$@"
16254 fi
16255
16256 _ACEOF
16257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16258 exec 5>>config.log
16259 {
16260 echo
16261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16262 ## Running $as_me. ##
16263 _ASBOX
16264 printf "%s\n" "$ac_log"
16265 } >&5
16266
16267 _ACEOF
16268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16269 #
16270 # INIT-COMMANDS
16271 #
16272 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16273
16274
16275 # The HP-UX ksh and POSIX shell print the target directory to stdout
16276 # if CDPATH is set.
16277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16278
16279 sed_quote_subst='$sed_quote_subst'
16280 double_quote_subst='$double_quote_subst'
16281 delay_variable_subst='$delay_variable_subst'
16282 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16283 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16284 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16285 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16286 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16287 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16288 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16289 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16290 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16291 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16292 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16293 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16294 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16295 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16296 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16297 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16298 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16299 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16300 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16301 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16302 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16303 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16304 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16305 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16306 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16307 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16308 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16309 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16310 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16311 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16312 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16313 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16314 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16315 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16316 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16317 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16318 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16319 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16320 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16321 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16322 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16323 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16324 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16325 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16326 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16327 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16328 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16329 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16330 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16331 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16332 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16333 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16334 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16335 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16336 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16337 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16338 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16339 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16340 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16341 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16342 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16343 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16344 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16345 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16346 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16347 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16348 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16349 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16350 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16351 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16352 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16353 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16354 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16355 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16356 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16357 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16358 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16359 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16360 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16361 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16362 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16363 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16364 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16365 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16366 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16367 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16368 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16369 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16370 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16371 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16372 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16373 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16374 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16375 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16376 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16377 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16378 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16379 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16380 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16381 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16382 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16383 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16384 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16385 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16386 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16387 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16388 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16389 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16390 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16391 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16392 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16393 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16394 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16395 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16396 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16397 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16398 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16399 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16400 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16401 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16402 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16403 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16404 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16405 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16406 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16407 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16408 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16409 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16410 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16411 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16412 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16413 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16414 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16415 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16416 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16417 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16418 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16419
16420 LTCC='$LTCC'
16421 LTCFLAGS='$LTCFLAGS'
16422 compiler='$compiler_DEFAULT'
16423
16424 # A function that is used when there is no print builtin or printf.
16425 func_fallback_echo ()
16426 {
16427 eval 'cat <<_LTECHO_EOF
16428 \$1
16429 _LTECHO_EOF'
16430 }
16431
16432 # Quote evaled strings.
16433 for var in SHELL \
16434 ECHO \
16435 PATH_SEPARATOR \
16436 SED \
16437 GREP \
16438 EGREP \
16439 FGREP \
16440 LD \
16441 NM \
16442 LN_S \
16443 lt_SP2NL \
16444 lt_NL2SP \
16445 reload_flag \
16446 FILECMD \
16447 OBJDUMP \
16448 deplibs_check_method \
16449 file_magic_cmd \
16450 file_magic_glob \
16451 want_nocaseglob \
16452 DLLTOOL \
16453 sharedlib_from_linklib_cmd \
16454 AR \
16455 archiver_list_spec \
16456 STRIP \
16457 RANLIB \
16458 CC \
16459 CFLAGS \
16460 compiler \
16461 lt_cv_sys_global_symbol_pipe \
16462 lt_cv_sys_global_symbol_to_cdecl \
16463 lt_cv_sys_global_symbol_to_import \
16464 lt_cv_sys_global_symbol_to_c_name_address \
16465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16466 lt_cv_nm_interface \
16467 nm_file_list_spec \
16468 lt_cv_truncate_bin \
16469 lt_prog_compiler_no_builtin_flag \
16470 lt_prog_compiler_pic \
16471 lt_prog_compiler_wl \
16472 lt_prog_compiler_static \
16473 lt_cv_prog_compiler_c_o \
16474 need_locks \
16475 MANIFEST_TOOL \
16476 DSYMUTIL \
16477 NMEDIT \
16478 LIPO \
16479 OTOOL \
16480 OTOOL64 \
16481 shrext_cmds \
16482 export_dynamic_flag_spec \
16483 whole_archive_flag_spec \
16484 compiler_needs_object \
16485 with_gnu_ld \
16486 allow_undefined_flag \
16487 no_undefined_flag \
16488 hardcode_libdir_flag_spec \
16489 hardcode_libdir_separator \
16490 exclude_expsyms \
16491 include_expsyms \
16492 file_list_spec \
16493 variables_saved_for_relink \
16494 libname_spec \
16495 library_names_spec \
16496 soname_spec \
16497 install_override_mode \
16498 finish_eval \
16499 old_striplib \
16500 striplib; do
16501 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16502 *[\\\\\\\`\\"\\\$]*)
16503 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16504 ;;
16505 *)
16506 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16507 ;;
16508 esac
16509 done
16510
16511 # Double-quote double-evaled strings.
16512 for var in reload_cmds \
16513 old_postinstall_cmds \
16514 old_postuninstall_cmds \
16515 old_archive_cmds \
16516 extract_expsyms_cmds \
16517 old_archive_from_new_cmds \
16518 old_archive_from_expsyms_cmds \
16519 archive_cmds \
16520 archive_expsym_cmds \
16521 module_cmds \
16522 module_expsym_cmds \
16523 export_symbols_cmds \
16524 prelink_cmds \
16525 postlink_cmds \
16526 postinstall_cmds \
16527 postuninstall_cmds \
16528 finish_cmds \
16529 sys_lib_search_path_spec \
16530 configure_time_dlsearch_path \
16531 configure_time_lt_sys_library_path; do
16532 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16533 *[\\\\\\\`\\"\\\$]*)
16534 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16535 ;;
16536 *)
16537 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16538 ;;
16539 esac
16540 done
16541
16542 ac_aux_dir='$ac_aux_dir'
16543
16544 # See if we are running on zsh, and set the options that allow our
16545 # commands through without removal of \ escapes INIT.
16546 if test -n "\${ZSH_VERSION+set}"; then
16547 setopt NO_GLOB_SUBST
16548 fi
16549
16550
16551 PACKAGE='$PACKAGE'
16552 VERSION='$VERSION'
16553 RM='$RM'
16554 ofile='$ofile'
16555
16556
16557
16558
16559 _ACEOF
16560
16561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16562
16563 # Handling of arguments.
16564 for ac_config_target in $ac_config_targets
16565 do
16566 case $ac_config_target in
16567 "pppd/config.h") CONFIG_HEADERS="$CONFIG_HEADERS pppd/config.h" ;;
16568 "pppd/pppdconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pppd/pppdconf.h" ;;
16569 "pppd/plugins/pppoe/config.h") CONFIG_HEADERS="$CONFIG_HEADERS pppd/plugins/pppoe/config.h" ;;
16570 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16571 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16572 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16573 "chat/Makefile") CONFIG_FILES="$CONFIG_FILES chat/Makefile" ;;
16574 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16575 "pppd/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/Makefile" ;;
16576 "pppd/pppd.pc") CONFIG_FILES="$CONFIG_FILES pppd/pppd.pc" ;;
16577 "pppd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/Makefile" ;;
16578 "pppd/plugins/pppoe/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/pppoe/Makefile" ;;
16579 "pppd/plugins/pppoatm/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/pppoatm/Makefile" ;;
16580 "pppd/plugins/pppol2tp/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/pppol2tp/Makefile" ;;
16581 "pppd/plugins/radius/Makefile") CONFIG_FILES="$CONFIG_FILES pppd/plugins/radius/Makefile" ;;
16582 "pppdump/Makefile") CONFIG_FILES="$CONFIG_FILES pppdump/Makefile" ;;
16583 "pppstats/Makefile") CONFIG_FILES="$CONFIG_FILES pppstats/Makefile" ;;
16584 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16585
16586 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16587 esac
16588 done
16589
16590
16591 # If the user did not use the arguments to specify the items to instantiate,
16592 # then the envvar interface is used. Set only those that are not.
16593 # We use the long form for the default assignment because of an extremely
16594 # bizarre bug on SunOS 4.1.3.
16595 if $ac_need_defaults; then
16596 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16597 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16598 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16599 fi
16600
16601 # Have a temporary directory for convenience. Make it in the build tree
16602 # simply because there is no reason against having it here, and in addition,
16603 # creating and moving files from /tmp can sometimes cause problems.
16604 # Hook for its removal unless debugging.
16605 # Note that there is a small window in which the directory will not be cleaned:
16606 # after its creation but before its name has been assigned to '$tmp'.
16607 $debug ||
16608 {
16609 tmp= ac_tmp=
16610 trap 'exit_status=$?
16611 : "${ac_tmp:=$tmp}"
16612 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16613 ' 0
16614 trap 'as_fn_exit 1' 1 2 13 15
16615 }
16616 # Create a (secure) tmp directory for tmp files.
16617
16618 {
16619 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16620 test -d "$tmp"
16621 } ||
16622 {
16623 tmp=./conf$$-$RANDOM
16624 (umask 077 && mkdir "$tmp")
16625 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16626 ac_tmp=$tmp
16627
16628 # Set up the scripts for CONFIG_FILES section.
16629 # No need to generate them if there are no CONFIG_FILES.
16630 # This happens for instance with './config.status config.h'.
16631 if test -n "$CONFIG_FILES"; then
16632
16633
16634 ac_cr=`echo X | tr X '\015'`
16635 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16636 # But we know of no other shell where ac_cr would be empty at this
16637 # point, so we can use a bashism as a fallback.
16638 if test "x$ac_cr" = x; then
16639 eval ac_cr=\$\'\\r\'
16640 fi
16641 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16642 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16643 ac_cs_awk_cr='\\r'
16644 else
16645 ac_cs_awk_cr=$ac_cr
16646 fi
16647
16648 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16649 _ACEOF
16650
16651
16652 {
16653 echo "cat >conf$$subs.awk <<_ACEOF" &&
16654 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16655 echo "_ACEOF"
16656 } >conf$$subs.sh ||
16657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16658 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16659 ac_delim='%!_!# '
16660 for ac_last_try in false false false false false :; do
16661 . ./conf$$subs.sh ||
16662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16663
16664 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16665 if test $ac_delim_n = $ac_delim_num; then
16666 break
16667 elif $ac_last_try; then
16668 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16669 else
16670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16671 fi
16672 done
16673 rm -f conf$$subs.sh
16674
16675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16676 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16677 _ACEOF
16678 sed -n '
16679 h
16680 s/^/S["/; s/!.*/"]=/
16681 p
16682 g
16683 s/^[^!]*!//
16684 :repl
16685 t repl
16686 s/'"$ac_delim"'$//
16687 t delim
16688 :nl
16689 h
16690 s/\(.\{148\}\)..*/\1/
16691 t more1
16692 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16693 p
16694 n
16695 b repl
16696 :more1
16697 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16698 p
16699 g
16700 s/.\{148\}//
16701 t nl
16702 :delim
16703 h
16704 s/\(.\{148\}\)..*/\1/
16705 t more2
16706 s/["\\]/\\&/g; s/^/"/; s/$/"/
16707 p
16708 b
16709 :more2
16710 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16711 p
16712 g
16713 s/.\{148\}//
16714 t delim
16715 ' <conf$$subs.awk | sed '
16716 /^[^""]/{
16717 N
16718 s/\n//
16719 }
16720 ' >>$CONFIG_STATUS || ac_write_fail=1
16721 rm -f conf$$subs.awk
16722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16723 _ACAWK
16724 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16725 for (key in S) S_is_set[key] = 1
16726 FS = ""
16727
16728 }
16729 {
16730 line = $ 0
16731 nfields = split(line, field, "@")
16732 substed = 0
16733 len = length(field[1])
16734 for (i = 2; i < nfields; i++) {
16735 key = field[i]
16736 keylen = length(key)
16737 if (S_is_set[key]) {
16738 value = S[key]
16739 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16740 len += length(value) + length(field[++i])
16741 substed = 1
16742 } else
16743 len += 1 + keylen
16744 }
16745
16746 print line
16747 }
16748
16749 _ACAWK
16750 _ACEOF
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16752 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16753 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16754 else
16755 cat
16756 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16757 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16758 _ACEOF
16759
16760 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16761 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16762 # trailing colons and then remove the whole line if VPATH becomes empty
16763 # (actually we leave an empty line to preserve line numbers).
16764 if test "x$srcdir" = x.; then
16765 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16766 h
16767 s///
16768 s/^/:/
16769 s/[ ]*$/:/
16770 s/:\$(srcdir):/:/g
16771 s/:\${srcdir}:/:/g
16772 s/:@srcdir@:/:/g
16773 s/^:*//
16774 s/:*$//
16775 x
16776 s/\(=[ ]*\).*/\1/
16777 G
16778 s/\n//
16779 s/^[^=]*=[ ]*$//
16780 }'
16781 fi
16782
16783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16784 fi # test -n "$CONFIG_FILES"
16785
16786 # Set up the scripts for CONFIG_HEADERS section.
16787 # No need to generate them if there are no CONFIG_HEADERS.
16788 # This happens for instance with './config.status Makefile'.
16789 if test -n "$CONFIG_HEADERS"; then
16790 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16791 BEGIN {
16792 _ACEOF
16793
16794 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16795 # here-document in config.status, that substitutes the proper values into
16796 # config.h.in to produce config.h.
16797
16798 # Create a delimiter string that does not exist in confdefs.h, to ease
16799 # handling of long lines.
16800 ac_delim='%!_!# '
16801 for ac_last_try in false false :; do
16802 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16803 if test -z "$ac_tt"; then
16804 break
16805 elif $ac_last_try; then
16806 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16807 else
16808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16809 fi
16810 done
16811
16812 # For the awk script, D is an array of macro values keyed by name,
16813 # likewise P contains macro parameters if any. Preserve backslash
16814 # newline sequences.
16815
16816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16817 sed -n '
16818 s/.\{148\}/&'"$ac_delim"'/g
16819 t rset
16820 :rset
16821 s/^[ ]*#[ ]*define[ ][ ]*/ /
16822 t def
16823 d
16824 :def
16825 s/\\$//
16826 t bsnl
16827 s/["\\]/\\&/g
16828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16829 D["\1"]=" \3"/p
16830 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16831 d
16832 :bsnl
16833 s/["\\]/\\&/g
16834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16835 D["\1"]=" \3\\\\\\n"\\/p
16836 t cont
16837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16838 t cont
16839 d
16840 :cont
16841 n
16842 s/.\{148\}/&'"$ac_delim"'/g
16843 t clear
16844 :clear
16845 s/\\$//
16846 t bsnlc
16847 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16848 d
16849 :bsnlc
16850 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16851 b cont
16852 ' <confdefs.h | sed '
16853 s/'"$ac_delim"'/"\\\
16854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16855
16856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16857 for (key in D) D_is_set[key] = 1
16858 FS = ""
16859 }
16860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16861 line = \$ 0
16862 split(line, arg, " ")
16863 if (arg[1] == "#") {
16864 defundef = arg[2]
16865 mac1 = arg[3]
16866 } else {
16867 defundef = substr(arg[1], 2)
16868 mac1 = arg[2]
16869 }
16870 split(mac1, mac2, "(") #)
16871 macro = mac2[1]
16872 prefix = substr(line, 1, index(line, defundef) - 1)
16873 if (D_is_set[macro]) {
16874 # Preserve the white space surrounding the "#".
16875 print prefix "define", macro P[macro] D[macro]
16876 next
16877 } else {
16878 # Replace #undef with comments. This is necessary, for example,
16879 # in the case of _POSIX_SOURCE, which is predefined and required
16880 # on some systems where configure will not decide to define it.
16881 if (defundef == "undef") {
16882 print "/*", prefix defundef, macro, "*/"
16883 next
16884 }
16885 }
16886 }
16887 { print }
16888 _ACAWK
16889 _ACEOF
16890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16891 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16892 fi # test -n "$CONFIG_HEADERS"
16893
16894
16895 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16896 shift
16897 for ac_tag
16898 do
16899 case $ac_tag in
16900 :[FHLC]) ac_mode=$ac_tag; continue;;
16901 esac
16902 case $ac_mode$ac_tag in
16903 :[FHL]*:*);;
16904 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16905 :[FH]-) ac_tag=-:-;;
16906 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16907 esac
16908 ac_save_IFS=$IFS
16909 IFS=:
16910 set x $ac_tag
16911 IFS=$ac_save_IFS
16912 shift
16913 ac_file=$1
16914 shift
16915
16916 case $ac_mode in
16917 :L) ac_source=$1;;
16918 :[FH])
16919 ac_file_inputs=
16920 for ac_f
16921 do
16922 case $ac_f in
16923 -) ac_f="$ac_tmp/stdin";;
16924 *) # Look for the file first in the build tree, then in the source tree
16925 # (if the path is not absolute). The absolute path cannot be DOS-style,
16926 # because $ac_f cannot contain ':'.
16927 test -f "$ac_f" ||
16928 case $ac_f in
16929 [\\/$]*) false;;
16930 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16931 esac ||
16932 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16933 esac
16934 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16935 as_fn_append ac_file_inputs " '$ac_f'"
16936 done
16937
16938 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16939 # use $as_me), people would be surprised to read:
16940 # /* config.h. Generated by config.status. */
16941 configure_input='Generated from '`
16942 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16943 `' by configure.'
16944 if test x"$ac_file" != x-; then
16945 configure_input="$ac_file. $configure_input"
16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16947 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16948 fi
16949 # Neutralize special characters interpreted by sed in replacement strings.
16950 case $configure_input in #(
16951 *\&* | *\|* | *\\* )
16952 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16953 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16954 *) ac_sed_conf_input=$configure_input;;
16955 esac
16956
16957 case $ac_tag in
16958 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16960 esac
16961 ;;
16962 esac
16963
16964 ac_dir=`$as_dirname -- "$ac_file" ||
16965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16966 X"$ac_file" : 'X\(//\)[^/]' \| \
16967 X"$ac_file" : 'X\(//\)$' \| \
16968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16969 printf "%s\n" X"$ac_file" |
16970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16971 s//\1/
16972 q
16973 }
16974 /^X\(\/\/\)[^/].*/{
16975 s//\1/
16976 q
16977 }
16978 /^X\(\/\/\)$/{
16979 s//\1/
16980 q
16981 }
16982 /^X\(\/\).*/{
16983 s//\1/
16984 q
16985 }
16986 s/.*/./; q'`
16987 as_dir="$ac_dir"; as_fn_mkdir_p
16988 ac_builddir=.
16989
16990 case "$ac_dir" in
16991 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16992 *)
16993 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16994 # A ".." for each directory in $ac_dir_suffix.
16995 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16996 case $ac_top_builddir_sub in
16997 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16998 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16999 esac ;;
17000 esac
17001 ac_abs_top_builddir=$ac_pwd
17002 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17003 # for backward compatibility:
17004 ac_top_builddir=$ac_top_build_prefix
17005
17006 case $srcdir in
17007 .) # We are building in place.
17008 ac_srcdir=.
17009 ac_top_srcdir=$ac_top_builddir_sub
17010 ac_abs_top_srcdir=$ac_pwd ;;
17011 [\\/]* | ?:[\\/]* ) # Absolute name.
17012 ac_srcdir=$srcdir$ac_dir_suffix;
17013 ac_top_srcdir=$srcdir
17014 ac_abs_top_srcdir=$srcdir ;;
17015 *) # Relative name.
17016 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17017 ac_top_srcdir=$ac_top_build_prefix$srcdir
17018 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17019 esac
17020 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17021
17022
17023 case $ac_mode in
17024 :F)
17025 #
17026 # CONFIG_FILE
17027 #
17028
17029 case $INSTALL in
17030 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17031 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17032 esac
17033 ac_MKDIR_P=$MKDIR_P
17034 case $MKDIR_P in
17035 [\\/$]* | ?:[\\/]* ) ;;
17036 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17037 esac
17038 _ACEOF
17039
17040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17041 # If the template does not know about datarootdir, expand it.
17042 # FIXME: This hack should be removed a few years after 2.60.
17043 ac_datarootdir_hack=; ac_datarootdir_seen=
17044 ac_sed_dataroot='
17045 /datarootdir/ {
17046 p
17047 q
17048 }
17049 /@datadir@/p
17050 /@docdir@/p
17051 /@infodir@/p
17052 /@localedir@/p
17053 /@mandir@/p'
17054 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17055 *datarootdir*) ac_datarootdir_seen=yes;;
17056 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17058 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17059 _ACEOF
17060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17061 ac_datarootdir_hack='
17062 s&@datadir@&$datadir&g
17063 s&@docdir@&$docdir&g
17064 s&@infodir@&$infodir&g
17065 s&@localedir@&$localedir&g
17066 s&@mandir@&$mandir&g
17067 s&\\\${datarootdir}&$datarootdir&g' ;;
17068 esac
17069 _ACEOF
17070
17071 # Neutralize VPATH when '$srcdir' = '.'.
17072 # Shell code in configure.ac might set extrasub.
17073 # FIXME: do we really want to maintain this feature?
17074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17075 ac_sed_extra="$ac_vpsub
17076 $extrasub
17077 _ACEOF
17078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17079 :t
17080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17081 s|@configure_input@|$ac_sed_conf_input|;t t
17082 s&@top_builddir@&$ac_top_builddir_sub&;t t
17083 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17084 s&@srcdir@&$ac_srcdir&;t t
17085 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17086 s&@top_srcdir@&$ac_top_srcdir&;t t
17087 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17088 s&@builddir@&$ac_builddir&;t t
17089 s&@abs_builddir@&$ac_abs_builddir&;t t
17090 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17091 s&@INSTALL@&$ac_INSTALL&;t t
17092 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17093 $ac_datarootdir_hack
17094 "
17095 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17096 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17097
17098 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17099 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17101 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17103 which seems to be undefined. Please make sure it is defined" >&5
17104 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17105 which seems to be undefined. Please make sure it is defined" >&2;}
17106
17107 rm -f "$ac_tmp/stdin"
17108 case $ac_file in
17109 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17110 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17111 esac \
17112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17113 ;;
17114 :H)
17115 #
17116 # CONFIG_HEADER
17117 #
17118 if test x"$ac_file" != x-; then
17119 {
17120 printf "%s\n" "/* $configure_input */" >&1 \
17121 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17122 } >"$ac_tmp/config.h" \
17123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17124 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17126 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17127 else
17128 rm -f "$ac_file"
17129 mv "$ac_tmp/config.h" "$ac_file" \
17130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17131 fi
17132 else
17133 printf "%s\n" "/* $configure_input */" >&1 \
17134 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17135 || as_fn_error $? "could not create -" "$LINENO" 5
17136 fi
17137 # Compute "$ac_file"'s index in $config_headers.
17138 _am_arg="$ac_file"
17139 _am_stamp_count=1
17140 for _am_header in $config_headers :; do
17141 case $_am_header in
17142 $_am_arg | $_am_arg:* )
17143 break ;;
17144 * )
17145 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17146 esac
17147 done
17148 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17149 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17150 X"$_am_arg" : 'X\(//\)[^/]' \| \
17151 X"$_am_arg" : 'X\(//\)$' \| \
17152 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17153 printf "%s\n" X"$_am_arg" |
17154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17155 s//\1/
17156 q
17157 }
17158 /^X\(\/\/\)[^/].*/{
17159 s//\1/
17160 q
17161 }
17162 /^X\(\/\/\)$/{
17163 s//\1/
17164 q
17165 }
17166 /^X\(\/\).*/{
17167 s//\1/
17168 q
17169 }
17170 s/.*/./; q'`/stamp-h$_am_stamp_count
17171 ;;
17172
17173 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17174 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17175 ;;
17176 esac
17177
17178
17179 case $ac_file$ac_mode in
17180 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17181 # Older Autoconf quotes --file arguments for eval, but not when files
17182 # are listed without --file. Let's play safe and only enable the eval
17183 # if we detect the quoting.
17184 # TODO: see whether this extra hack can be removed once we start
17185 # requiring Autoconf 2.70 or later.
17186 case $CONFIG_FILES in #(
17187 *\'*) :
17188 eval set x "$CONFIG_FILES" ;; #(
17189 *) :
17190 set x $CONFIG_FILES ;; #(
17191 *) :
17192 ;;
17193 esac
17194 shift
17195 # Used to flag and report bootstrapping failures.
17196 am_rc=0
17197 for am_mf
17198 do
17199 # Strip MF so we end up with the name of the file.
17200 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17201 # Check whether this is an Automake generated Makefile which includes
17202 # dependency-tracking related rules and includes.
17203 # Grep'ing the whole file directly is not great: AIX grep has a line
17204 # limit of 2048, but all sed's we know have understand at least 4000.
17205 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17206 || continue
17207 am_dirpart=`$as_dirname -- "$am_mf" ||
17208 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17209 X"$am_mf" : 'X\(//\)[^/]' \| \
17210 X"$am_mf" : 'X\(//\)$' \| \
17211 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17212 printf "%s\n" X"$am_mf" |
17213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17214 s//\1/
17215 q
17216 }
17217 /^X\(\/\/\)[^/].*/{
17218 s//\1/
17219 q
17220 }
17221 /^X\(\/\/\)$/{
17222 s//\1/
17223 q
17224 }
17225 /^X\(\/\).*/{
17226 s//\1/
17227 q
17228 }
17229 s/.*/./; q'`
17230 am_filepart=`$as_basename -- "$am_mf" ||
17231 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17232 X"$am_mf" : 'X\(//\)$' \| \
17233 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17234 printf "%s\n" X/"$am_mf" |
17235 sed '/^.*\/\([^/][^/]*\)\/*$/{
17236 s//\1/
17237 q
17238 }
17239 /^X\/\(\/\/\)$/{
17240 s//\1/
17241 q
17242 }
17243 /^X\/\(\/\).*/{
17244 s//\1/
17245 q
17246 }
17247 s/.*/./; q'`
17248 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17249 && sed -e '/# am--include-marker/d' "$am_filepart" \
17250 | $MAKE -f - am--depfiles" >&5
17251 (cd "$am_dirpart" \
17252 && sed -e '/# am--include-marker/d' "$am_filepart" \
17253 | $MAKE -f - am--depfiles) >&5 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } || am_rc=$?
17257 done
17258 if test $am_rc -ne 0; then
17259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17260 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17261 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17262 for automatic dependency tracking. If GNU make was not used, consider
17263 re-running the configure script with MAKE=\"gmake\" (or whatever is
17264 necessary). You can also try re-running configure with the
17265 '--disable-dependency-tracking' option to at least be able to build
17266 the package (albeit without support for automatic dependency tracking).
17267 See 'config.log' for more details" "$LINENO" 5; }
17268 fi
17269 { am_dirpart=; unset am_dirpart;}
17270 { am_filepart=; unset am_filepart;}
17271 { am_mf=; unset am_mf;}
17272 { am_rc=; unset am_rc;}
17273 rm -f conftest-deps.mk
17274 }
17275 ;;
17276 "libtool":C)
17277
17278 # See if we are running on zsh, and set the options that allow our
17279 # commands through without removal of \ escapes.
17280 if test -n "${ZSH_VERSION+set}"; then
17281 setopt NO_GLOB_SUBST
17282 fi
17283
17284 cfgfile=${ofile}T
17285 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17286 $RM "$cfgfile"
17287
17288 cat <<_LT_EOF >> "$cfgfile"
17289 #! $SHELL
17290 # Generated automatically by $as_me ($PACKAGE) $VERSION
17291 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17292 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17293
17294 # Provide generalized library-building support services.
17295 # Written by Gordon Matzigkeit, 1996
17296
17297 # Copyright (C) 2014 Free Software Foundation, Inc.
17298 # This is free software; see the source for copying conditions. There is NO
17299 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17300
17301 # GNU Libtool is free software; you can redistribute it and/or modify
17302 # it under the terms of the GNU General Public License as published by
17303 # the Free Software Foundation; either version 2 of of the License, or
17304 # (at your option) any later version.
17305 #
17306 # As a special exception to the GNU General Public License, if you
17307 # distribute this file as part of a program or library that is built
17308 # using GNU Libtool, you may include this file under the same
17309 # distribution terms that you use for the rest of that program.
17310 #
17311 # GNU Libtool is distributed in the hope that it will be useful, but
17312 # WITHOUT ANY WARRANTY; without even the implied warranty of
17313 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17314 # GNU General Public License for more details.
17315 #
17316 # You should have received a copy of the GNU General Public License
17317 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17318
17319
17320 # The names of the tagged configurations supported by this script.
17321 available_tags=''
17322
17323 # Configured defaults for sys_lib_dlsearch_path munging.
17324 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17325
17326 # ### BEGIN LIBTOOL CONFIG
17327
17328 # Whether or not to build static libraries.
17329 build_old_libs=$enable_static
17330
17331 # Which release of libtool.m4 was used?
17332 macro_version=$macro_version
17333 macro_revision=$macro_revision
17334
17335 # Whether or not to build shared libraries.
17336 build_libtool_libs=$enable_shared
17337
17338 # What type of objects to build.
17339 pic_mode=$pic_mode
17340
17341 # Whether or not to optimize for fast installation.
17342 fast_install=$enable_fast_install
17343
17344 # Shared archive member basename,for filename based shared library versioning on AIX.
17345 shared_archive_member_spec=$shared_archive_member_spec
17346
17347 # Shell to use when invoking shell scripts.
17348 SHELL=$lt_SHELL
17349
17350 # An echo program that protects backslashes.
17351 ECHO=$lt_ECHO
17352
17353 # The PATH separator for the build system.
17354 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17355
17356 # The host system.
17357 host_alias=$host_alias
17358 host=$host
17359 host_os=$host_os
17360
17361 # The build system.
17362 build_alias=$build_alias
17363 build=$build
17364 build_os=$build_os
17365
17366 # A sed program that does not truncate output.
17367 SED=$lt_SED
17368
17369 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17370 Xsed="\$SED -e 1s/^X//"
17371
17372 # A grep program that handles long lines.
17373 GREP=$lt_GREP
17374
17375 # An ERE matcher.
17376 EGREP=$lt_EGREP
17377
17378 # A literal string matcher.
17379 FGREP=$lt_FGREP
17380
17381 # A BSD- or MS-compatible name lister.
17382 NM=$lt_NM
17383
17384 # Whether we need soft or hard links.
17385 LN_S=$lt_LN_S
17386
17387 # What is the maximum length of a command?
17388 max_cmd_len=$max_cmd_len
17389
17390 # Object file suffix (normally "o").
17391 objext=$ac_objext
17392
17393 # Executable file suffix (normally "").
17394 exeext=$exeext
17395
17396 # whether the shell understands "unset".
17397 lt_unset=$lt_unset
17398
17399 # turn spaces into newlines.
17400 SP2NL=$lt_lt_SP2NL
17401
17402 # turn newlines into spaces.
17403 NL2SP=$lt_lt_NL2SP
17404
17405 # convert \$build file names to \$host format.
17406 to_host_file_cmd=$lt_cv_to_host_file_cmd
17407
17408 # convert \$build files to toolchain format.
17409 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17410
17411 # A file(cmd) program that detects file types.
17412 FILECMD=$lt_FILECMD
17413
17414 # An object symbol dumper.
17415 OBJDUMP=$lt_OBJDUMP
17416
17417 # Method to check whether dependent libraries are shared objects.
17418 deplibs_check_method=$lt_deplibs_check_method
17419
17420 # Command to use when deplibs_check_method = "file_magic".
17421 file_magic_cmd=$lt_file_magic_cmd
17422
17423 # How to find potential files when deplibs_check_method = "file_magic".
17424 file_magic_glob=$lt_file_magic_glob
17425
17426 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17427 want_nocaseglob=$lt_want_nocaseglob
17428
17429 # DLL creation program.
17430 DLLTOOL=$lt_DLLTOOL
17431
17432 # Command to associate shared and link libraries.
17433 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17434
17435 # The archiver.
17436 AR=$lt_AR
17437
17438 # Flags to create an archive (by configure).
17439 lt_ar_flags=$lt_ar_flags
17440
17441 # Flags to create an archive.
17442 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17443
17444 # How to feed a file listing to the archiver.
17445 archiver_list_spec=$lt_archiver_list_spec
17446
17447 # A symbol stripping program.
17448 STRIP=$lt_STRIP
17449
17450 # Commands used to install an old-style archive.
17451 RANLIB=$lt_RANLIB
17452 old_postinstall_cmds=$lt_old_postinstall_cmds
17453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17454
17455 # Whether to use a lock for old archive extraction.
17456 lock_old_archive_extraction=$lock_old_archive_extraction
17457
17458 # A C compiler.
17459 LTCC=$lt_CC
17460
17461 # LTCC compiler flags.
17462 LTCFLAGS=$lt_CFLAGS
17463
17464 # Take the output of nm and produce a listing of raw symbols and C names.
17465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17466
17467 # Transform the output of nm in a proper C declaration.
17468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17469
17470 # Transform the output of nm into a list of symbols to manually relocate.
17471 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17472
17473 # Transform the output of nm in a C name address pair.
17474 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17475
17476 # Transform the output of nm in a C name address pair when lib prefix is needed.
17477 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17478
17479 # The name lister interface.
17480 nm_interface=$lt_lt_cv_nm_interface
17481
17482 # Specify filename containing input files for \$NM.
17483 nm_file_list_spec=$lt_nm_file_list_spec
17484
17485 # The root where to search for dependent libraries,and where our libraries should be installed.
17486 lt_sysroot=$lt_sysroot
17487
17488 # Command to truncate a binary pipe.
17489 lt_truncate_bin=$lt_lt_cv_truncate_bin
17490
17491 # The name of the directory that contains temporary libtool files.
17492 objdir=$objdir
17493
17494 # Used to examine libraries when file_magic_cmd begins with "file".
17495 MAGIC_CMD=$MAGIC_CMD
17496
17497 # Must we lock files when doing compilation?
17498 need_locks=$lt_need_locks
17499
17500 # Manifest tool.
17501 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17502
17503 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17504 DSYMUTIL=$lt_DSYMUTIL
17505
17506 # Tool to change global to local symbols on Mac OS X.
17507 NMEDIT=$lt_NMEDIT
17508
17509 # Tool to manipulate fat objects and archives on Mac OS X.
17510 LIPO=$lt_LIPO
17511
17512 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17513 OTOOL=$lt_OTOOL
17514
17515 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17516 OTOOL64=$lt_OTOOL64
17517
17518 # Old archive suffix (normally "a").
17519 libext=$libext
17520
17521 # Shared library suffix (normally ".so").
17522 shrext_cmds=$lt_shrext_cmds
17523
17524 # The commands to extract the exported symbol list from a shared archive.
17525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17526
17527 # Variables whose values should be saved in libtool wrapper scripts and
17528 # restored at link time.
17529 variables_saved_for_relink=$lt_variables_saved_for_relink
17530
17531 # Do we need the "lib" prefix for modules?
17532 need_lib_prefix=$need_lib_prefix
17533
17534 # Do we need a version for libraries?
17535 need_version=$need_version
17536
17537 # Library versioning type.
17538 version_type=$version_type
17539
17540 # Shared library runtime path variable.
17541 runpath_var=$runpath_var
17542
17543 # Shared library path variable.
17544 shlibpath_var=$shlibpath_var
17545
17546 # Is shlibpath searched before the hard-coded library search path?
17547 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17548
17549 # Format of library name prefix.
17550 libname_spec=$lt_libname_spec
17551
17552 # List of archive names. First name is the real one, the rest are links.
17553 # The last name is the one that the linker finds with -lNAME
17554 library_names_spec=$lt_library_names_spec
17555
17556 # The coded name of the library, if different from the real name.
17557 soname_spec=$lt_soname_spec
17558
17559 # Permission mode override for installation of shared libraries.
17560 install_override_mode=$lt_install_override_mode
17561
17562 # Command to use after installation of a shared archive.
17563 postinstall_cmds=$lt_postinstall_cmds
17564
17565 # Command to use after uninstallation of a shared archive.
17566 postuninstall_cmds=$lt_postuninstall_cmds
17567
17568 # Commands used to finish a libtool library installation in a directory.
17569 finish_cmds=$lt_finish_cmds
17570
17571 # As "finish_cmds", except a single script fragment to be evaled but
17572 # not shown.
17573 finish_eval=$lt_finish_eval
17574
17575 # Whether we should hardcode library paths into libraries.
17576 hardcode_into_libs=$hardcode_into_libs
17577
17578 # Compile-time system search path for libraries.
17579 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17580
17581 # Detected run-time system search path for libraries.
17582 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17583
17584 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17585 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17586
17587 # Whether dlopen is supported.
17588 dlopen_support=$enable_dlopen
17589
17590 # Whether dlopen of programs is supported.
17591 dlopen_self=$enable_dlopen_self
17592
17593 # Whether dlopen of statically linked programs is supported.
17594 dlopen_self_static=$enable_dlopen_self_static
17595
17596 # Commands to strip libraries.
17597 old_striplib=$lt_old_striplib
17598 striplib=$lt_striplib
17599
17600
17601 # The linker used to build libraries.
17602 LD=$lt_LD
17603
17604 # How to create reloadable object files.
17605 reload_flag=$lt_reload_flag
17606 reload_cmds=$lt_reload_cmds
17607
17608 # Commands used to build an old-style archive.
17609 old_archive_cmds=$lt_old_archive_cmds
17610
17611 # A language specific compiler.
17612 CC=$lt_compiler
17613
17614 # Is the compiler the GNU compiler?
17615 with_gcc=$GCC
17616
17617 # Compiler flag to turn off builtin functions.
17618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17619
17620 # Additional compiler flags for building library objects.
17621 pic_flag=$lt_lt_prog_compiler_pic
17622
17623 # How to pass a linker flag through the compiler.
17624 wl=$lt_lt_prog_compiler_wl
17625
17626 # Compiler flag to prevent dynamic linking.
17627 link_static_flag=$lt_lt_prog_compiler_static
17628
17629 # Does compiler simultaneously support -c and -o options?
17630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17631
17632 # Whether or not to add -lc for building shared libraries.
17633 build_libtool_need_lc=$archive_cmds_need_lc
17634
17635 # Whether or not to disallow shared libs when runtime libs are static.
17636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17637
17638 # Compiler flag to allow reflexive dlopens.
17639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17640
17641 # Compiler flag to generate shared objects directly from archives.
17642 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17643
17644 # Whether the compiler copes with passing no objects directly.
17645 compiler_needs_object=$lt_compiler_needs_object
17646
17647 # Create an old-style archive from a shared archive.
17648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17649
17650 # Create a temporary old-style archive to link instead of a shared archive.
17651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17652
17653 # Commands used to build a shared archive.
17654 archive_cmds=$lt_archive_cmds
17655 archive_expsym_cmds=$lt_archive_expsym_cmds
17656
17657 # Commands used to build a loadable module if different from building
17658 # a shared archive.
17659 module_cmds=$lt_module_cmds
17660 module_expsym_cmds=$lt_module_expsym_cmds
17661
17662 # Whether we are building with GNU ld or not.
17663 with_gnu_ld=$lt_with_gnu_ld
17664
17665 # Flag that allows shared libraries with undefined symbols to be built.
17666 allow_undefined_flag=$lt_allow_undefined_flag
17667
17668 # Flag that enforces no undefined symbols.
17669 no_undefined_flag=$lt_no_undefined_flag
17670
17671 # Flag to hardcode \$libdir into a binary during linking.
17672 # This must work even if \$libdir does not exist
17673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17674
17675 # Whether we need a single "-rpath" flag with a separated argument.
17676 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17677
17678 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17679 # DIR into the resulting binary.
17680 hardcode_direct=$hardcode_direct
17681
17682 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17683 # DIR into the resulting binary and the resulting library dependency is
17684 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17685 # library is relocated.
17686 hardcode_direct_absolute=$hardcode_direct_absolute
17687
17688 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17689 # into the resulting binary.
17690 hardcode_minus_L=$hardcode_minus_L
17691
17692 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17693 # into the resulting binary.
17694 hardcode_shlibpath_var=$hardcode_shlibpath_var
17695
17696 # Set to "yes" if building a shared library automatically hardcodes DIR
17697 # into the library and all subsequent libraries and executables linked
17698 # against it.
17699 hardcode_automatic=$hardcode_automatic
17700
17701 # Set to yes if linker adds runtime paths of dependent libraries
17702 # to runtime path list.
17703 inherit_rpath=$inherit_rpath
17704
17705 # Whether libtool must link a program against all its dependency libraries.
17706 link_all_deplibs=$link_all_deplibs
17707
17708 # Set to "yes" if exported symbols are required.
17709 always_export_symbols=$always_export_symbols
17710
17711 # The commands to list exported symbols.
17712 export_symbols_cmds=$lt_export_symbols_cmds
17713
17714 # Symbols that should not be listed in the preloaded symbols.
17715 exclude_expsyms=$lt_exclude_expsyms
17716
17717 # Symbols that must always be exported.
17718 include_expsyms=$lt_include_expsyms
17719
17720 # Commands necessary for linking programs (against libraries) with templates.
17721 prelink_cmds=$lt_prelink_cmds
17722
17723 # Commands necessary for finishing linking programs.
17724 postlink_cmds=$lt_postlink_cmds
17725
17726 # Specify filename containing input files.
17727 file_list_spec=$lt_file_list_spec
17728
17729 # How to hardcode a shared library path into an executable.
17730 hardcode_action=$hardcode_action
17731
17732 # ### END LIBTOOL CONFIG
17733
17734 _LT_EOF
17735
17736 cat <<'_LT_EOF' >> "$cfgfile"
17737
17738 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17739
17740 # func_munge_path_list VARIABLE PATH
17741 # -----------------------------------
17742 # VARIABLE is name of variable containing _space_ separated list of
17743 # directories to be munged by the contents of PATH, which is string
17744 # having a format:
17745 # "DIR[:DIR]:"
17746 # string "DIR[ DIR]" will be prepended to VARIABLE
17747 # ":DIR[:DIR]"
17748 # string "DIR[ DIR]" will be appended to VARIABLE
17749 # "DIRP[:DIRP]::[DIRA:]DIRA"
17750 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17751 # "DIRA[ DIRA]" will be appended to VARIABLE
17752 # "DIR[:DIR]"
17753 # VARIABLE will be replaced by "DIR[ DIR]"
17754 func_munge_path_list ()
17755 {
17756 case x$2 in
17757 x)
17758 ;;
17759 *:)
17760 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17761 ;;
17762 x:*)
17763 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17764 ;;
17765 *::*)
17766 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17767 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17768 ;;
17769 *)
17770 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17771 ;;
17772 esac
17773 }
17774
17775
17776 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17777 func_cc_basename ()
17778 {
17779 for cc_temp in $*""; do
17780 case $cc_temp in
17781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17783 \-*) ;;
17784 *) break;;
17785 esac
17786 done
17787 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17788 }
17789
17790
17791 # ### END FUNCTIONS SHARED WITH CONFIGURE
17792
17793 _LT_EOF
17794
17795 case $host_os in
17796 aix3*)
17797 cat <<\_LT_EOF >> "$cfgfile"
17798 # AIX sometimes has problems with the GCC collect2 program. For some
17799 # reason, if we set the COLLECT_NAMES environment variable, the problems
17800 # vanish in a puff of smoke.
17801 if test set != "${COLLECT_NAMES+set}"; then
17802 COLLECT_NAMES=
17803 export COLLECT_NAMES
17804 fi
17805 _LT_EOF
17806 ;;
17807 esac
17808
17809
17810
17811 ltmain=$ac_aux_dir/ltmain.sh
17812
17813
17814 # We use sed instead of cat because bash on DJGPP gets confused if
17815 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17816 # text mode, it properly converts lines to CR/LF. This bash problem
17817 # is reportedly fixed, but why not run on old versions too?
17818 $SED '$q' "$ltmain" >> "$cfgfile" \
17819 || (rm -f "$cfgfile"; exit 1)
17820
17821 mv -f "$cfgfile" "$ofile" ||
17822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17823 chmod +x "$ofile"
17824
17825 ;;
17826
17827 esac
17828 done # for ac_tag
17829
17830
17831 as_fn_exit 0
17832 _ACEOF
17833 ac_clean_files=$ac_clean_files_save
17834
17835 test $ac_write_fail = 0 ||
17836 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17837
17838
17839 # configure is writing to config.log, and then calls config.status.
17840 # config.status does its own redirection, appending to config.log.
17841 # Unfortunately, on DOS this fails, as config.log is still kept open
17842 # by configure, so config.status won't be able to write to it; its
17843 # output is simply discarded. So we exec the FD to /dev/null,
17844 # effectively closing config.log, so it can be properly (re)opened and
17845 # appended to by config.status. When coming back to configure, we
17846 # need to make the FD available again.
17847 if test "$no_create" != yes; then
17848 ac_cs_success=:
17849 ac_config_status_args=
17850 test "$silent" = yes &&
17851 ac_config_status_args="$ac_config_status_args --quiet"
17852 exec 5>/dev/null
17853 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17854 exec 5>>config.log
17855 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17856 # would make configure fail if this is the last instruction.
17857 $ac_cs_success || as_fn_exit 1
17858 fi
17859 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17861 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17862 fi
17863
17864
17865
17866 echo "
17867 $PACKAGE_NAME version $PACKAGE_VERSION
17868 Prefix...............: $prefix
17869 Runtime Dir..........: $PPPD_RUNTIME_DIR
17870 Logfile Dir..........: $PPPD_LOGFILE_DIR
17871 Plugin Dir...........: $PPPD_PLUGIN_DIR
17872 System CA Path ......: ${SYSTEM_CA_PATH:-not set}
17873 With OpenSSL.........: ${with_openssl:-yes}
17874 With libatm..........: ${with_atm:-no}
17875 With libpam..........: ${with_pam:-no}
17876 With libpcap.........: ${with_pcap:-no}
17877 With libsrp..........: ${with_srp:-no}
17878 C Compiler...........: $CC $CFLAGS
17879 Linker...............: $LD $LDFLAGS $LIBS
17880
17881 Features enabled
17882 Microsoft Extensions.: ${enable_microsoft_extensions:-yes}
17883 Multilink............: ${enable_multilink:-no}
17884 Plugins..............: ${enable_plugins:-yes}
17885 CBCP.................: ${enable_cbcp:-no}
17886 IPV6CP...............: ${enable_ipv6cp:-yes}
17887 EAP-TLS..............: ${enable_eaptls:-yes}
17888 systemd notifications: ${enable_systemd:-no}
17889 "
17890