configure revision 1.1.1.1.4.3 1 #! /bin/sh
2 # From configure.ac Id: configure.ac 741 2013-09-07 13:34:02Z des .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for OpenPAM 20130907.
5 #
6 # Report bugs to <des (at] des.no>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, 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 -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and des (at] des.no about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='OpenPAM'
592 PACKAGE_TARNAME='openpam'
593 PACKAGE_VERSION='20130907'
594 PACKAGE_STRING='OpenPAM 20130907'
595 PACKAGE_BUGREPORT='des (at] des.no'
596 PACKAGE_URL='http://www.openpam.org/'
597
598 ac_unique_file="lib/libpam/pam_start.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 CRYPTO_LIBS
640 CRYPT_LIBS
641 DL_LIBS
642 WITH_SU_FALSE
643 WITH_SU_TRUE
644 WITH_PAMTEST_FALSE
645 WITH_PAMTEST_TRUE
646 WITH_PAM_UNIX_FALSE
647 WITH_PAM_UNIX_TRUE
648 WITH_DOC_FALSE
649 WITH_DOC_TRUE
650 CUSTOM_MODULES_DIR_FALSE
651 CUSTOM_MODULES_DIR_TRUE
652 OPENPAM_MODULES_DIR
653 LIB_MAJ
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
662 AR
663 DLLTOOL
664 OBJDUMP
665 LN_S
666 NM
667 ac_ct_DUMPBIN
668 DUMPBIN
669 LD
670 FGREP
671 SED
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 LIBTOOL
681 EGREP
682 GREP
683 CPP
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files=''
767 ac_user_opts='
768 enable_option_checking
769 enable_silent_rules
770 enable_dependency_tracking
771 enable_static
772 enable_shared
773 with_pic
774 enable_fast_install
775 with_gnu_ld
776 with_sysroot
777 enable_libtool_lock
778 enable_debug
779 enable_unversioned_modules
780 with_modules_dir
781 with_doc
782 with_pam_unix
783 with_pamtest
784 with_su
785 enable_developer_warnings
786 enable_debugging_symbols
787 enable_werror
788 '
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 CPP'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 \`configure' configures OpenPAM 20130907 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1391 _ACEOF
1392
1393 cat <<\_ACEOF
1394
1395 Program names:
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399
1400 System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 _ACEOF
1404 fi
1405
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of OpenPAM 20130907:";;
1409 esac
1410 cat <<\_ACEOF
1411
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-dependency-tracking
1419 do not reject slow dependency extractors
1420 --disable-dependency-tracking
1421 speeds up one-time build
1422 --enable-static[=PKGS] build static libraries [default=no]
1423 --enable-shared[=PKGS] build shared libraries [default=yes]
1424 --enable-fast-install[=PKGS]
1425 optimize for fast installation [default=yes]
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --enable-debug turn debugging macros on
1428 --disable-unversioned-modules
1429 support loading of unversioned modules
1430 --enable-developer-warnings
1431 enable strict warnings (default is NO)
1432 --enable-debugging-symbols
1433 enable debugging symbols (default is NO)
1434 --enable-werror use -Werror (default is NO)
1435
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442 --with-sysroot=DIR Search for dependent libraries within DIR
1443 (or the compiler's sysroot if not specified).
1444 --with-modules-dir=DIR OpenPAM modules directory
1445 --without-doc do not build documentation
1446 --with-pam-unix compile sample pam_unix(8) module
1447 --with-pamtest compile test application
1448 --with-su compile sample su(1) implementation
1449
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 CPP C preprocessor
1459
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1462
1463 Report bugs to <des (at] des.no>.
1464 OpenPAM home page: <http://www.openpam.org/>.
1465 _ACEOF
1466 ac_status=$?
1467 fi
1468
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
1475 ac_builddir=.
1476
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *)
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1492
1493 case $srcdir in
1494 .) # We are building in place.
1495 ac_srcdir=.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1517 else
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1521 done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526 cat <<\_ACEOF
1527 OpenPAM configure 20130907
1528 generated by GNU Autoconf 2.69
1529
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534 exit
1535 fi
1536
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1540
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1545 {
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1
1573 fi
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_compile
1578
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_cpp ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } > conftest.i && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_cpp
1615
1616 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619 # the include files in INCLUDES and setting the cache variable VAR
1620 # accordingly.
1621 ac_fn_c_check_header_mongrel ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if eval \${$3+:} false; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if eval \${$3+:} false; then :
1628 $as_echo_n "(cached) " >&6
1629 fi
1630 eval ac_res=\$$3
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1633 else
1634 # Is the header compilable?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636 $as_echo_n "checking $2 usability... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1639 $4
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1644 else
1645 ac_header_compiler=no
1646 fi
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649 $as_echo "$ac_header_compiler" >&6; }
1650
1651 # Is the header present?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653 $as_echo_n "checking $2 presence... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1660 else
1661 ac_header_preproc=no
1662 fi
1663 rm -f conftest.err conftest.i conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665 $as_echo "$ac_header_preproc" >&6; }
1666
1667 # So? What about this header?
1668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669 yes:no: )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ;;
1675 no:yes:* )
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ( $as_echo "## ------------------------- ##
1687 ## Report this to des (at] des.no ##
1688 ## ------------------------- ##"
1689 ) | sed "s/^/$as_me: WARNING: /" >&2
1690 ;;
1691 esac
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1696 else
1697 eval "$3=\$ac_header_compiler"
1698 fi
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 fi
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_check_header_mongrel
1706
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=$ac_status
1742 fi
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_run
1748
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768 else
1769 eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_header_compile
1779
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 test -x conftest$ac_exeext
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892 cat >config.log <<_ACEOF
1893 This file contains any messages produced by compilers while
1894 running configure, to aid debugging if configure makes a mistake.
1895
1896 It was created by OpenPAM $as_me 20130907, which was
1897 generated by GNU Autoconf 2.69. Invocation command line was
1898
1899 $ $0 $@
1900
1901 _ACEOF
1902 exec 5>>config.log
1903 {
1904 cat <<_ASUNAME
1905 ## --------- ##
1906 ## Platform. ##
1907 ## --------- ##
1908
1909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1914
1915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1917
1918 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1919 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1922 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1923 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1924 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1925
1926 _ASUNAME
1927
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1930 do
1931 IFS=$as_save_IFS
1932 test -z "$as_dir" && as_dir=.
1933 $as_echo "PATH: $as_dir"
1934 done
1935 IFS=$as_save_IFS
1936
1937 } >&5
1938
1939 cat >&5 <<_ACEOF
1940
1941
1942 ## ----------- ##
1943 ## Core tests. ##
1944 ## ----------- ##
1945
1946 _ACEOF
1947
1948
1949 # Keep a trace of the command line.
1950 # Strip out --no-create and --no-recursion so they do not pile up.
1951 # Strip out --silent because we don't want to record it for future runs.
1952 # Also quote any args containing shell meta-characters.
1953 # Make two passes to allow for proper duplicate-argument suppression.
1954 ac_configure_args=
1955 ac_configure_args0=
1956 ac_configure_args1=
1957 ac_must_keep_next=false
1958 for ac_pass in 1 2
1959 do
1960 for ac_arg
1961 do
1962 case $ac_arg in
1963 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965 | -silent | --silent | --silen | --sile | --sil)
1966 continue ;;
1967 *\'*)
1968 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969 esac
1970 case $ac_pass in
1971 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972 2)
1973 as_fn_append ac_configure_args1 " '$ac_arg'"
1974 if test $ac_must_keep_next = true; then
1975 ac_must_keep_next=false # Got value, back to normal.
1976 else
1977 case $ac_arg in
1978 *=* | --config-cache | -C | -disable-* | --disable-* \
1979 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981 | -with-* | --with-* | -without-* | --without-* | --x)
1982 case "$ac_configure_args0 " in
1983 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984 esac
1985 ;;
1986 -* ) ac_must_keep_next=true ;;
1987 esac
1988 fi
1989 as_fn_append ac_configure_args " '$ac_arg'"
1990 ;;
1991 esac
1992 done
1993 done
1994 { ac_configure_args0=; unset ac_configure_args0;}
1995 { ac_configure_args1=; unset ac_configure_args1;}
1996
1997 # When interrupted or exit'd, cleanup temporary files, and complete
1998 # config.log. We remove comments because anyway the quotes in there
1999 # would cause problems or look ugly.
2000 # WARNING: Use '\'' to represent an apostrophe within the trap.
2001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002 trap 'exit_status=$?
2003 # Save into config.log some information that might help in debugging.
2004 {
2005 echo
2006
2007 $as_echo "## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##"
2010 echo
2011 # The following way of writing the cache mishandles newlines in values,
2012 (
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2015 case $ac_val in #(
2016 *${as_nl}*)
2017 case $ac_var in #(
2018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020 esac
2021 case $ac_var in #(
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) { eval $ac_var=; unset $ac_var;} ;;
2025 esac ;;
2026 esac
2027 done
2028 (set) 2>&1 |
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2031 sed -n \
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034 ;; #(
2035 *)
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037 ;;
2038 esac |
2039 sort
2040 )
2041 echo
2042
2043 $as_echo "## ----------------- ##
2044 ## Output variables. ##
2045 ## ----------------- ##"
2046 echo
2047 for ac_var in $ac_subst_vars
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 $as_echo "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2056
2057 if test -n "$ac_subst_files"; then
2058 $as_echo "## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##"
2061 echo
2062 for ac_var in $ac_subst_files
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 $as_echo "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071 fi
2072
2073 if test -s confdefs.h; then
2074 $as_echo "## ----------- ##
2075 ## confdefs.h. ##
2076 ## ----------- ##"
2077 echo
2078 cat confdefs.h
2079 echo
2080 fi
2081 test "$ac_signal" != 0 &&
2082 $as_echo "$as_me: caught signal $ac_signal"
2083 $as_echo "$as_me: exit $exit_status"
2084 } >&5
2085 rm -f core *.core core.conftest.* &&
2086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087 exit $exit_status
2088 ' 0
2089 for ac_signal in 1 2 13 15; do
2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091 done
2092 ac_signal=0
2093
2094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2095 rm -f -r conftest* confdefs.h
2096
2097 $as_echo "/* confdefs.h */" > confdefs.h
2098
2099 # Predefined preprocessor variables.
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_NAME "$PACKAGE_NAME"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_STRING "$PACKAGE_STRING"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_URL "$PACKAGE_URL"
2123 _ACEOF
2124
2125
2126 # Let the site file select an alternate cache file if it wants to.
2127 # Prefer an explicitly selected file to automatically selected ones.
2128 ac_site_file1=NONE
2129 ac_site_file2=NONE
2130 if test -n "$CONFIG_SITE"; then
2131 # We do not want a PATH search for config.site.
2132 case $CONFIG_SITE in #((
2133 -*) ac_site_file1=./$CONFIG_SITE;;
2134 */*) ac_site_file1=$CONFIG_SITE;;
2135 *) ac_site_file1=./$CONFIG_SITE;;
2136 esac
2137 elif test "x$prefix" != xNONE; then
2138 ac_site_file1=$prefix/share/config.site
2139 ac_site_file2=$prefix/etc/config.site
2140 else
2141 ac_site_file1=$ac_default_prefix/share/config.site
2142 ac_site_file2=$ac_default_prefix/etc/config.site
2143 fi
2144 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145 do
2146 test "x$ac_site_file" = xNONE && continue
2147 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150 sed 's/^/| /' "$ac_site_file" >&5
2151 . "$ac_site_file" \
2152 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 as_fn_error $? "failed to load site script $ac_site_file
2155 See \`config.log' for more details" "$LINENO" 5; }
2156 fi
2157 done
2158
2159 if test -r "$cache_file"; then
2160 # Some versions of bash will fail to source /dev/null (special files
2161 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2162 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 $as_echo "$as_me: loading cache $cache_file" >&6;}
2165 case $cache_file in
2166 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167 *) . "./$cache_file";;
2168 esac
2169 fi
2170 else
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 $as_echo "$as_me: creating cache $cache_file" >&6;}
2173 >$cache_file
2174 fi
2175
2176 # Check that the precious variables saved in the cache have kept the same
2177 # value.
2178 ac_cache_corrupted=false
2179 for ac_var in $ac_precious_vars; do
2180 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181 eval ac_new_set=\$ac_env_${ac_var}_set
2182 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183 eval ac_new_val=\$ac_env_${ac_var}_value
2184 case $ac_old_set,$ac_new_set in
2185 set,)
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2189 ,set)
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192 ac_cache_corrupted=: ;;
2193 ,);;
2194 *)
2195 if test "x$ac_old_val" != "x$ac_new_val"; then
2196 # differences in whitespace do not lead to failure.
2197 ac_old_val_w=`echo x $ac_old_val`
2198 ac_new_val_w=`echo x $ac_new_val`
2199 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202 ac_cache_corrupted=:
2203 else
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206 eval $ac_var=\$ac_old_val
2207 fi
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2209 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2211 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2212 fi;;
2213 esac
2214 # Pass precious variables to config.status.
2215 if test "$ac_new_set" = set; then
2216 case $ac_new_val in
2217 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 *) ac_arg=$ac_var=$ac_new_val ;;
2219 esac
2220 case " $ac_configure_args " in
2221 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2222 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223 esac
2224 fi
2225 done
2226 if $ac_cache_corrupted; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2232 fi
2233 ## -------------------- ##
2234 ## Main body of script. ##
2235 ## -------------------- ##
2236
2237 ac_ext=c
2238 ac_cpp='$CPP $CPPFLAGS'
2239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242
2243
2244
2245
2246 am__api_version='1.14'
2247
2248 ac_aux_dir=
2249 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250 if test -f "$ac_dir/install-sh"; then
2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/install-sh -c"
2253 break
2254 elif test -f "$ac_dir/install.sh"; then
2255 ac_aux_dir=$ac_dir
2256 ac_install_sh="$ac_aux_dir/install.sh -c"
2257 break
2258 elif test -f "$ac_dir/shtool"; then
2259 ac_aux_dir=$ac_dir
2260 ac_install_sh="$ac_aux_dir/shtool install -c"
2261 break
2262 fi
2263 done
2264 if test -z "$ac_aux_dir"; then
2265 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2266 fi
2267
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2275
2276
2277 # Find a good install program. We prefer a C program (faster),
2278 # so one script is as good as another. But avoid the broken or
2279 # incompatible versions:
2280 # SysV /etc/install, /usr/sbin/install
2281 # SunOS /usr/etc/install
2282 # IRIX /sbin/install
2283 # AIX /bin/install
2284 # AmigaOS /C/install, which installs bootblocks on floppy discs
2285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288 # OS/2's system install, which has a completely different semantic
2289 # ./install, which can be erroneously created by make from ./install.sh.
2290 # Reject install programs that cannot install multiple files.
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2292 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2293 if test -z "$INSTALL"; then
2294 if ${ac_cv_path_install+:} false; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 # Account for people who put trailing slashes in PATH elements.
2303 case $as_dir/ in #((
2304 ./ | .// | /[cC]/* | \
2305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2307 /usr/ucb/* ) ;;
2308 *)
2309 # OSF1 and SCO ODT 3.0 have their own names for install.
2310 # Don't use installbsd from OSF since it installs stuff as root
2311 # by default.
2312 for ac_prog in ginstall scoinst install; do
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2315 if test $ac_prog = install &&
2316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # AIX install. It has an incompatible calling convention.
2318 :
2319 elif test $ac_prog = install &&
2320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321 # program-specific install script used by HP pwplus--don't use.
2322 :
2323 else
2324 rm -rf conftest.one conftest.two conftest.dir
2325 echo one > conftest.one
2326 echo two > conftest.two
2327 mkdir conftest.dir
2328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329 test -s conftest.one && test -s conftest.two &&
2330 test -s conftest.dir/conftest.one &&
2331 test -s conftest.dir/conftest.two
2332 then
2333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2334 break 3
2335 fi
2336 fi
2337 fi
2338 done
2339 done
2340 ;;
2341 esac
2342
2343 done
2344 IFS=$as_save_IFS
2345
2346 rm -rf conftest.one conftest.two conftest.dir
2347
2348 fi
2349 if test "${ac_cv_path_install+set}" = set; then
2350 INSTALL=$ac_cv_path_install
2351 else
2352 # As a last resort, use the slow shell script. Don't cache a
2353 # value for INSTALL within a source directory, because that will
2354 # break other packages using the cache if that directory is
2355 # removed, or if the value is a relative name.
2356 INSTALL=$ac_install_sh
2357 fi
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2360 $as_echo "$INSTALL" >&6; }
2361
2362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363 # It thinks the first close brace ends the variable substitution.
2364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2365
2366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2367
2368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2369
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2371 $as_echo_n "checking whether build environment is sane... " >&6; }
2372 # Reject unsafe characters in $srcdir or the absolute working directory
2373 # name. Accept space and tab only in the latter.
2374 am_lf='
2375 '
2376 case `pwd` in
2377 *[\\\"\#\$\&\'\`$am_lf]*)
2378 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2379 esac
2380 case $srcdir in
2381 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2382 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2383 esac
2384
2385 # Do 'set' in a subshell so we don't clobber the current shell's
2386 # arguments. Must try -L first in case configure is actually a
2387 # symlink; some systems play weird games with the mod time of symlinks
2388 # (eg FreeBSD returns the mod time of the symlink's containing
2389 # directory).
2390 if (
2391 am_has_slept=no
2392 for am_try in 1 2; do
2393 echo "timestamp, slept: $am_has_slept" > conftest.file
2394 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2395 if test "$*" = "X"; then
2396 # -L didn't work.
2397 set X `ls -t "$srcdir/configure" conftest.file`
2398 fi
2399 if test "$*" != "X $srcdir/configure conftest.file" \
2400 && test "$*" != "X conftest.file $srcdir/configure"; then
2401
2402 # If neither matched, then we have a broken ls. This can happen
2403 # if, for instance, CONFIG_SHELL is bash and it inherits a
2404 # broken ls alias from the environment. This has actually
2405 # happened. Such a system could not be considered "sane".
2406 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2407 alias in your environment" "$LINENO" 5
2408 fi
2409 if test "$2" = conftest.file || test $am_try -eq 2; then
2410 break
2411 fi
2412 # Just in case.
2413 sleep 1
2414 am_has_slept=yes
2415 done
2416 test "$2" = conftest.file
2417 )
2418 then
2419 # Ok.
2420 :
2421 else
2422 as_fn_error $? "newly created file is older than distributed files!
2423 Check your system clock" "$LINENO" 5
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2426 $as_echo "yes" >&6; }
2427 # If we didn't sleep, we still need to ensure time stamps of config.status and
2428 # generated files are strictly newer.
2429 am_sleep_pid=
2430 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2431 ( sleep 1 ) &
2432 am_sleep_pid=$!
2433 fi
2434
2435 rm -f conftest.file
2436
2437 test "$program_prefix" != NONE &&
2438 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439 # Use a double $ so make ignores it.
2440 test "$program_suffix" != NONE &&
2441 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442 # Double any \ or $.
2443 # By default was `s,x,x', remove it if useless.
2444 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2446
2447 # expand $ac_aux_dir to an absolute path
2448 am_aux_dir=`cd $ac_aux_dir && pwd`
2449
2450 if test x"${MISSING+set}" != xset; then
2451 case $am_aux_dir in
2452 *\ * | *\ *)
2453 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2454 *)
2455 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2456 esac
2457 fi
2458 # Use eval to expand $SHELL
2459 if eval "$MISSING --is-lightweight"; then
2460 am_missing_run="$MISSING "
2461 else
2462 am_missing_run=
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2464 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2465 fi
2466
2467 if test x"${install_sh}" != xset; then
2468 case $am_aux_dir in
2469 *\ * | *\ *)
2470 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2471 *)
2472 install_sh="\${SHELL} $am_aux_dir/install-sh"
2473 esac
2474 fi
2475
2476 # Installed binaries are usually stripped using 'strip' when the user
2477 # run "make install-strip". However 'strip' might not be the right
2478 # tool to use in cross-compilation environments, therefore Automake
2479 # will honor the 'STRIP' environment variable to overrule this program.
2480 if test "$cross_compiling" != no; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}strip; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_STRIP+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$STRIP"; then
2490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 STRIP=$ac_cv_prog_STRIP
2510 if test -n "$STRIP"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2512 $as_echo "$STRIP" >&6; }
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518
2519 fi
2520 if test -z "$ac_cv_prog_STRIP"; then
2521 ac_ct_STRIP=$STRIP
2522 # Extract the first word of "strip", so it can be a program name with args.
2523 set dummy strip; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 if test -n "$ac_ct_STRIP"; then
2530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_STRIP="strip"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550 if test -n "$ac_ct_STRIP"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2552 $as_echo "$ac_ct_STRIP" >&6; }
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558 if test "x$ac_ct_STRIP" = x; then
2559 STRIP=":"
2560 else
2561 case $cross_compiling:$ac_tool_warned in
2562 yes:)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565 ac_tool_warned=yes ;;
2566 esac
2567 STRIP=$ac_ct_STRIP
2568 fi
2569 else
2570 STRIP="$ac_cv_prog_STRIP"
2571 fi
2572
2573 fi
2574 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2577 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2578 if test -z "$MKDIR_P"; then
2579 if ${ac_cv_path_mkdir+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_prog in mkdir gmkdir; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2590 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2591 'mkdir (GNU coreutils) '* | \
2592 'mkdir (coreutils) '* | \
2593 'mkdir (fileutils) '4.1*)
2594 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2595 break 3;;
2596 esac
2597 done
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603
2604 test -d ./--version && rmdir ./--version
2605 if test "${ac_cv_path_mkdir+set}" = set; then
2606 MKDIR_P="$ac_cv_path_mkdir -p"
2607 else
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for MKDIR_P within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the value is a relative name.
2612 MKDIR_P="$ac_install_sh -d"
2613 fi
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2616 $as_echo "$MKDIR_P" >&6; }
2617
2618 for ac_prog in gawk mawk nawk awk
2619 do
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_AWK+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test -n "$AWK"; then
2628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_AWK="$ac_prog"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 AWK=$ac_cv_prog_AWK
2648 if test -n "$AWK"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2650 $as_echo "$AWK" >&6; }
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 fi
2655
2656
2657 test -n "$AWK" && break
2658 done
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2661 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2662 set x ${MAKE-make}
2663 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2664 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 cat >conftest.make <<\_ACEOF
2668 SHELL = /bin/sh
2669 all:
2670 @echo '@@@%%%=$(MAKE)=@@@%%%'
2671 _ACEOF
2672 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2673 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2674 *@@@%%%=?*=@@@%%%*)
2675 eval ac_cv_prog_make_${ac_make}_set=yes;;
2676 *)
2677 eval ac_cv_prog_make_${ac_make}_set=no;;
2678 esac
2679 rm -f conftest.make
2680 fi
2681 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2683 $as_echo "yes" >&6; }
2684 SET_MAKE=
2685 else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 SET_MAKE="MAKE=${MAKE-make}"
2689 fi
2690
2691 rm -rf .tst 2>/dev/null
2692 mkdir .tst 2>/dev/null
2693 if test -d .tst; then
2694 am__leading_dot=.
2695 else
2696 am__leading_dot=_
2697 fi
2698 rmdir .tst 2>/dev/null
2699
2700 # Check whether --enable-silent-rules was given.
2701 if test "${enable_silent_rules+set}" = set; then :
2702 enableval=$enable_silent_rules;
2703 fi
2704
2705 case $enable_silent_rules in # (((
2706 yes) AM_DEFAULT_VERBOSITY=0;;
2707 no) AM_DEFAULT_VERBOSITY=1;;
2708 *) AM_DEFAULT_VERBOSITY=1;;
2709 esac
2710 am_make=${MAKE-make}
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2712 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2713 if ${am_cv_make_support_nested_variables+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if $as_echo 'TRUE=$(BAR$(V))
2717 BAR0=false
2718 BAR1=true
2719 V=1
2720 am__doit:
2721 @$(TRUE)
2722 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2723 am_cv_make_support_nested_variables=yes
2724 else
2725 am_cv_make_support_nested_variables=no
2726 fi
2727 fi
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2729 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2730 if test $am_cv_make_support_nested_variables = yes; then
2731 AM_V='$(V)'
2732 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2733 else
2734 AM_V=$AM_DEFAULT_VERBOSITY
2735 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2736 fi
2737 AM_BACKSLASH='\'
2738
2739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2741 # is not polluted with repeated "-I."
2742 am__isrc=' -I$(srcdir)'
2743 # test to see if srcdir already configured
2744 if test -f $srcdir/config.status; then
2745 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2746 fi
2747 fi
2748
2749 # test whether we have cygpath
2750 if test -z "$CYGPATH_W"; then
2751 if (cygpath --version) >/dev/null 2>/dev/null; then
2752 CYGPATH_W='cygpath -w'
2753 else
2754 CYGPATH_W=echo
2755 fi
2756 fi
2757
2758
2759 # Define the identity of the package.
2760 PACKAGE='openpam'
2761 VERSION='20130907'
2762
2763
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE "$PACKAGE"
2766 _ACEOF
2767
2768
2769 cat >>confdefs.h <<_ACEOF
2770 #define VERSION "$VERSION"
2771 _ACEOF
2772
2773 # Some tools Automake needs.
2774
2775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2776
2777
2778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2779
2780
2781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2782
2783
2784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2785
2786
2787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2788
2789 # For better backward compatibility. To be removed once Automake 1.9.x
2790 # dies out for good. For more background, see:
2791 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2792 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2793 mkdir_p='$(MKDIR_P)'
2794
2795 # We need awk for the "check" target. The system "awk" is bad on
2796 # some platforms.
2797 # Always define AMTAR for backward compatibility. Yes, it's still used
2798 # in the wild :-( We should find a proper way to deprecate it ...
2799 AMTAR='$${TAR-tar}'
2800
2801
2802 # We'll loop over all known methods to create a tar archive until one works.
2803 _am_tools='gnutar pax cpio none'
2804
2805 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2806
2807
2808
2809
2810
2811
2812 # POSIX will say in a future version that running "rm -f" with no argument
2813 # is OK; and we want to be able to make that assumption in our Makefile
2814 # recipes. So use an aggressive probe to check that the usage we want is
2815 # actually supported "in the wild" to an acceptable degree.
2816 # See automake bug#10828.
2817 # To make any issue more visible, cause the running configure to be aborted
2818 # by default if the 'rm' program in use doesn't match our expectations; the
2819 # user can still override this though.
2820 if rm -f && rm -fr && rm -rf; then : OK; else
2821 cat >&2 <<'END'
2822 Oops!
2823
2824 Your 'rm' program seems unable to run without file operands specified
2825 on the command line, even when the '-f' option is present. This is contrary
2826 to the behaviour of most rm programs out there, and not conforming with
2827 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2828
2829 Please tell bug-automake@gnu.org about your system, including the value
2830 of your $PATH and any error possibly output before this message. This
2831 can help us improve future automake versions.
2832
2833 END
2834 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2835 echo 'Configuration will proceed anyway, since you have set the' >&2
2836 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2837 echo >&2
2838 else
2839 cat >&2 <<'END'
2840 Aborting the configuration process, to ensure you take notice of the issue.
2841
2842 You can download and install GNU coreutils to get an 'rm' implementation
2843 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2844
2845 If you want to complete the configuration process using your problematic
2846 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2847 to "yes", and re-run configure.
2848
2849 END
2850 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2851 fi
2852 fi
2853 ac_config_headers="$ac_config_headers config.h"
2854
2855
2856 # C compiler and features
2857 ac_ext=c
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$ac_cv_prog_CC"; then
2908 ac_ct_CC=$CC
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CC="gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945 if test "x$ac_ct_CC" = x; then
2946 CC=""
2947 else
2948 case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2953 esac
2954 CC=$ac_ct_CC
2955 fi
2956 else
2957 CC="$ac_cv_prog_CC"
2958 fi
2959
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999 fi
3000 fi
3001 if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 ac_prog_rejected=no
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3022 continue
3023 fi
3024 ac_cv_prog_CC="cc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 if test $ac_prog_rejected = yes; then
3033 # We found a bogon in the path, so make sure we never use it.
3034 set dummy $ac_cv_prog_CC
3035 shift
3036 if test $# != 0; then
3037 # We chose a different compiler from the bogus one.
3038 # However, it has the same basename, so the bogon will be chosen
3039 # first if we set CC to just the basename; use the full file name.
3040 shift
3041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042 fi
3043 fi
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in cl.exe
3060 do
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 test -n "$CC" && break
3099 done
3100 fi
3101 if test -z "$CC"; then
3102 ac_ct_CC=$CC
3103 for ac_prog in cl.exe
3104 do
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142 test -n "$ac_ct_CC" && break
3143 done
3144
3145 if test "x$ac_ct_CC" = x; then
3146 CC=""
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 CC=$ac_ct_CC
3155 fi
3156 fi
3157
3158 fi
3159
3160
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details" "$LINENO" 5; }
3165
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168 set X $ac_compile
3169 ac_compiler=$2
3170 for ac_option in --version -v -V -qversion; do
3171 { { ac_try="$ac_compiler $ac_option >&5"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179 ac_status=$?
3180 if test -s conftest.err; then
3181 sed '10a\
3182 ... rest of stderr output deleted ...
3183 10q' conftest.err >conftest.er1
3184 cat conftest.er1 >&5
3185 fi
3186 rm -f conftest.er1 conftest.err
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3189 done
3190
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main ()
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3206 # of exeext.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214 ac_rmfiles=
3215 for ac_file in $ac_files
3216 do
3217 case $ac_file in
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220 esac
3221 done
3222 rm -f $ac_rmfiles
3223
3224 if { { ac_try="$ac_link_default"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link_default") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3239 # Autoconf.
3240 for ac_file in $ac_files ''
3241 do
3242 test -f "$ac_file" || continue
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245 ;;
3246 [ab].out )
3247 # We found the default executable, but exeext='' is most
3248 # certainly right.
3249 break;;
3250 *.* )
3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252 then :; else
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 fi
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an `-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3259 # actually working.
3260 break;;
3261 * )
3262 break;;
3263 esac
3264 done
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267 else
3268 ac_file=''
3269 fi
3270 if test -z "$ac_file"; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error 77 "C compiler cannot create executables
3279 See \`config.log' for more details" "$LINENO" 5; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287 $as_echo "$ac_file" >&6; }
3288 ac_exeext=$ac_cv_exeext
3289
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3308 # `rm'.
3309 for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 break;;
3315 * ) break;;
3316 esac
3317 done
3318 else
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details" "$LINENO" 5; }
3323 fi
3324 rm -f conftest conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3327
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3330 ac_exeext=$EXEEXT
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333 #include <stdio.h>
3334 int
3335 main ()
3336 {
3337 FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 ac_clean_files="$ac_clean_files conftest.out"
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot run C compiled programs.
3380 If you meant to cross compile, use \`--host'.
3381 See \`config.log' for more details" "$LINENO" 5; }
3382 fi
3383 fi
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386 $as_echo "$cross_compiling" >&6; }
3387
3388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391 $as_echo_n "checking for suffix of object files... " >&6; }
3392 if ${ac_cv_objext+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.o conftest.obj
3407 if { { ac_try="$ac_compile"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_compile") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423 break;;
3424 esac
3425 done
3426 else
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of object files: cannot compile
3433 See \`config.log' for more details" "$LINENO" 5; }
3434 fi
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3440 ac_objext=$OBJEXT
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if ${ac_cv_c_compiler_gnu+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452 #ifndef __GNUC__
3453 choke me
3454 #endif
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_compiler_gnu=yes
3462 else
3463 ac_compiler_gnu=no
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3472 GCC=yes
3473 else
3474 GCC=
3475 fi
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if ${ac_cv_prog_cc_g+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3485 ac_cv_prog_cc_g=no
3486 CFLAGS="-g"
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489
3490 int
3491 main ()
3492 {
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_g=yes
3500 else
3501 CFLAGS=""
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514
3515 else
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3517 CFLAGS="-g"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520
3521 int
3522 main ()
3523 {
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_g=yes
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540 $as_echo "$ac_cv_prog_cc_g" >&6; }
3541 if test "$ac_test_CFLAGS" = set; then
3542 CFLAGS=$ac_save_CFLAGS
3543 elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
3545 CFLAGS="-g -O2"
3546 else
3547 CFLAGS="-g"
3548 fi
3549 else
3550 if test "$GCC" = yes; then
3551 CFLAGS="-O2"
3552 else
3553 CFLAGS=
3554 fi
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558 if ${ac_cv_prog_cc_c89+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 ac_cv_prog_cc_c89=no
3562 ac_save_CC=$CC
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <stdarg.h>
3566 #include <stdio.h>
3567 struct stat;
3568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3569 struct buf { int x; };
3570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571 static char *e (p, i)
3572 char **p;
3573 int i;
3574 {
3575 return p[i];
3576 }
3577 static char *f (char * (*g) (char **, int), char **p, ...)
3578 {
3579 char *s;
3580 va_list v;
3581 va_start (v,p);
3582 s = g (p, va_arg (v,int));
3583 va_end (v);
3584 return s;
3585 }
3586
3587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3588 function prototypes and stuff, but not '\xHH' hex character constants.
3589 These don't provoke an error unfortunately, instead are silently treated
3590 as 'x'. The following induces an error, until -std is added to get
3591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3592 array size at least. It's necessary to write '\x00'==0 to get something
3593 that's true only with -std. */
3594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597 inside strings and character constants. */
3598 #define FOO(x) 'x'
3599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600
3601 int test (int i, double x);
3602 struct s1 {int (*f) (int a);};
3603 struct s2 {int (*f) (double a);};
3604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605 int argc;
3606 char **argv;
3607 int
3608 main ()
3609 {
3610 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617 do
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c89=$ac_arg
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 done
3625 rm -f conftest.$ac_ext
3626 CC=$ac_save_CC
3627
3628 fi
3629 # AC_CACHE_VAL
3630 case "x$ac_cv_prog_cc_c89" in
3631 x)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3634 xno)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3637 *)
3638 CC="$CC $ac_cv_prog_cc_c89"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641 esac
3642 if test "x$ac_cv_prog_cc_c89" != xno; then :
3643
3644 fi
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652 ac_ext=c
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3658 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3659 if ${am_cv_prog_cc_c_o+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664
3665 int
3666 main ()
3667 {
3668
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 # Make sure it works both with $CC and with simple cc.
3674 # Following AC_PROG_CC_C_O, we do the test twice because some
3675 # compilers refuse to overwrite an existing .o file with -o,
3676 # though they will create one.
3677 am_cv_prog_cc_c_o=yes
3678 for am_i in 1 2; do
3679 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3680 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } \
3684 && test -f conftest2.$ac_objext; then
3685 : OK
3686 else
3687 am_cv_prog_cc_c_o=no
3688 break
3689 fi
3690 done
3691 rm -f core conftest*
3692 unset am_i
3693 fi
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3695 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3696 if test "$am_cv_prog_cc_c_o" != yes; then
3697 # Losing compiler, so override with the script.
3698 # FIXME: It is wrong to rewrite CC.
3699 # But if we don't then we get into trouble of one sort or another.
3700 # A longer-term fix would be to have automake use am__CC in this case,
3701 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3702 CC="$am_aux_dir/compile $CC"
3703 fi
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710 DEPDIR="${am__leading_dot}deps"
3711
3712 ac_config_commands="$ac_config_commands depfiles"
3713
3714
3715 am_make=${MAKE-make}
3716 cat > confinc << 'END'
3717 am__doit:
3718 @echo this is the am__doit target
3719 .PHONY: am__doit
3720 END
3721 # If we don't find an include directive, just comment out the code.
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3723 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3724 am__include="#"
3725 am__quote=
3726 _am_result=none
3727 # First try GNU make style include.
3728 echo "include confinc" > confmf
3729 # Ignore all kinds of additional output from 'make'.
3730 case `$am_make -s -f confmf 2> /dev/null` in #(
3731 *the\ am__doit\ target*)
3732 am__include=include
3733 am__quote=
3734 _am_result=GNU
3735 ;;
3736 esac
3737 # Now try BSD make style include.
3738 if test "$am__include" = "#"; then
3739 echo '.include "confinc"' > confmf
3740 case `$am_make -s -f confmf 2> /dev/null` in #(
3741 *the\ am__doit\ target*)
3742 am__include=.include
3743 am__quote="\""
3744 _am_result=BSD
3745 ;;
3746 esac
3747 fi
3748
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3751 $as_echo "$_am_result" >&6; }
3752 rm -f confinc confmf
3753
3754 # Check whether --enable-dependency-tracking was given.
3755 if test "${enable_dependency_tracking+set}" = set; then :
3756 enableval=$enable_dependency_tracking;
3757 fi
3758
3759 if test "x$enable_dependency_tracking" != xno; then
3760 am_depcomp="$ac_aux_dir/depcomp"
3761 AMDEPBACKSLASH='\'
3762 am__nodep='_no'
3763 fi
3764 if test "x$enable_dependency_tracking" != xno; then
3765 AMDEP_TRUE=
3766 AMDEP_FALSE='#'
3767 else
3768 AMDEP_TRUE='#'
3769 AMDEP_FALSE=
3770 fi
3771
3772
3773
3774 depcc="$CC" am_compiler_list=
3775
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777 $as_echo_n "checking dependency style of $depcc... " >&6; }
3778 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782 # We make a subdir and do the tests there. Otherwise we can end up
3783 # making bogus files that we don't know about and never remove. For
3784 # instance it was reported that on HP-UX the gcc test will end up
3785 # making a dummy file named 'D' -- because '-MD' means "put the output
3786 # in D".
3787 rm -rf conftest.dir
3788 mkdir conftest.dir
3789 # Copy depcomp to subdir because otherwise we won't find it if we're
3790 # using a relative directory.
3791 cp "$am_depcomp" conftest.dir
3792 cd conftest.dir
3793 # We will build objects and dependencies in a subdirectory because
3794 # it helps to detect inapplicable dependency modes. For instance
3795 # both Tru64's cc and ICC support -MD to output dependencies as a
3796 # side effect of compilation, but ICC will put the dependencies in
3797 # the current directory while Tru64 will put them in the object
3798 # directory.
3799 mkdir sub
3800
3801 am_cv_CC_dependencies_compiler_type=none
3802 if test "$am_compiler_list" = ""; then
3803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804 fi
3805 am__universal=false
3806 case " $depcc " in #(
3807 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3808 esac
3809
3810 for depmode in $am_compiler_list; do
3811 # Setup a source with many dependencies, because some compilers
3812 # like to wrap large dependency lists on column 80 (with \), and
3813 # we should not choose a depcomp mode which is confused by this.
3814 #
3815 # We need to recreate these files for each test, as the compiler may
3816 # overwrite some of them when testing with obscure command lines.
3817 # This happens at least with the AIX C compiler.
3818 : > sub/conftest.c
3819 for i in 1 2 3 4 5 6; do
3820 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3822 # Solaris 10 /bin/sh.
3823 echo '/* dummy */' > sub/conftst$i.h
3824 done
3825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826
3827 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3828 # mode. It turns out that the SunPro C++ compiler does not properly
3829 # handle '-M -o', and we need to detect this. Also, some Intel
3830 # versions had trouble with output in subdirs.
3831 am__obj=sub/conftest.${OBJEXT-o}
3832 am__minus_obj="-o $am__obj"
3833 case $depmode in
3834 gcc)
3835 # This depmode causes a compiler race in universal mode.
3836 test "$am__universal" = false || continue
3837 ;;
3838 nosideeffect)
3839 # After this tag, mechanisms are not by side-effect, so they'll
3840 # only be used when explicitly requested.
3841 if test "x$enable_dependency_tracking" = xyes; then
3842 continue
3843 else
3844 break
3845 fi
3846 ;;
3847 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3848 # This compiler won't grok '-c -o', but also, the minuso test has
3849 # not run yet. These depmodes are late enough in the game, and
3850 # so weak that their functioning should not be impacted.
3851 am__obj=conftest.${OBJEXT-o}
3852 am__minus_obj=
3853 ;;
3854 none) break ;;
3855 esac
3856 if depmode=$depmode \
3857 source=sub/conftest.c object=$am__obj \
3858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3860 >/dev/null 2>conftest.err &&
3861 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865 # icc doesn't choke on unknown options, it will just issue warnings
3866 # or remarks (even with -Werror). So we grep stderr for any message
3867 # that says an option was ignored or not supported.
3868 # When given -MP, icc 7.0 and 7.1 complain thusly:
3869 # icc: Command line warning: ignoring option '-M'; no argument required
3870 # The diagnosis changed in icc 8.0:
3871 # icc: Command line remark: option '-MP' not supported
3872 if (grep 'ignoring option' conftest.err ||
3873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874 am_cv_CC_dependencies_compiler_type=$depmode
3875 break
3876 fi
3877 fi
3878 done
3879
3880 cd ..
3881 rm -rf conftest.dir
3882 else
3883 am_cv_CC_dependencies_compiler_type=none
3884 fi
3885
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890
3891 if
3892 test "x$enable_dependency_tracking" != xno \
3893 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894 am__fastdepCC_TRUE=
3895 am__fastdepCC_FALSE='#'
3896 else
3897 am__fastdepCC_TRUE='#'
3898 am__fastdepCC_FALSE=
3899 fi
3900
3901
3902 case $ac_cv_prog_cc_stdc in #(
3903 no) :
3904 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3905 *) :
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3907 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3908 if ${ac_cv_prog_cc_c99+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 ac_cv_prog_cc_c99=no
3912 ac_save_CC=$CC
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <stdarg.h>
3916 #include <stdbool.h>
3917 #include <stdlib.h>
3918 #include <wchar.h>
3919 #include <stdio.h>
3920
3921 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3922 #define debug(...) fprintf (stderr, __VA_ARGS__)
3923 #define showlist(...) puts (#__VA_ARGS__)
3924 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3925 static void
3926 test_varargs_macros (void)
3927 {
3928 int x = 1234;
3929 int y = 5678;
3930 debug ("Flag");
3931 debug ("X = %d\n", x);
3932 showlist (The first, second, and third items.);
3933 report (x>y, "x is %d but y is %d", x, y);
3934 }
3935
3936 // Check long long types.
3937 #define BIG64 18446744073709551615ull
3938 #define BIG32 4294967295ul
3939 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3940 #if !BIG_OK
3941 your preprocessor is broken;
3942 #endif
3943 #if BIG_OK
3944 #else
3945 your preprocessor is broken;
3946 #endif
3947 static long long int bignum = -9223372036854775807LL;
3948 static unsigned long long int ubignum = BIG64;
3949
3950 struct incomplete_array
3951 {
3952 int datasize;
3953 double data[];
3954 };
3955
3956 struct named_init {
3957 int number;
3958 const wchar_t *name;
3959 double average;
3960 };
3961
3962 typedef const char *ccp;
3963
3964 static inline int
3965 test_restrict (ccp restrict text)
3966 {
3967 // See if C++-style comments work.
3968 // Iterate through items via the restricted pointer.
3969 // Also check for declarations in for loops.
3970 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3971 continue;
3972 return 0;
3973 }
3974
3975 // Check varargs and va_copy.
3976 static void
3977 test_varargs (const char *format, ...)
3978 {
3979 va_list args;
3980 va_start (args, format);
3981 va_list args_copy;
3982 va_copy (args_copy, args);
3983
3984 const char *str;
3985 int number;
3986 float fnumber;
3987
3988 while (*format)
3989 {
3990 switch (*format++)
3991 {
3992 case 's': // string
3993 str = va_arg (args_copy, const char *);
3994 break;
3995 case 'd': // int
3996 number = va_arg (args_copy, int);
3997 break;
3998 case 'f': // float
3999 fnumber = va_arg (args_copy, double);
4000 break;
4001 default:
4002 break;
4003 }
4004 }
4005 va_end (args_copy);
4006 va_end (args);
4007 }
4008
4009 int
4010 main ()
4011 {
4012
4013 // Check bool.
4014 _Bool success = false;
4015
4016 // Check restrict.
4017 if (test_restrict ("String literal") == 0)
4018 success = true;
4019 char *restrict newvar = "Another string";
4020
4021 // Check varargs.
4022 test_varargs ("s, d' f .", "string", 65, 34.234);
4023 test_varargs_macros ();
4024
4025 // Check flexible array members.
4026 struct incomplete_array *ia =
4027 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4028 ia->datasize = 10;
4029 for (int i = 0; i < ia->datasize; ++i)
4030 ia->data[i] = i * 1.234;
4031
4032 // Check named initializers.
4033 struct named_init ni = {
4034 .number = 34,
4035 .name = L"Test wide string",
4036 .average = 543.34343,
4037 };
4038
4039 ni.number = 58;
4040
4041 int dynamic_array[ni.number];
4042 dynamic_array[ni.number - 1] = 543;
4043
4044 // work around unused variable warnings
4045 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4046 || dynamic_array[ni.number - 1] != 543);
4047
4048 ;
4049 return 0;
4050 }
4051 _ACEOF
4052 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4053 do
4054 CC="$ac_save_CC $ac_arg"
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_c99=$ac_arg
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext
4059 test "x$ac_cv_prog_cc_c99" != "xno" && break
4060 done
4061 rm -f conftest.$ac_ext
4062 CC=$ac_save_CC
4063
4064 fi
4065 # AC_CACHE_VAL
4066 case "x$ac_cv_prog_cc_c99" in
4067 x)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069 $as_echo "none needed" >&6; } ;;
4070 xno)
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4072 $as_echo "unsupported" >&6; } ;;
4073 *)
4074 CC="$CC $ac_cv_prog_cc_c99"
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4076 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4077 esac
4078 if test "x$ac_cv_prog_cc_c99" != xno; then :
4079 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4080 else
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4082 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4083 if ${ac_cv_prog_cc_c89+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 ac_cv_prog_cc_c89=no
4087 ac_save_CC=$CC
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #include <stdarg.h>
4091 #include <stdio.h>
4092 struct stat;
4093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4094 struct buf { int x; };
4095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4096 static char *e (p, i)
4097 char **p;
4098 int i;
4099 {
4100 return p[i];
4101 }
4102 static char *f (char * (*g) (char **, int), char **p, ...)
4103 {
4104 char *s;
4105 va_list v;
4106 va_start (v,p);
4107 s = g (p, va_arg (v,int));
4108 va_end (v);
4109 return s;
4110 }
4111
4112 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4113 function prototypes and stuff, but not '\xHH' hex character constants.
4114 These don't provoke an error unfortunately, instead are silently treated
4115 as 'x'. The following induces an error, until -std is added to get
4116 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4117 array size at least. It's necessary to write '\x00'==0 to get something
4118 that's true only with -std. */
4119 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4120
4121 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4122 inside strings and character constants. */
4123 #define FOO(x) 'x'
4124 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4125
4126 int test (int i, double x);
4127 struct s1 {int (*f) (int a);};
4128 struct s2 {int (*f) (double a);};
4129 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4130 int argc;
4131 char **argv;
4132 int
4133 main ()
4134 {
4135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4136 ;
4137 return 0;
4138 }
4139 _ACEOF
4140 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4141 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4142 do
4143 CC="$ac_save_CC $ac_arg"
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_c89=$ac_arg
4146 fi
4147 rm -f core conftest.err conftest.$ac_objext
4148 test "x$ac_cv_prog_cc_c89" != "xno" && break
4149 done
4150 rm -f conftest.$ac_ext
4151 CC=$ac_save_CC
4152
4153 fi
4154 # AC_CACHE_VAL
4155 case "x$ac_cv_prog_cc_c89" in
4156 x)
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4158 $as_echo "none needed" >&6; } ;;
4159 xno)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4161 $as_echo "unsupported" >&6; } ;;
4162 *)
4163 CC="$CC $ac_cv_prog_cc_c89"
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4165 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4166 esac
4167 if test "x$ac_cv_prog_cc_c89" != xno; then :
4168 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4169 else
4170 ac_cv_prog_cc_stdc=no
4171 fi
4172
4173 fi
4174 ;;
4175 esac
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4177 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4178 if ${ac_cv_prog_cc_stdc+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 fi
4181
4182 case $ac_cv_prog_cc_stdc in #(
4183 no) :
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185 $as_echo "unsupported" >&6; } ;; #(
4186 '') :
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4188 $as_echo "none needed" >&6; } ;; #(
4189 *) :
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4191 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4192 esac
4193
4194 ac_ext=c
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4200 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4201 # On Suns, sometimes $CPP names a directory.
4202 if test -n "$CPP" && test -d "$CPP"; then
4203 CPP=
4204 fi
4205 if test -z "$CPP"; then
4206 if ${ac_cv_prog_CPP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 # Double quotes because CPP needs to be expanded
4210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4211 do
4212 ac_preproc_ok=false
4213 for ac_c_preproc_warn_flag in '' yes
4214 do
4215 # Use a header file that comes with gcc, so configuring glibc
4216 # with a fresh cross-compiler works.
4217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 # <limits.h> exists even on freestanding compilers.
4219 # On the NeXT, cc -E runs the code through the compiler's parser,
4220 # not just through cpp. "Syntax error" is here to catch this case.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #ifdef __STDC__
4224 # include <limits.h>
4225 #else
4226 # include <assert.h>
4227 #endif
4228 Syntax error
4229 _ACEOF
4230 if ac_fn_c_try_cpp "$LINENO"; then :
4231
4232 else
4233 # Broken: fails on valid input.
4234 continue
4235 fi
4236 rm -f conftest.err conftest.i conftest.$ac_ext
4237
4238 # OK, works on sane cases. Now check whether nonexistent headers
4239 # can be detected and how.
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <ac_nonexistent.h>
4243 _ACEOF
4244 if ac_fn_c_try_cpp "$LINENO"; then :
4245 # Broken: success on invalid input.
4246 continue
4247 else
4248 # Passes both tests.
4249 ac_preproc_ok=:
4250 break
4251 fi
4252 rm -f conftest.err conftest.i conftest.$ac_ext
4253
4254 done
4255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256 rm -f conftest.i conftest.err conftest.$ac_ext
4257 if $ac_preproc_ok; then :
4258 break
4259 fi
4260
4261 done
4262 ac_cv_prog_CPP=$CPP
4263
4264 fi
4265 CPP=$ac_cv_prog_CPP
4266 else
4267 ac_cv_prog_CPP=$CPP
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4270 $as_echo "$CPP" >&6; }
4271 ac_preproc_ok=false
4272 for ac_c_preproc_warn_flag in '' yes
4273 do
4274 # Use a header file that comes with gcc, so configuring glibc
4275 # with a fresh cross-compiler works.
4276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277 # <limits.h> exists even on freestanding compilers.
4278 # On the NeXT, cc -E runs the code through the compiler's parser,
4279 # not just through cpp. "Syntax error" is here to catch this case.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #ifdef __STDC__
4283 # include <limits.h>
4284 #else
4285 # include <assert.h>
4286 #endif
4287 Syntax error
4288 _ACEOF
4289 if ac_fn_c_try_cpp "$LINENO"; then :
4290
4291 else
4292 # Broken: fails on valid input.
4293 continue
4294 fi
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297 # OK, works on sane cases. Now check whether nonexistent headers
4298 # can be detected and how.
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #include <ac_nonexistent.h>
4302 _ACEOF
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4304 # Broken: success on invalid input.
4305 continue
4306 else
4307 # Passes both tests.
4308 ac_preproc_ok=:
4309 break
4310 fi
4311 rm -f conftest.err conftest.i conftest.$ac_ext
4312
4313 done
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.i conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then :
4317
4318 else
4319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4322 See \`config.log' for more details" "$LINENO" 5; }
4323 fi
4324
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4335 if ${ac_cv_path_GREP+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -z "$GREP"; then
4339 ac_path_GREP_found=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4343 do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_prog in grep ggrep; do
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4349 as_fn_executable_p "$ac_path_GREP" || continue
4350 # Check for GNU ac_path_GREP and select it if it is found.
4351 # Check for GNU $ac_path_GREP
4352 case `"$ac_path_GREP" --version 2>&1` in
4353 *GNU*)
4354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4355 *)
4356 ac_count=0
4357 $as_echo_n 0123456789 >"conftest.in"
4358 while :
4359 do
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 $as_echo 'GREP' >> "conftest.nl"
4364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366 as_fn_arith $ac_count + 1 && ac_count=$as_val
4367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_GREP="$ac_path_GREP"
4370 ac_path_GREP_max=$ac_count
4371 fi
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4374 done
4375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376 esac
4377
4378 $ac_path_GREP_found && break 3
4379 done
4380 done
4381 done
4382 IFS=$as_save_IFS
4383 if test -z "$ac_cv_path_GREP"; then
4384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385 fi
4386 else
4387 ac_cv_path_GREP=$GREP
4388 fi
4389
4390 fi
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392 $as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4394
4395
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397 $as_echo_n "checking for egrep... " >&6; }
4398 if ${ac_cv_path_EGREP+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402 then ac_cv_path_EGREP="$GREP -E"
4403 else
4404 if test -z "$EGREP"; then
4405 ac_path_EGREP_found=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_prog in egrep; do
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415 as_fn_executable_p "$ac_path_EGREP" || continue
4416 # Check for GNU ac_path_EGREP and select it if it is found.
4417 # Check for GNU $ac_path_EGREP
4418 case `"$ac_path_EGREP" --version 2>&1` in
4419 *GNU*)
4420 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4421 *)
4422 ac_count=0
4423 $as_echo_n 0123456789 >"conftest.in"
4424 while :
4425 do
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 $as_echo 'EGREP' >> "conftest.nl"
4430 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432 as_fn_arith $ac_count + 1 && ac_count=$as_val
4433 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_EGREP="$ac_path_EGREP"
4436 ac_path_EGREP_max=$ac_count
4437 fi
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4440 done
4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442 esac
4443
4444 $ac_path_EGREP_found && break 3
4445 done
4446 done
4447 done
4448 IFS=$as_save_IFS
4449 if test -z "$ac_cv_path_EGREP"; then
4450 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451 fi
4452 else
4453 ac_cv_path_EGREP=$EGREP
4454 fi
4455
4456 fi
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459 $as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4464 $as_echo_n "checking for ANSI C header files... " >&6; }
4465 if ${ac_cv_header_stdc+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <stdlib.h>
4471 #include <stdarg.h>
4472 #include <string.h>
4473 #include <float.h>
4474
4475 int
4476 main ()
4477 {
4478
4479 ;
4480 return 0;
4481 }
4482 _ACEOF
4483 if ac_fn_c_try_compile "$LINENO"; then :
4484 ac_cv_header_stdc=yes
4485 else
4486 ac_cv_header_stdc=no
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489
4490 if test $ac_cv_header_stdc = yes; then
4491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <string.h>
4495
4496 _ACEOF
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 $EGREP "memchr" >/dev/null 2>&1; then :
4499
4500 else
4501 ac_cv_header_stdc=no
4502 fi
4503 rm -f conftest*
4504
4505 fi
4506
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <stdlib.h>
4512
4513 _ACEOF
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "free" >/dev/null 2>&1; then :
4516
4517 else
4518 ac_cv_header_stdc=no
4519 fi
4520 rm -f conftest*
4521
4522 fi
4523
4524 if test $ac_cv_header_stdc = yes; then
4525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4526 if test "$cross_compiling" = yes; then :
4527 :
4528 else
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <ctype.h>
4532 #include <stdlib.h>
4533 #if ((' ' & 0x0FF) == 0x020)
4534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4536 #else
4537 # define ISLOWER(c) \
4538 (('a' <= (c) && (c) <= 'i') \
4539 || ('j' <= (c) && (c) <= 'r') \
4540 || ('s' <= (c) && (c) <= 'z'))
4541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542 #endif
4543
4544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4545 int
4546 main ()
4547 {
4548 int i;
4549 for (i = 0; i < 256; i++)
4550 if (XOR (islower (i), ISLOWER (i))
4551 || toupper (i) != TOUPPER (i))
4552 return 2;
4553 return 0;
4554 }
4555 _ACEOF
4556 if ac_fn_c_try_run "$LINENO"; then :
4557
4558 else
4559 ac_cv_header_stdc=no
4560 fi
4561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4562 conftest.$ac_objext conftest.beam conftest.$ac_ext
4563 fi
4564
4565 fi
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4568 $as_echo "$ac_cv_header_stdc" >&6; }
4569 if test $ac_cv_header_stdc = yes; then
4570
4571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4572
4573 fi
4574
4575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577 inttypes.h stdint.h unistd.h
4578 do :
4579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4581 "
4582 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4583 cat >>confdefs.h <<_ACEOF
4584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 _ACEOF
4586
4587 fi
4588
4589 done
4590
4591
4592
4593 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4594 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4595 MINIX=yes
4596 else
4597 MINIX=
4598 fi
4599
4600
4601 if test "$MINIX" = yes; then
4602
4603 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4604
4605
4606 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4607
4608
4609 $as_echo "#define _MINIX 1" >>confdefs.h
4610
4611 fi
4612
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4615 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4616 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621
4622 # define __EXTENSIONS__ 1
4623 $ac_includes_default
4624 int
4625 main ()
4626 {
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_safe_to_define___extensions__=yes
4634 else
4635 ac_cv_safe_to_define___extensions__=no
4636 fi
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4640 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4641 test $ac_cv_safe_to_define___extensions__ = yes &&
4642 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4643
4644 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4645
4646 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4647
4648 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4649
4650 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4651
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4655 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4656 if ${ac_cv_c_const+:} false; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661
4662 int
4663 main ()
4664 {
4665
4666 #ifndef __cplusplus
4667 /* Ultrix mips cc rejects this sort of thing. */
4668 typedef int charset[2];
4669 const charset cs = { 0, 0 };
4670 /* SunOS 4.1.1 cc rejects this. */
4671 char const *const *pcpcc;
4672 char **ppc;
4673 /* NEC SVR4.0.2 mips cc rejects this. */
4674 struct point {int x, y;};
4675 static struct point const zero = {0,0};
4676 /* AIX XL C 1.02.0.0 rejects this.
4677 It does not let you subtract one const X* pointer from another in
4678 an arm of an if-expression whose if-part is not a constant
4679 expression */
4680 const char *g = "string";
4681 pcpcc = &g + (g ? g-g : 0);
4682 /* HPUX 7.0 cc rejects these. */
4683 ++pcpcc;
4684 ppc = (char**) pcpcc;
4685 pcpcc = (char const *const *) ppc;
4686 { /* SCO 3.2v4 cc rejects this sort of thing. */
4687 char tx;
4688 char *t = &tx;
4689 char const *s = 0 ? (char *) 0 : (char const *) 0;
4690
4691 *t++ = 0;
4692 if (s) return 0;
4693 }
4694 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4695 int x[] = {25, 17};
4696 const int *foo = &x[0];
4697 ++foo;
4698 }
4699 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4700 typedef const int *iptr;
4701 iptr p = 0;
4702 ++p;
4703 }
4704 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4705 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4706 struct s { int j; const int *ap[3]; } bx;
4707 struct s *b = &bx; b->j = 5;
4708 }
4709 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4710 const int foo = 10;
4711 if (!foo) return 0;
4712 }
4713 return !cs[0] && !zero.x;
4714 #endif
4715
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 ac_cv_c_const=yes
4722 else
4723 ac_cv_c_const=no
4724 fi
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 fi
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4728 $as_echo "$ac_cv_c_const" >&6; }
4729 if test $ac_cv_c_const = no; then
4730
4731 $as_echo "#define const /**/" >>confdefs.h
4732
4733 fi
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4736 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4737 if ${ac_cv_c_restrict+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 ac_cv_c_restrict=no
4741 # The order here caters to the fact that C++ does not require restrict.
4742 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 typedef int * int_ptr;
4746 int foo (int_ptr $ac_kw ip) {
4747 return ip[0];
4748 }
4749 int
4750 main ()
4751 {
4752 int s[1];
4753 int * $ac_kw t = s;
4754 t[0] = 0;
4755 return foo(t)
4756 ;
4757 return 0;
4758 }
4759 _ACEOF
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_c_restrict=$ac_kw
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 test "$ac_cv_c_restrict" != no && break
4765 done
4766
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4769 $as_echo "$ac_cv_c_restrict" >&6; }
4770
4771 case $ac_cv_c_restrict in
4772 restrict) ;;
4773 no) $as_echo "#define restrict /**/" >>confdefs.h
4774 ;;
4775 *) cat >>confdefs.h <<_ACEOF
4776 #define restrict $ac_cv_c_restrict
4777 _ACEOF
4778 ;;
4779 esac
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4782 $as_echo_n "checking for working volatile... " >&6; }
4783 if ${ac_cv_c_volatile+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788
4789 int
4790 main ()
4791 {
4792
4793 volatile int x;
4794 int * volatile y = (int *) 0;
4795 return !x && !y;
4796 ;
4797 return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_c_volatile=yes
4802 else
4803 ac_cv_c_volatile=no
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4808 $as_echo "$ac_cv_c_volatile" >&6; }
4809 if test $ac_cv_c_volatile = no; then
4810
4811 $as_echo "#define volatile /**/" >>confdefs.h
4812
4813 fi
4814
4815
4816 # libtool
4817
4818 case `pwd` in
4819 *\ * | *\ *)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4821 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4822 esac
4823
4824
4825
4826 macro_version='2.4.2'
4827 macro_revision='1.3337'
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 ltmain="$ac_aux_dir/ltmain.sh"
4842
4843 # Make sure we can run config.sub.
4844 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4845 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4848 $as_echo_n "checking build system type... " >&6; }
4849 if ${ac_cv_build+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 ac_build_alias=$build_alias
4853 test "x$ac_build_alias" = x &&
4854 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4855 test "x$ac_build_alias" = x &&
4856 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4857 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4858 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4859
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4862 $as_echo "$ac_cv_build" >&6; }
4863 case $ac_cv_build in
4864 *-*-*) ;;
4865 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4866 esac
4867 build=$ac_cv_build
4868 ac_save_IFS=$IFS; IFS='-'
4869 set x $ac_cv_build
4870 shift
4871 build_cpu=$1
4872 build_vendor=$2
4873 shift; shift
4874 # Remember, the first character of IFS is used to create $*,
4875 # except with old shells:
4876 build_os=$*
4877 IFS=$ac_save_IFS
4878 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4882 $as_echo_n "checking host system type... " >&6; }
4883 if ${ac_cv_host+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test "x$host_alias" = x; then
4887 ac_cv_host=$ac_cv_build
4888 else
4889 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4890 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4891 fi
4892
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4895 $as_echo "$ac_cv_host" >&6; }
4896 case $ac_cv_host in
4897 *-*-*) ;;
4898 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4899 esac
4900 host=$ac_cv_host
4901 ac_save_IFS=$IFS; IFS='-'
4902 set x $ac_cv_host
4903 shift
4904 host_cpu=$1
4905 host_vendor=$2
4906 shift; shift
4907 # Remember, the first character of IFS is used to create $*,
4908 # except with old shells:
4909 host_os=$*
4910 IFS=$ac_save_IFS
4911 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4912
4913
4914 # Backslashify metacharacters that are still active within
4915 # double-quoted strings.
4916 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4917
4918 # Same as above, but do not quote variable references.
4919 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4920
4921 # Sed substitution to delay expansion of an escaped shell variable in a
4922 # double_quote_subst'ed string.
4923 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4924
4925 # Sed substitution to delay expansion of an escaped single quote.
4926 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4927
4928 # Sed substitution to avoid accidental globbing in evaled expressions
4929 no_glob_subst='s/\*/\\\*/g'
4930
4931 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4932 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4933 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4936 $as_echo_n "checking how to print strings... " >&6; }
4937 # Test print first, because it will be a builtin if present.
4938 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4939 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4940 ECHO='print -r --'
4941 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4942 ECHO='printf %s\n'
4943 else
4944 # Use this function as a fallback that always works.
4945 func_fallback_echo ()
4946 {
4947 eval 'cat <<_LTECHO_EOF
4948 $1
4949 _LTECHO_EOF'
4950 }
4951 ECHO='func_fallback_echo'
4952 fi
4953
4954 # func_echo_all arg...
4955 # Invoke $ECHO with all args, space-separated.
4956 func_echo_all ()
4957 {
4958 $ECHO ""
4959 }
4960
4961 case "$ECHO" in
4962 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4963 $as_echo "printf" >&6; } ;;
4964 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4965 $as_echo "print -r" >&6; } ;;
4966 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4967 $as_echo "cat" >&6; } ;;
4968 esac
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4984 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4985 if ${ac_cv_path_SED+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4989 for ac_i in 1 2 3 4 5 6 7; do
4990 ac_script="$ac_script$as_nl$ac_script"
4991 done
4992 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4993 { ac_script=; unset ac_script;}
4994 if test -z "$SED"; then
4995 ac_path_SED_found=false
4996 # Loop through the user's path and test for each of PROGNAME-LIST
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_prog in sed gsed; do
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5005 as_fn_executable_p "$ac_path_SED" || continue
5006 # Check for GNU ac_path_SED and select it if it is found.
5007 # Check for GNU $ac_path_SED
5008 case `"$ac_path_SED" --version 2>&1` in
5009 *GNU*)
5010 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5011 *)
5012 ac_count=0
5013 $as_echo_n 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 $as_echo '' >> "conftest.nl"
5020 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_SED_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_SED="$ac_path_SED"
5026 ac_path_SED_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 esac
5033
5034 $ac_path_SED_found && break 3
5035 done
5036 done
5037 done
5038 IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_SED"; then
5040 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5041 fi
5042 else
5043 ac_cv_path_SED=$SED
5044 fi
5045
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5048 $as_echo "$ac_cv_path_SED" >&6; }
5049 SED="$ac_cv_path_SED"
5050 rm -f conftest.sed
5051
5052 test -z "$SED" && SED=sed
5053 Xsed="$SED -e 1s/^X//"
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5066 $as_echo_n "checking for fgrep... " >&6; }
5067 if ${ac_cv_path_FGREP+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5071 then ac_cv_path_FGREP="$GREP -F"
5072 else
5073 if test -z "$FGREP"; then
5074 ac_path_FGREP_found=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in fgrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5084 as_fn_executable_p "$ac_path_FGREP" || continue
5085 # Check for GNU ac_path_FGREP and select it if it is found.
5086 # Check for GNU $ac_path_FGREP
5087 case `"$ac_path_FGREP" --version 2>&1` in
5088 *GNU*)
5089 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5090 *)
5091 ac_count=0
5092 $as_echo_n 0123456789 >"conftest.in"
5093 while :
5094 do
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'FGREP' >> "conftest.nl"
5099 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 as_fn_arith $ac_count + 1 && ac_count=$as_val
5102 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_FGREP="$ac_path_FGREP"
5105 ac_path_FGREP_max=$ac_count
5106 fi
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5109 done
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111 esac
5112
5113 $ac_path_FGREP_found && break 3
5114 done
5115 done
5116 done
5117 IFS=$as_save_IFS
5118 if test -z "$ac_cv_path_FGREP"; then
5119 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5120 fi
5121 else
5122 ac_cv_path_FGREP=$FGREP
5123 fi
5124
5125 fi
5126 fi
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5128 $as_echo "$ac_cv_path_FGREP" >&6; }
5129 FGREP="$ac_cv_path_FGREP"
5130
5131
5132 test -z "$GREP" && GREP=grep
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 # Check whether --with-gnu-ld was given.
5153 if test "${with_gnu_ld+set}" = set; then :
5154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5155 else
5156 with_gnu_ld=no
5157 fi
5158
5159 ac_prog=ld
5160 if test "$GCC" = yes; then
5161 # Check if gcc -print-prog-name=ld gives a path.
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5163 $as_echo_n "checking for ld used by $CC... " >&6; }
5164 case $host in
5165 *-*-mingw*)
5166 # gcc leaves a trailing carriage return which upsets mingw
5167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5168 *)
5169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5170 esac
5171 case $ac_prog in
5172 # Accept absolute paths.
5173 [\\/]* | ?:[\\/]*)
5174 re_direlt='/[^/][^/]*/\.\./'
5175 # Canonicalize the pathname of ld
5176 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5177 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5178 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5179 done
5180 test -z "$LD" && LD="$ac_prog"
5181 ;;
5182 "")
5183 # If it fails, then pretend we aren't using GCC.
5184 ac_prog=ld
5185 ;;
5186 *)
5187 # If it is relative, then search for the first ld in PATH.
5188 with_gnu_ld=unknown
5189 ;;
5190 esac
5191 elif test "$with_gnu_ld" = yes; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5193 $as_echo_n "checking for GNU ld... " >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5196 $as_echo_n "checking for non-GNU ld... " >&6; }
5197 fi
5198 if ${lt_cv_path_LD+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -z "$LD"; then
5202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5203 for ac_dir in $PATH; do
5204 IFS="$lt_save_ifs"
5205 test -z "$ac_dir" && ac_dir=.
5206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5207 lt_cv_path_LD="$ac_dir/$ac_prog"
5208 # Check to see if the program is GNU ld. I'd rather use --version,
5209 # but apparently some variants of GNU ld only accept -v.
5210 # Break only if it was the GNU/non-GNU ld that we prefer.
5211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5212 *GNU* | *'with BFD'*)
5213 test "$with_gnu_ld" != no && break
5214 ;;
5215 *)
5216 test "$with_gnu_ld" != yes && break
5217 ;;
5218 esac
5219 fi
5220 done
5221 IFS="$lt_save_ifs"
5222 else
5223 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5224 fi
5225 fi
5226
5227 LD="$lt_cv_path_LD"
5228 if test -n "$LD"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5230 $as_echo "$LD" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5237 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5238 if ${lt_cv_prog_gnu_ld+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5242 case `$LD -v 2>&1 </dev/null` in
5243 *GNU* | *'with BFD'*)
5244 lt_cv_prog_gnu_ld=yes
5245 ;;
5246 *)
5247 lt_cv_prog_gnu_ld=no
5248 ;;
5249 esac
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5252 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5253 with_gnu_ld=$lt_cv_prog_gnu_ld
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5264 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5265 if ${lt_cv_path_NM+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -n "$NM"; then
5269 # Let the user override the test.
5270 lt_cv_path_NM="$NM"
5271 else
5272 lt_nm_to_check="${ac_tool_prefix}nm"
5273 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5274 lt_nm_to_check="$lt_nm_to_check nm"
5275 fi
5276 for lt_tmp_nm in $lt_nm_to_check; do
5277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5278 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5279 IFS="$lt_save_ifs"
5280 test -z "$ac_dir" && ac_dir=.
5281 tmp_nm="$ac_dir/$lt_tmp_nm"
5282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5283 # Check to see if the nm accepts a BSD-compat flag.
5284 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5285 # nm: unknown option "B" ignored
5286 # Tru64's nm complains that /dev/null is an invalid object file
5287 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5288 */dev/null* | *'Invalid file or object type'*)
5289 lt_cv_path_NM="$tmp_nm -B"
5290 break
5291 ;;
5292 *)
5293 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5294 */dev/null*)
5295 lt_cv_path_NM="$tmp_nm -p"
5296 break
5297 ;;
5298 *)
5299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5300 continue # so that we can try to find one that supports BSD flags
5301 ;;
5302 esac
5303 ;;
5304 esac
5305 fi
5306 done
5307 IFS="$lt_save_ifs"
5308 done
5309 : ${lt_cv_path_NM=no}
5310 fi
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5313 $as_echo "$lt_cv_path_NM" >&6; }
5314 if test "$lt_cv_path_NM" != "no"; then
5315 NM="$lt_cv_path_NM"
5316 else
5317 # Didn't find any BSD compatible name lister, look for dumpbin.
5318 if test -n "$DUMPBIN"; then :
5319 # Let the user override the test.
5320 else
5321 if test -n "$ac_tool_prefix"; then
5322 for ac_prog in dumpbin "link -dump"
5323 do
5324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_DUMPBIN+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$DUMPBIN"; then
5332 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349 fi
5350 fi
5351 DUMPBIN=$ac_cv_prog_DUMPBIN
5352 if test -n "$DUMPBIN"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5354 $as_echo "$DUMPBIN" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360
5361 test -n "$DUMPBIN" && break
5362 done
5363 fi
5364 if test -z "$DUMPBIN"; then
5365 ac_ct_DUMPBIN=$DUMPBIN
5366 for ac_prog in dumpbin "link -dump"
5367 do
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -n "$ac_ct_DUMPBIN"; then
5376 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393 fi
5394 fi
5395 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5396 if test -n "$ac_ct_DUMPBIN"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5398 $as_echo "$ac_ct_DUMPBIN" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 fi
5403
5404
5405 test -n "$ac_ct_DUMPBIN" && break
5406 done
5407
5408 if test "x$ac_ct_DUMPBIN" = x; then
5409 DUMPBIN=":"
5410 else
5411 case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5416 esac
5417 DUMPBIN=$ac_ct_DUMPBIN
5418 fi
5419 fi
5420
5421 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5422 *COFF*)
5423 DUMPBIN="$DUMPBIN -symbols"
5424 ;;
5425 *)
5426 DUMPBIN=:
5427 ;;
5428 esac
5429 fi
5430
5431 if test "$DUMPBIN" != ":"; then
5432 NM="$DUMPBIN"
5433 fi
5434 fi
5435 test -z "$NM" && NM=nm
5436
5437
5438
5439
5440
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5443 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5444 if ${lt_cv_nm_interface+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 lt_cv_nm_interface="BSD nm"
5448 echo "int some_variable = 0;" > conftest.$ac_ext
5449 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5450 (eval "$ac_compile" 2>conftest.err)
5451 cat conftest.err >&5
5452 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5453 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5454 cat conftest.err >&5
5455 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5456 cat conftest.out >&5
5457 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5458 lt_cv_nm_interface="MS dumpbin"
5459 fi
5460 rm -f conftest*
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5463 $as_echo "$lt_cv_nm_interface" >&6; }
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5466 $as_echo_n "checking whether ln -s works... " >&6; }
5467 LN_S=$as_ln_s
5468 if test "$LN_S" = "ln -s"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470 $as_echo "yes" >&6; }
5471 else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5473 $as_echo "no, using $LN_S" >&6; }
5474 fi
5475
5476 # find the maximum length of command line arguments
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5478 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5479 if ${lt_cv_sys_max_cmd_len+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 i=0
5483 teststring="ABCD"
5484
5485 case $build_os in
5486 msdosdjgpp*)
5487 # On DJGPP, this test can blow up pretty badly due to problems in libc
5488 # (any single argument exceeding 2000 bytes causes a buffer overrun
5489 # during glob expansion). Even if it were fixed, the result of this
5490 # check would be larger than it should be.
5491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5492 ;;
5493
5494 gnu*)
5495 # Under GNU Hurd, this test is not required because there is
5496 # no limit to the length of command line arguments.
5497 # Libtool will interpret -1 as no limit whatsoever
5498 lt_cv_sys_max_cmd_len=-1;
5499 ;;
5500
5501 cygwin* | mingw* | cegcc*)
5502 # On Win9x/ME, this test blows up -- it succeeds, but takes
5503 # about 5 minutes as the teststring grows exponentially.
5504 # Worse, since 9x/ME are not pre-emptively multitasking,
5505 # you end up with a "frozen" computer, even though with patience
5506 # the test eventually succeeds (with a max line length of 256k).
5507 # Instead, let's just punt: use the minimum linelength reported by
5508 # all of the supported platforms: 8192 (on NT/2K/XP).
5509 lt_cv_sys_max_cmd_len=8192;
5510 ;;
5511
5512 mint*)
5513 # On MiNT this can take a long time and run out of memory.
5514 lt_cv_sys_max_cmd_len=8192;
5515 ;;
5516
5517 amigaos*)
5518 # On AmigaOS with pdksh, this test takes hours, literally.
5519 # So we just punt and use a minimum line length of 8192.
5520 lt_cv_sys_max_cmd_len=8192;
5521 ;;
5522
5523 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5524 # This has been around since 386BSD, at least. Likely further.
5525 if test -x /sbin/sysctl; then
5526 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5527 elif test -x /usr/sbin/sysctl; then
5528 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5529 else
5530 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5531 fi
5532 # And add a safety zone
5533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5535 ;;
5536
5537 interix*)
5538 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5539 lt_cv_sys_max_cmd_len=196608
5540 ;;
5541
5542 os2*)
5543 # The test takes a long time on OS/2.
5544 lt_cv_sys_max_cmd_len=8192
5545 ;;
5546
5547 osf*)
5548 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5549 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5550 # nice to cause kernel panics so lets avoid the loop below.
5551 # First set a reasonable default.
5552 lt_cv_sys_max_cmd_len=16384
5553 #
5554 if test -x /sbin/sysconfig; then
5555 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5556 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5557 esac
5558 fi
5559 ;;
5560 sco3.2v5*)
5561 lt_cv_sys_max_cmd_len=102400
5562 ;;
5563 sysv5* | sco5v6* | sysv4.2uw2*)
5564 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5565 if test -n "$kargmax"; then
5566 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5567 else
5568 lt_cv_sys_max_cmd_len=32768
5569 fi
5570 ;;
5571 *)
5572 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5573 if test -n "$lt_cv_sys_max_cmd_len"; then
5574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5576 else
5577 # Make teststring a little bigger before we do anything with it.
5578 # a 1K string should be a reasonable start.
5579 for i in 1 2 3 4 5 6 7 8 ; do
5580 teststring=$teststring$teststring
5581 done
5582 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5583 # If test is not a shell built-in, we'll probably end up computing a
5584 # maximum length that is only half of the actual maximum length, but
5585 # we can't tell.
5586 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5587 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5588 test $i != 17 # 1/2 MB should be enough
5589 do
5590 i=`expr $i + 1`
5591 teststring=$teststring$teststring
5592 done
5593 # Only check the string length outside the loop.
5594 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5595 teststring=
5596 # Add a significant safety factor because C++ compilers can tack on
5597 # massive amounts of additional arguments before passing them to the
5598 # linker. It appears as though 1/2 is a usable value.
5599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5600 fi
5601 ;;
5602 esac
5603
5604 fi
5605
5606 if test -n $lt_cv_sys_max_cmd_len ; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5608 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5611 $as_echo "none" >&6; }
5612 fi
5613 max_cmd_len=$lt_cv_sys_max_cmd_len
5614
5615
5616
5617
5618
5619
5620 : ${CP="cp -f"}
5621 : ${MV="mv -f"}
5622 : ${RM="rm -f"}
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5625 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5626 # Try some XSI features
5627 xsi_shell=no
5628 ( _lt_dummy="a/b/c"
5629 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5630 = c,a/b,b/c, \
5631 && eval 'test $(( 1 + 1 )) -eq 2 \
5632 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5633 && xsi_shell=yes
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5635 $as_echo "$xsi_shell" >&6; }
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5639 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5640 lt_shell_append=no
5641 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5642 >/dev/null 2>&1 \
5643 && lt_shell_append=yes
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5645 $as_echo "$lt_shell_append" >&6; }
5646
5647
5648 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5649 lt_unset=unset
5650 else
5651 lt_unset=false
5652 fi
5653
5654
5655
5656
5657
5658 # test EBCDIC or ASCII
5659 case `echo X|tr X '\101'` in
5660 A) # ASCII based system
5661 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5662 lt_SP2NL='tr \040 \012'
5663 lt_NL2SP='tr \015\012 \040\040'
5664 ;;
5665 *) # EBCDIC based system
5666 lt_SP2NL='tr \100 \n'
5667 lt_NL2SP='tr \r\n \100\100'
5668 ;;
5669 esac
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5680 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5681 if ${lt_cv_to_host_file_cmd+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 case $host in
5685 *-*-mingw* )
5686 case $build in
5687 *-*-mingw* ) # actually msys
5688 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5689 ;;
5690 *-*-cygwin* )
5691 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5692 ;;
5693 * ) # otherwise, assume *nix
5694 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5695 ;;
5696 esac
5697 ;;
5698 *-*-cygwin* )
5699 case $build in
5700 *-*-mingw* ) # actually msys
5701 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5702 ;;
5703 *-*-cygwin* )
5704 lt_cv_to_host_file_cmd=func_convert_file_noop
5705 ;;
5706 * ) # otherwise, assume *nix
5707 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5708 ;;
5709 esac
5710 ;;
5711 * ) # unhandled hosts (and "normal" native builds)
5712 lt_cv_to_host_file_cmd=func_convert_file_noop
5713 ;;
5714 esac
5715
5716 fi
5717
5718 to_host_file_cmd=$lt_cv_to_host_file_cmd
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5720 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5721
5722
5723
5724
5725
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5727 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5728 if ${lt_cv_to_tool_file_cmd+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 #assume ordinary cross tools, or native build.
5732 lt_cv_to_tool_file_cmd=func_convert_file_noop
5733 case $host in
5734 *-*-mingw* )
5735 case $build in
5736 *-*-mingw* ) # actually msys
5737 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5738 ;;
5739 esac
5740 ;;
5741 esac
5742
5743 fi
5744
5745 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5747 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5748
5749
5750
5751
5752
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5754 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5755 if ${lt_cv_ld_reload_flag+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 lt_cv_ld_reload_flag='-r'
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5761 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5762 reload_flag=$lt_cv_ld_reload_flag
5763 case $reload_flag in
5764 "" | " "*) ;;
5765 *) reload_flag=" $reload_flag" ;;
5766 esac
5767 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5768 case $host_os in
5769 cygwin* | mingw* | pw32* | cegcc*)
5770 if test "$GCC" != yes; then
5771 reload_cmds=false
5772 fi
5773 ;;
5774 darwin*)
5775 if test "$GCC" = yes; then
5776 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5777 else
5778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5779 fi
5780 ;;
5781 esac
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_OBJDUMP+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$OBJDUMP"; then
5800 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 OBJDUMP=$ac_cv_prog_OBJDUMP
5820 if test -n "$OBJDUMP"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5822 $as_echo "$OBJDUMP" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828
5829 fi
5830 if test -z "$ac_cv_prog_OBJDUMP"; then
5831 ac_ct_OBJDUMP=$OBJDUMP
5832 # Extract the first word of "objdump", so it can be a program name with args.
5833 set dummy objdump; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$ac_ct_OBJDUMP"; then
5840 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5860 if test -n "$ac_ct_OBJDUMP"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5862 $as_echo "$ac_ct_OBJDUMP" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868 if test "x$ac_ct_OBJDUMP" = x; then
5869 OBJDUMP="false"
5870 else
5871 case $cross_compiling:$ac_tool_warned in
5872 yes:)
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875 ac_tool_warned=yes ;;
5876 esac
5877 OBJDUMP=$ac_ct_OBJDUMP
5878 fi
5879 else
5880 OBJDUMP="$ac_cv_prog_OBJDUMP"
5881 fi
5882
5883 test -z "$OBJDUMP" && OBJDUMP=objdump
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5894 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5895 if ${lt_cv_deplibs_check_method+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 lt_cv_file_magic_cmd='$MAGIC_CMD'
5899 lt_cv_file_magic_test_file=
5900 lt_cv_deplibs_check_method='unknown'
5901 # Need to set the preceding variable on all platforms that support
5902 # interlibrary dependencies.
5903 # 'none' -- dependencies not supported.
5904 # `unknown' -- same as none, but documents that we really don't know.
5905 # 'pass_all' -- all dependencies passed with no checks.
5906 # 'test_compile' -- check by making test program.
5907 # 'file_magic [[regex]]' -- check by looking for files in library path
5908 # which responds to the $file_magic_cmd with a given extended regex.
5909 # If you have `file' or equivalent on your system and you're not sure
5910 # whether `pass_all' will *always* work, you probably want this one.
5911
5912 case $host_os in
5913 aix[4-9]*)
5914 lt_cv_deplibs_check_method=pass_all
5915 ;;
5916
5917 beos*)
5918 lt_cv_deplibs_check_method=pass_all
5919 ;;
5920
5921 bsdi[45]*)
5922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5923 lt_cv_file_magic_cmd='/usr/bin/file -L'
5924 lt_cv_file_magic_test_file=/shlib/libc.so
5925 ;;
5926
5927 cygwin*)
5928 # func_win32_libid is a shell function defined in ltmain.sh
5929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5930 lt_cv_file_magic_cmd='func_win32_libid'
5931 ;;
5932
5933 mingw* | pw32*)
5934 # Base MSYS/MinGW do not provide the 'file' command needed by
5935 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5936 # unless we find 'file', for example because we are cross-compiling.
5937 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5938 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5939 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5940 lt_cv_file_magic_cmd='func_win32_libid'
5941 else
5942 # Keep this pattern in sync with the one in func_win32_libid.
5943 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5944 lt_cv_file_magic_cmd='$OBJDUMP -f'
5945 fi
5946 ;;
5947
5948 cegcc*)
5949 # use the weaker test based on 'objdump'. See mingw*.
5950 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5951 lt_cv_file_magic_cmd='$OBJDUMP -f'
5952 ;;
5953
5954 darwin* | rhapsody*)
5955 lt_cv_deplibs_check_method=pass_all
5956 ;;
5957
5958 freebsd* | dragonfly*)
5959 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5960 case $host_cpu in
5961 i*86 )
5962 # Not sure whether the presence of OpenBSD here was a mistake.
5963 # Let's accept both of them until this is cleared up.
5964 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5965 lt_cv_file_magic_cmd=/usr/bin/file
5966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5967 ;;
5968 esac
5969 else
5970 lt_cv_deplibs_check_method=pass_all
5971 fi
5972 ;;
5973
5974 gnu*)
5975 lt_cv_deplibs_check_method=pass_all
5976 ;;
5977
5978 haiku*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982 hpux10.20* | hpux11*)
5983 lt_cv_file_magic_cmd=/usr/bin/file
5984 case $host_cpu in
5985 ia64*)
5986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5987 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5988 ;;
5989 hppa*64*)
5990 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]'
5991 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5992 ;;
5993 *)
5994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5996 ;;
5997 esac
5998 ;;
5999
6000 interix[3-9]*)
6001 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6003 ;;
6004
6005 irix5* | irix6* | nonstopux*)
6006 case $LD in
6007 *-32|*"-32 ") libmagic=32-bit;;
6008 *-n32|*"-n32 ") libmagic=N32;;
6009 *-64|*"-64 ") libmagic=64-bit;;
6010 *) libmagic=never-match;;
6011 esac
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015 # This must be glibc/ELF.
6016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020 netbsd*)
6021 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6023 else
6024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6025 fi
6026 ;;
6027
6028 newos6*)
6029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6030 lt_cv_file_magic_cmd=/usr/bin/file
6031 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6032 ;;
6033
6034 *nto* | *qnx*)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037
6038 openbsd*)
6039 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6041 else
6042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6043 fi
6044 ;;
6045
6046 osf3* | osf4* | osf5*)
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
6049
6050 rdos*)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
6053
6054 solaris*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057
6058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061
6062 sysv4 | sysv4.3*)
6063 case $host_vendor in
6064 motorola)
6065 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]'
6066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6067 ;;
6068 ncr)
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071 sequent)
6072 lt_cv_file_magic_cmd='/bin/file'
6073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6074 ;;
6075 sni)
6076 lt_cv_file_magic_cmd='/bin/file'
6077 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6078 lt_cv_file_magic_test_file=/lib/libc.so
6079 ;;
6080 siemens)
6081 lt_cv_deplibs_check_method=pass_all
6082 ;;
6083 pc)
6084 lt_cv_deplibs_check_method=pass_all
6085 ;;
6086 esac
6087 ;;
6088
6089 tpf*)
6090 lt_cv_deplibs_check_method=pass_all
6091 ;;
6092 esac
6093
6094 fi
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6096 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6097
6098 file_magic_glob=
6099 want_nocaseglob=no
6100 if test "$build" = "$host"; then
6101 case $host_os in
6102 mingw* | pw32*)
6103 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6104 want_nocaseglob=yes
6105 else
6106 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6107 fi
6108 ;;
6109 esac
6110 fi
6111
6112 file_magic_cmd=$lt_cv_file_magic_cmd
6113 deplibs_check_method=$lt_cv_deplibs_check_method
6114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_DLLTOOL+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$DLLTOOL"; then
6146 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 DLLTOOL=$ac_cv_prog_DLLTOOL
6166 if test -n "$DLLTOOL"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6168 $as_echo "$DLLTOOL" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174
6175 fi
6176 if test -z "$ac_cv_prog_DLLTOOL"; then
6177 ac_ct_DLLTOOL=$DLLTOOL
6178 # Extract the first word of "dlltool", so it can be a program name with args.
6179 set dummy dlltool; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if test -n "$ac_ct_DLLTOOL"; then
6186 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6206 if test -n "$ac_ct_DLLTOOL"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6208 $as_echo "$ac_ct_DLLTOOL" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214 if test "x$ac_ct_DLLTOOL" = x; then
6215 DLLTOOL="false"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 DLLTOOL=$ac_ct_DLLTOOL
6224 fi
6225 else
6226 DLLTOOL="$ac_cv_prog_DLLTOOL"
6227 fi
6228
6229 test -z "$DLLTOOL" && DLLTOOL=dlltool
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6241 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6242 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 lt_cv_sharedlib_from_linklib_cmd='unknown'
6246
6247 case $host_os in
6248 cygwin* | mingw* | pw32* | cegcc*)
6249 # two different shell functions defined in ltmain.sh
6250 # decide which to use based on capabilities of $DLLTOOL
6251 case `$DLLTOOL --help 2>&1` in
6252 *--identify-strict*)
6253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6254 ;;
6255 *)
6256 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6257 ;;
6258 esac
6259 ;;
6260 *)
6261 # fallback: assume linklib IS sharedlib
6262 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6263 ;;
6264 esac
6265
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6268 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6269 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6270 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6271
6272
6273
6274
6275
6276
6277
6278 if test -n "$ac_tool_prefix"; then
6279 for ac_prog in ar
6280 do
6281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_AR+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 if test -n "$AR"; then
6289 ac_cv_prog_AR="$AR" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302 done
6303 done
6304 IFS=$as_save_IFS
6305
6306 fi
6307 fi
6308 AR=$ac_cv_prog_AR
6309 if test -n "$AR"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6311 $as_echo "$AR" >&6; }
6312 else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316
6317
6318 test -n "$AR" && break
6319 done
6320 fi
6321 if test -z "$AR"; then
6322 ac_ct_AR=$AR
6323 for ac_prog in ar
6324 do
6325 # Extract the first word of "$ac_prog", so it can be a program name with args.
6326 set dummy $ac_prog; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$ac_ct_AR"; then
6333 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_ac_ct_AR="$ac_prog"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6353 if test -n "$ac_ct_AR"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6355 $as_echo "$ac_ct_AR" >&6; }
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361
6362 test -n "$ac_ct_AR" && break
6363 done
6364
6365 if test "x$ac_ct_AR" = x; then
6366 AR="false"
6367 else
6368 case $cross_compiling:$ac_tool_warned in
6369 yes:)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6373 esac
6374 AR=$ac_ct_AR
6375 fi
6376 fi
6377
6378 : ${AR=ar}
6379 : ${AR_FLAGS=cru}
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6392 $as_echo_n "checking for archiver @FILE support... " >&6; }
6393 if ${lt_cv_ar_at_file+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 lt_cv_ar_at_file=no
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399
6400 int
6401 main ()
6402 {
6403
6404 ;
6405 return 0;
6406 }
6407 _ACEOF
6408 if ac_fn_c_try_compile "$LINENO"; then :
6409 echo conftest.$ac_objext > conftest.lst
6410 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6412 (eval $lt_ar_try) 2>&5
6413 ac_status=$?
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }
6416 if test "$ac_status" -eq 0; then
6417 # Ensure the archiver fails upon bogus file names.
6418 rm -f conftest.$ac_objext libconftest.a
6419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6420 (eval $lt_ar_try) 2>&5
6421 ac_status=$?
6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423 test $ac_status = 0; }
6424 if test "$ac_status" -ne 0; then
6425 lt_cv_ar_at_file=@
6426 fi
6427 fi
6428 rm -f conftest.* libconftest.a
6429
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432
6433 fi
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6435 $as_echo "$lt_cv_ar_at_file" >&6; }
6436
6437 if test "x$lt_cv_ar_at_file" = xno; then
6438 archiver_list_spec=
6439 else
6440 archiver_list_spec=$lt_cv_ar_at_file
6441 fi
6442
6443
6444
6445
6446
6447
6448
6449 if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6451 set dummy ${ac_tool_prefix}strip; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_prog_STRIP+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 if test -n "$STRIP"; then
6458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471 done
6472 done
6473 IFS=$as_save_IFS
6474
6475 fi
6476 fi
6477 STRIP=$ac_cv_prog_STRIP
6478 if test -n "$STRIP"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6480 $as_echo "$STRIP" >&6; }
6481 else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6484 fi
6485
6486
6487 fi
6488 if test -z "$ac_cv_prog_STRIP"; then
6489 ac_ct_STRIP=$STRIP
6490 # Extract the first word of "strip", so it can be a program name with args.
6491 set dummy strip; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -n "$ac_ct_STRIP"; then
6498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_ac_ct_STRIP="strip"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511 done
6512 done
6513 IFS=$as_save_IFS
6514
6515 fi
6516 fi
6517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6518 if test -n "$ac_ct_STRIP"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6520 $as_echo "$ac_ct_STRIP" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526 if test "x$ac_ct_STRIP" = x; then
6527 STRIP=":"
6528 else
6529 case $cross_compiling:$ac_tool_warned in
6530 yes:)
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6534 esac
6535 STRIP=$ac_ct_STRIP
6536 fi
6537 else
6538 STRIP="$ac_cv_prog_STRIP"
6539 fi
6540
6541 test -z "$STRIP" && STRIP=:
6542
6543
6544
6545
6546
6547
6548 if test -n "$ac_tool_prefix"; then
6549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_RANLIB+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 if test -n "$RANLIB"; then
6557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 RANLIB=$ac_cv_prog_RANLIB
6577 if test -n "$RANLIB"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6579 $as_echo "$RANLIB" >&6; }
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585
6586 fi
6587 if test -z "$ac_cv_prog_RANLIB"; then
6588 ac_ct_RANLIB=$RANLIB
6589 # Extract the first word of "ranlib", so it can be a program name with args.
6590 set dummy ranlib; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if test -n "$ac_ct_RANLIB"; then
6597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_RANLIB="ranlib"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6617 if test -n "$ac_ct_RANLIB"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6619 $as_echo "$ac_ct_RANLIB" >&6; }
6620 else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6623 fi
6624
6625 if test "x$ac_ct_RANLIB" = x; then
6626 RANLIB=":"
6627 else
6628 case $cross_compiling:$ac_tool_warned in
6629 yes:)
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6633 esac
6634 RANLIB=$ac_ct_RANLIB
6635 fi
6636 else
6637 RANLIB="$ac_cv_prog_RANLIB"
6638 fi
6639
6640 test -z "$RANLIB" && RANLIB=:
6641
6642
6643
6644
6645
6646
6647 # Determine commands to create old-style static archives.
6648 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6649 old_postinstall_cmds='chmod 644 $oldlib'
6650 old_postuninstall_cmds=
6651
6652 if test -n "$RANLIB"; then
6653 case $host_os in
6654 openbsd*)
6655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6656 ;;
6657 *)
6658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6659 ;;
6660 esac
6661 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6662 fi
6663
6664 case $host_os in
6665 darwin*)
6666 lock_old_archive_extraction=yes ;;
6667 *)
6668 lock_old_archive_extraction=no ;;
6669 esac
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709 # If no C compiler was specified, use CC.
6710 LTCC=${LTCC-"$CC"}
6711
6712 # If no C compiler flags were specified, use CFLAGS.
6713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6714
6715 # Allow CC to be a program name with arguments.
6716 compiler=$CC
6717
6718
6719 # Check for command to grab the raw symbol name followed by C symbol from nm.
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6721 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6722 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725
6726 # These are sane defaults that work on at least a few old systems.
6727 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6728
6729 # Character class describing NM global symbol codes.
6730 symcode='[BCDEGRST]'
6731
6732 # Regexp to match symbols that can be accessed directly from C.
6733 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6734
6735 # Define system-specific variables.
6736 case $host_os in
6737 aix*)
6738 symcode='[BCDT]'
6739 ;;
6740 cygwin* | mingw* | pw32* | cegcc*)
6741 symcode='[ABCDGISTW]'
6742 ;;
6743 hpux*)
6744 if test "$host_cpu" = ia64; then
6745 symcode='[ABCDEGRST]'
6746 fi
6747 ;;
6748 irix* | nonstopux*)
6749 symcode='[BCDEGRST]'
6750 ;;
6751 osf*)
6752 symcode='[BCDEGQRST]'
6753 ;;
6754 solaris*)
6755 symcode='[BDRT]'
6756 ;;
6757 sco3.2v5*)
6758 symcode='[DT]'
6759 ;;
6760 sysv4.2uw2*)
6761 symcode='[DT]'
6762 ;;
6763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6764 symcode='[ABDT]'
6765 ;;
6766 sysv4)
6767 symcode='[DFNSTU]'
6768 ;;
6769 esac
6770
6771 # If we're using GNU nm, then use its standard symbol codes.
6772 case `$NM -V 2>&1` in
6773 *GNU* | *'with BFD'*)
6774 symcode='[ABCDGIRSTW]' ;;
6775 esac
6776
6777 # Transform an extracted symbol line into a proper C declaration.
6778 # Some systems (esp. on ia64) link data and code symbols differently,
6779 # so use this general approach.
6780 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6781
6782 # Transform an extracted symbol line into symbol name and symbol address
6783 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6784 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6785
6786 # Handle CRLF in mingw tool chain
6787 opt_cr=
6788 case $build_os in
6789 mingw*)
6790 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6791 ;;
6792 esac
6793
6794 # Try without a prefix underscore, then with it.
6795 for ac_symprfx in "" "_"; do
6796
6797 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6798 symxfrm="\\1 $ac_symprfx\\2 \\2"
6799
6800 # Write the raw and C identifiers.
6801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6802 # Fake it for dumpbin and say T for any non-static function
6803 # and D for any global variable.
6804 # Also find C++ and __fastcall symbols from MSVC++,
6805 # which start with @ or ?.
6806 lt_cv_sys_global_symbol_pipe="$AWK '"\
6807 " {last_section=section; section=\$ 3};"\
6808 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6809 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6810 " \$ 0!~/External *\|/{next};"\
6811 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6812 " {if(hide[section]) next};"\
6813 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6814 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6815 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6816 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6817 " ' prfx=^$ac_symprfx"
6818 else
6819 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6820 fi
6821 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6822
6823 # Check to see that the pipe works correctly.
6824 pipe_works=no
6825
6826 rm -f conftest*
6827 cat > conftest.$ac_ext <<_LT_EOF
6828 #ifdef __cplusplus
6829 extern "C" {
6830 #endif
6831 char nm_test_var;
6832 void nm_test_func(void);
6833 void nm_test_func(void){}
6834 #ifdef __cplusplus
6835 }
6836 #endif
6837 int main(){nm_test_var='a';nm_test_func();return(0);}
6838 _LT_EOF
6839
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6842 ac_status=$?
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 # Now try to grab the symbols.
6846 nlist=conftest.nm
6847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6848 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6849 ac_status=$?
6850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851 test $ac_status = 0; } && test -s "$nlist"; then
6852 # Try sorting and uniquifying the output.
6853 if sort "$nlist" | uniq > "$nlist"T; then
6854 mv -f "$nlist"T "$nlist"
6855 else
6856 rm -f "$nlist"T
6857 fi
6858
6859 # Make sure that we snagged all the symbols we need.
6860 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6861 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6862 cat <<_LT_EOF > conftest.$ac_ext
6863 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6864 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6865 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6866 relocations are performed -- see ld's documentation on pseudo-relocs. */
6867 # define LT_DLSYM_CONST
6868 #elif defined(__osf__)
6869 /* This system does not cope well with relocations in const data. */
6870 # define LT_DLSYM_CONST
6871 #else
6872 # define LT_DLSYM_CONST const
6873 #endif
6874
6875 #ifdef __cplusplus
6876 extern "C" {
6877 #endif
6878
6879 _LT_EOF
6880 # Now generate the symbol file.
6881 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6882
6883 cat <<_LT_EOF >> conftest.$ac_ext
6884
6885 /* The mapping between symbol names and symbols. */
6886 LT_DLSYM_CONST struct {
6887 const char *name;
6888 void *address;
6889 }
6890 lt__PROGRAM__LTX_preloaded_symbols[] =
6891 {
6892 { "@PROGRAM@", (void *) 0 },
6893 _LT_EOF
6894 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6895 cat <<\_LT_EOF >> conftest.$ac_ext
6896 {0, (void *) 0}
6897 };
6898
6899 /* This works around a problem in FreeBSD linker */
6900 #ifdef FREEBSD_WORKAROUND
6901 static const void *lt_preloaded_setup() {
6902 return lt__PROGRAM__LTX_preloaded_symbols;
6903 }
6904 #endif
6905
6906 #ifdef __cplusplus
6907 }
6908 #endif
6909 _LT_EOF
6910 # Now try linking the two files.
6911 mv conftest.$ac_objext conftstm.$ac_objext
6912 lt_globsym_save_LIBS=$LIBS
6913 lt_globsym_save_CFLAGS=$CFLAGS
6914 LIBS="conftstm.$ac_objext"
6915 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6917 (eval $ac_link) 2>&5
6918 ac_status=$?
6919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6920 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6921 pipe_works=yes
6922 fi
6923 LIBS=$lt_globsym_save_LIBS
6924 CFLAGS=$lt_globsym_save_CFLAGS
6925 else
6926 echo "cannot find nm_test_func in $nlist" >&5
6927 fi
6928 else
6929 echo "cannot find nm_test_var in $nlist" >&5
6930 fi
6931 else
6932 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6933 fi
6934 else
6935 echo "$progname: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6937 fi
6938 rm -rf conftest* conftst*
6939
6940 # Do not use the global_symbol_pipe unless it works.
6941 if test "$pipe_works" = yes; then
6942 break
6943 else
6944 lt_cv_sys_global_symbol_pipe=
6945 fi
6946 done
6947
6948 fi
6949
6950 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6951 lt_cv_sys_global_symbol_to_cdecl=
6952 fi
6953 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6955 $as_echo "failed" >&6; }
6956 else
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6958 $as_echo "ok" >&6; }
6959 fi
6960
6961 # Response file support.
6962 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6963 nm_file_list_spec='@'
6964 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6965 nm_file_list_spec='@'
6966 fi
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6995 $as_echo_n "checking for sysroot... " >&6; }
6996
6997 # Check whether --with-sysroot was given.
6998 if test "${with_sysroot+set}" = set; then :
6999 withval=$with_sysroot;
7000 else
7001 with_sysroot=no
7002 fi
7003
7004
7005 lt_sysroot=
7006 case ${with_sysroot} in #(
7007 yes)
7008 if test "$GCC" = yes; then
7009 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7010 fi
7011 ;; #(
7012 /*)
7013 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7014 ;; #(
7015 no|'')
7016 ;; #(
7017 *)
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7019 $as_echo "${with_sysroot}" >&6; }
7020 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7021 ;;
7022 esac
7023
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7025 $as_echo "${lt_sysroot:-no}" >&6; }
7026
7027
7028
7029
7030
7031 # Check whether --enable-libtool-lock was given.
7032 if test "${enable_libtool_lock+set}" = set; then :
7033 enableval=$enable_libtool_lock;
7034 fi
7035
7036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7037
7038 # Some flags need to be propagated to the compiler or linker for good
7039 # libtool support.
7040 case $host in
7041 ia64-*-hpux*)
7042 # Find out which ABI we are using.
7043 echo 'int i;' > conftest.$ac_ext
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 case `/usr/bin/file conftest.$ac_objext` in
7050 *ELF-32*)
7051 HPUX_IA64_MODE="32"
7052 ;;
7053 *ELF-64*)
7054 HPUX_IA64_MODE="64"
7055 ;;
7056 esac
7057 fi
7058 rm -rf conftest*
7059 ;;
7060 *-*-irix6*)
7061 # Find out which ABI we are using.
7062 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7064 (eval $ac_compile) 2>&5
7065 ac_status=$?
7066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067 test $ac_status = 0; }; then
7068 if test "$lt_cv_prog_gnu_ld" = yes; then
7069 case `/usr/bin/file conftest.$ac_objext` in
7070 *32-bit*)
7071 LD="${LD-ld} -melf32bsmip"
7072 ;;
7073 *N32*)
7074 LD="${LD-ld} -melf32bmipn32"
7075 ;;
7076 *64-bit*)
7077 LD="${LD-ld} -melf64bmip"
7078 ;;
7079 esac
7080 else
7081 case `/usr/bin/file conftest.$ac_objext` in
7082 *32-bit*)
7083 LD="${LD-ld} -32"
7084 ;;
7085 *N32*)
7086 LD="${LD-ld} -n32"
7087 ;;
7088 *64-bit*)
7089 LD="${LD-ld} -64"
7090 ;;
7091 esac
7092 fi
7093 fi
7094 rm -rf conftest*
7095 ;;
7096
7097 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7098 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7099 # Find out which ABI we are using.
7100 echo 'int i;' > conftest.$ac_ext
7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102 (eval $ac_compile) 2>&5
7103 ac_status=$?
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 case `/usr/bin/file conftest.o` in
7107 *32-bit*)
7108 case $host in
7109 x86_64-*kfreebsd*-gnu)
7110 LD="${LD-ld} -m elf_i386_fbsd"
7111 ;;
7112 x86_64-*linux*)
7113 LD="${LD-ld} -m elf_i386"
7114 ;;
7115 ppc64-*linux*|powerpc64-*linux*)
7116 LD="${LD-ld} -m elf32ppclinux"
7117 ;;
7118 s390x-*linux*)
7119 LD="${LD-ld} -m elf_s390"
7120 ;;
7121 sparc64-*linux*)
7122 LD="${LD-ld} -m elf32_sparc"
7123 ;;
7124 esac
7125 ;;
7126 *64-bit*)
7127 case $host in
7128 x86_64-*kfreebsd*-gnu)
7129 LD="${LD-ld} -m elf_x86_64_fbsd"
7130 ;;
7131 x86_64-*linux*)
7132 LD="${LD-ld} -m elf_x86_64"
7133 ;;
7134 ppc*-*linux*|powerpc*-*linux*)
7135 LD="${LD-ld} -m elf64ppc"
7136 ;;
7137 s390*-*linux*|s390*-*tpf*)
7138 LD="${LD-ld} -m elf64_s390"
7139 ;;
7140 sparc*-*linux*)
7141 LD="${LD-ld} -m elf64_sparc"
7142 ;;
7143 esac
7144 ;;
7145 esac
7146 fi
7147 rm -rf conftest*
7148 ;;
7149
7150 *-*-sco3.2v5*)
7151 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7152 SAVE_CFLAGS="$CFLAGS"
7153 CFLAGS="$CFLAGS -belf"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7155 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7156 if ${lt_cv_cc_needs_belf+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 ac_ext=c
7160 ac_cpp='$CPP $CPPFLAGS'
7161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167
7168 int
7169 main ()
7170 {
7171
7172 ;
7173 return 0;
7174 }
7175 _ACEOF
7176 if ac_fn_c_try_link "$LINENO"; then :
7177 lt_cv_cc_needs_belf=yes
7178 else
7179 lt_cv_cc_needs_belf=no
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
7183 ac_ext=c
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7188
7189 fi
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7191 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7192 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7193 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7194 CFLAGS="$SAVE_CFLAGS"
7195 fi
7196 ;;
7197 *-*solaris*)
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7201 (eval $ac_compile) 2>&5
7202 ac_status=$?
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; }; then
7205 case `/usr/bin/file conftest.o` in
7206 *64-bit*)
7207 case $lt_cv_prog_gnu_ld in
7208 yes*)
7209 case $host in
7210 i?86-*-solaris*)
7211 LD="${LD-ld} -m elf_x86_64"
7212 ;;
7213 sparc*-*-solaris*)
7214 LD="${LD-ld} -m elf64_sparc"
7215 ;;
7216 esac
7217 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7218 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7219 LD="${LD-ld}_sol2"
7220 fi
7221 ;;
7222 *)
7223 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7224 LD="${LD-ld} -64"
7225 fi
7226 ;;
7227 esac
7228 ;;
7229 esac
7230 fi
7231 rm -rf conftest*
7232 ;;
7233 esac
7234
7235 need_locks="$enable_libtool_lock"
7236
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}mt; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test -n "$MANIFEST_TOOL"; then
7246 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7266 if test -n "$MANIFEST_TOOL"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7268 $as_echo "$MANIFEST_TOOL" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274
7275 fi
7276 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7277 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7278 # Extract the first word of "mt", so it can be a program name with args.
7279 set dummy mt; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$ac_ct_MANIFEST_TOOL"; then
7286 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7306 if test -n "$ac_ct_MANIFEST_TOOL"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7308 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7315 MANIFEST_TOOL=":"
7316 else
7317 case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7324 fi
7325 else
7326 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7327 fi
7328
7329 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7331 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7332 if ${lt_cv_path_mainfest_tool+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 lt_cv_path_mainfest_tool=no
7336 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7337 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7338 cat conftest.err >&5
7339 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7340 lt_cv_path_mainfest_tool=yes
7341 fi
7342 rm -f conftest*
7343 fi
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7345 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7346 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7347 MANIFEST_TOOL=:
7348 fi
7349
7350
7351
7352
7353
7354
7355 case $host_os in
7356 rhapsody* | darwin*)
7357 if test -n "$ac_tool_prefix"; then
7358 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7359 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 if test -n "$DSYMUTIL"; then
7366 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379 done
7380 done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7386 if test -n "$DSYMUTIL"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7388 $as_echo "$DSYMUTIL" >&6; }
7389 else
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394
7395 fi
7396 if test -z "$ac_cv_prog_DSYMUTIL"; then
7397 ac_ct_DSYMUTIL=$DSYMUTIL
7398 # Extract the first word of "dsymutil", so it can be a program name with args.
7399 set dummy dsymutil; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 if test -n "$ac_ct_DSYMUTIL"; then
7406 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7407 else
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7410 do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419 done
7420 done
7421 IFS=$as_save_IFS
7422
7423 fi
7424 fi
7425 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7426 if test -n "$ac_ct_DSYMUTIL"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7428 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7429 else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 fi
7433
7434 if test "x$ac_ct_DSYMUTIL" = x; then
7435 DSYMUTIL=":"
7436 else
7437 case $cross_compiling:$ac_tool_warned in
7438 yes:)
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7441 ac_tool_warned=yes ;;
7442 esac
7443 DSYMUTIL=$ac_ct_DSYMUTIL
7444 fi
7445 else
7446 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7447 fi
7448
7449 if test -n "$ac_tool_prefix"; then
7450 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_NMEDIT+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 if test -n "$NMEDIT"; then
7458 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 break 2
7470 fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 NMEDIT=$ac_cv_prog_NMEDIT
7478 if test -n "$NMEDIT"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7480 $as_echo "$NMEDIT" >&6; }
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486
7487 fi
7488 if test -z "$ac_cv_prog_NMEDIT"; then
7489 ac_ct_NMEDIT=$NMEDIT
7490 # Extract the first word of "nmedit", so it can be a program name with args.
7491 set dummy nmedit; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 if test -n "$ac_ct_NMEDIT"; then
7498 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7518 if test -n "$ac_ct_NMEDIT"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7520 $as_echo "$ac_ct_NMEDIT" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525
7526 if test "x$ac_ct_NMEDIT" = x; then
7527 NMEDIT=":"
7528 else
7529 case $cross_compiling:$ac_tool_warned in
7530 yes:)
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7534 esac
7535 NMEDIT=$ac_ct_NMEDIT
7536 fi
7537 else
7538 NMEDIT="$ac_cv_prog_NMEDIT"
7539 fi
7540
7541 if test -n "$ac_tool_prefix"; then
7542 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_LIPO+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 if test -n "$LIPO"; then
7550 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567 fi
7568 fi
7569 LIPO=$ac_cv_prog_LIPO
7570 if test -n "$LIPO"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7572 $as_echo "$LIPO" >&6; }
7573 else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7576 fi
7577
7578
7579 fi
7580 if test -z "$ac_cv_prog_LIPO"; then
7581 ac_ct_LIPO=$LIPO
7582 # Extract the first word of "lipo", so it can be a program name with args.
7583 set dummy lipo; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 if test -n "$ac_ct_LIPO"; then
7590 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_ac_ct_LIPO="lipo"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607 fi
7608 fi
7609 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7610 if test -n "$ac_ct_LIPO"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7612 $as_echo "$ac_ct_LIPO" >&6; }
7613 else
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617
7618 if test "x$ac_ct_LIPO" = x; then
7619 LIPO=":"
7620 else
7621 case $cross_compiling:$ac_tool_warned in
7622 yes:)
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7626 esac
7627 LIPO=$ac_ct_LIPO
7628 fi
7629 else
7630 LIPO="$ac_cv_prog_LIPO"
7631 fi
7632
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}otool; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_OTOOL+:} false; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 if test -n "$OTOOL"; then
7642 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7654 fi
7655 done
7656 done
7657 IFS=$as_save_IFS
7658
7659 fi
7660 fi
7661 OTOOL=$ac_cv_prog_OTOOL
7662 if test -n "$OTOOL"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7664 $as_echo "$OTOOL" >&6; }
7665 else
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669
7670
7671 fi
7672 if test -z "$ac_cv_prog_OTOOL"; then
7673 ac_ct_OTOOL=$OTOOL
7674 # Extract the first word of "otool", so it can be a program name with args.
7675 set dummy otool; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$ac_ct_OTOOL"; then
7682 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_OTOOL="otool"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7702 if test -n "$ac_ct_OTOOL"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7704 $as_echo "$ac_ct_OTOOL" >&6; }
7705 else
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710 if test "x$ac_ct_OTOOL" = x; then
7711 OTOOL=":"
7712 else
7713 case $cross_compiling:$ac_tool_warned in
7714 yes:)
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7718 esac
7719 OTOOL=$ac_ct_OTOOL
7720 fi
7721 else
7722 OTOOL="$ac_cv_prog_OTOOL"
7723 fi
7724
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_OTOOL64+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 if test -n "$OTOOL64"; then
7734 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747 done
7748 done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 OTOOL64=$ac_cv_prog_OTOOL64
7754 if test -n "$OTOOL64"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7756 $as_echo "$OTOOL64" >&6; }
7757 else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762
7763 fi
7764 if test -z "$ac_cv_prog_OTOOL64"; then
7765 ac_ct_OTOOL64=$OTOOL64
7766 # Extract the first word of "otool64", so it can be a program name with args.
7767 set dummy otool64; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$ac_ct_OTOOL64"; then
7774 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_OTOOL64="otool64"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7786 fi
7787 done
7788 done
7789 IFS=$as_save_IFS
7790
7791 fi
7792 fi
7793 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7794 if test -n "$ac_ct_OTOOL64"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7796 $as_echo "$ac_ct_OTOOL64" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802 if test "x$ac_ct_OTOOL64" = x; then
7803 OTOOL64=":"
7804 else
7805 case $cross_compiling:$ac_tool_warned in
7806 yes:)
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7810 esac
7811 OTOOL64=$ac_ct_OTOOL64
7812 fi
7813 else
7814 OTOOL64="$ac_cv_prog_OTOOL64"
7815 fi
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7844 $as_echo_n "checking for -single_module linker flag... " >&6; }
7845 if ${lt_cv_apple_cc_single_mod+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 lt_cv_apple_cc_single_mod=no
7849 if test -z "${LT_MULTI_MODULE}"; then
7850 # By default we will add the -single_module flag. You can override
7851 # by either setting the environment variable LT_MULTI_MODULE
7852 # non-empty at configure time, or by adding -multi_module to the
7853 # link flags.
7854 rm -rf libconftest.dylib*
7855 echo "int foo(void){return 1;}" > conftest.c
7856 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7857 -dynamiclib -Wl,-single_module conftest.c" >&5
7858 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7859 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7860 _lt_result=$?
7861 # If there is a non-empty error log, and "single_module"
7862 # appears in it, assume the flag caused a linker warning
7863 if test -s conftest.err && $GREP single_module conftest.err; then
7864 cat conftest.err >&5
7865 # Otherwise, if the output was created with a 0 exit code from
7866 # the compiler, it worked.
7867 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7868 lt_cv_apple_cc_single_mod=yes
7869 else
7870 cat conftest.err >&5
7871 fi
7872 rm -rf libconftest.dylib*
7873 rm -f conftest.*
7874 fi
7875 fi
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7877 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7880 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7881 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 lt_cv_ld_exported_symbols_list=no
7885 save_LDFLAGS=$LDFLAGS
7886 echo "_main" > conftest.sym
7887 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890
7891 int
7892 main ()
7893 {
7894
7895 ;
7896 return 0;
7897 }
7898 _ACEOF
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 lt_cv_ld_exported_symbols_list=yes
7901 else
7902 lt_cv_ld_exported_symbols_list=no
7903 fi
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7906 LDFLAGS="$save_LDFLAGS"
7907
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7910 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7913 $as_echo_n "checking for -force_load linker flag... " >&6; }
7914 if ${lt_cv_ld_force_load+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 lt_cv_ld_force_load=no
7918 cat > conftest.c << _LT_EOF
7919 int forced_loaded() { return 2;}
7920 _LT_EOF
7921 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7922 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7923 echo "$AR cru libconftest.a conftest.o" >&5
7924 $AR cru libconftest.a conftest.o 2>&5
7925 echo "$RANLIB libconftest.a" >&5
7926 $RANLIB libconftest.a 2>&5
7927 cat > conftest.c << _LT_EOF
7928 int main() { return 0;}
7929 _LT_EOF
7930 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7931 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7932 _lt_result=$?
7933 if test -s conftest.err && $GREP force_load conftest.err; then
7934 cat conftest.err >&5
7935 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7936 lt_cv_ld_force_load=yes
7937 else
7938 cat conftest.err >&5
7939 fi
7940 rm -f conftest.err libconftest.a conftest conftest.c
7941 rm -rf conftest.dSYM
7942
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7945 $as_echo "$lt_cv_ld_force_load" >&6; }
7946 case $host_os in
7947 rhapsody* | darwin1.[012])
7948 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7949 darwin1.*)
7950 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951 darwin*) # darwin 5.x on
7952 # if running on 10.5 or later, the deployment target defaults
7953 # to the OS version, if on x86, and 10.4, the deployment
7954 # target defaults to 10.4. Don't you love it?
7955 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7956 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7958 10.[012]*)
7959 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7960 10.*)
7961 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7962 esac
7963 ;;
7964 esac
7965 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7966 _lt_dar_single_mod='$single_module'
7967 fi
7968 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7969 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7970 else
7971 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7972 fi
7973 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7974 _lt_dsymutil='~$DSYMUTIL $lib || :'
7975 else
7976 _lt_dsymutil=
7977 fi
7978 ;;
7979 esac
7980
7981 for ac_header in dlfcn.h
7982 do :
7983 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7984 "
7985 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7986 cat >>confdefs.h <<_ACEOF
7987 #define HAVE_DLFCN_H 1
7988 _ACEOF
7989
7990 fi
7991
7992 done
7993
7994
7995
7996
7997
7998 # Set options
7999 # Check whether --enable-static was given.
8000 if test "${enable_static+set}" = set; then :
8001 enableval=$enable_static; p=${PACKAGE-default}
8002 case $enableval in
8003 yes) enable_static=yes ;;
8004 no) enable_static=no ;;
8005 *)
8006 enable_static=no
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009 for pkg in $enableval; do
8010 IFS="$lt_save_ifs"
8011 if test "X$pkg" = "X$p"; then
8012 enable_static=yes
8013 fi
8014 done
8015 IFS="$lt_save_ifs"
8016 ;;
8017 esac
8018 else
8019 enable_static=no
8020 fi
8021
8022
8023
8024
8025
8026
8027
8028 enable_dlopen=yes
8029
8030
8031
8032
8033 enable_win32_dll=no
8034
8035
8036 # Check whether --enable-shared was given.
8037 if test "${enable_shared+set}" = set; then :
8038 enableval=$enable_shared; p=${PACKAGE-default}
8039 case $enableval in
8040 yes) enable_shared=yes ;;
8041 no) enable_shared=no ;;
8042 *)
8043 enable_shared=no
8044 # Look at the argument we got. We use all the common list separators.
8045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046 for pkg in $enableval; do
8047 IFS="$lt_save_ifs"
8048 if test "X$pkg" = "X$p"; then
8049 enable_shared=yes
8050 fi
8051 done
8052 IFS="$lt_save_ifs"
8053 ;;
8054 esac
8055 else
8056 enable_shared=yes
8057 fi
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 # Check whether --with-pic was given.
8070 if test "${with_pic+set}" = set; then :
8071 withval=$with_pic; lt_p=${PACKAGE-default}
8072 case $withval in
8073 yes|no) pic_mode=$withval ;;
8074 *)
8075 pic_mode=default
8076 # Look at the argument we got. We use all the common list separators.
8077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078 for lt_pkg in $withval; do
8079 IFS="$lt_save_ifs"
8080 if test "X$lt_pkg" = "X$lt_p"; then
8081 pic_mode=yes
8082 fi
8083 done
8084 IFS="$lt_save_ifs"
8085 ;;
8086 esac
8087 else
8088 pic_mode=default
8089 fi
8090
8091
8092 test -z "$pic_mode" && pic_mode=default
8093
8094
8095
8096
8097
8098
8099
8100 # Check whether --enable-fast-install was given.
8101 if test "${enable_fast_install+set}" = set; then :
8102 enableval=$enable_fast_install; p=${PACKAGE-default}
8103 case $enableval in
8104 yes) enable_fast_install=yes ;;
8105 no) enable_fast_install=no ;;
8106 *)
8107 enable_fast_install=no
8108 # Look at the argument we got. We use all the common list separators.
8109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8110 for pkg in $enableval; do
8111 IFS="$lt_save_ifs"
8112 if test "X$pkg" = "X$p"; then
8113 enable_fast_install=yes
8114 fi
8115 done
8116 IFS="$lt_save_ifs"
8117 ;;
8118 esac
8119 else
8120 enable_fast_install=yes
8121 fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133 # This can be used to rebuild libtool when needed
8134 LIBTOOL_DEPS="$ltmain"
8135
8136 # Always use our own libtool.
8137 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168 test -z "$LN_S" && LN_S="ln -s"
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 if test -n "${ZSH_VERSION+set}" ; then
8184 setopt NO_GLOB_SUBST
8185 fi
8186
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 $as_echo_n "checking for objdir... " >&6; }
8189 if ${lt_cv_objdir+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 rm -f .libs 2>/dev/null
8193 mkdir .libs 2>/dev/null
8194 if test -d .libs; then
8195 lt_cv_objdir=.libs
8196 else
8197 # MS-DOS does not allow filenames that begin with a dot.
8198 lt_cv_objdir=_libs
8199 fi
8200 rmdir .libs 2>/dev/null
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203 $as_echo "$lt_cv_objdir" >&6; }
8204 objdir=$lt_cv_objdir
8205
8206
8207
8208
8209
8210 cat >>confdefs.h <<_ACEOF
8211 #define LT_OBJDIR "$lt_cv_objdir/"
8212 _ACEOF
8213
8214
8215
8216
8217 case $host_os in
8218 aix3*)
8219 # AIX sometimes has problems with the GCC collect2 program. For some
8220 # reason, if we set the COLLECT_NAMES environment variable, the problems
8221 # vanish in a puff of smoke.
8222 if test "X${COLLECT_NAMES+set}" != Xset; then
8223 COLLECT_NAMES=
8224 export COLLECT_NAMES
8225 fi
8226 ;;
8227 esac
8228
8229 # Global variables:
8230 ofile=libtool
8231 can_build_shared=yes
8232
8233 # All known linkers require a `.a' archive for static linking (except MSVC,
8234 # which needs '.lib').
8235 libext=a
8236
8237 with_gnu_ld="$lt_cv_prog_gnu_ld"
8238
8239 old_CC="$CC"
8240 old_CFLAGS="$CFLAGS"
8241
8242 # Set sane defaults for various variables
8243 test -z "$CC" && CC=cc
8244 test -z "$LTCC" && LTCC=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246 test -z "$LD" && LD=ld
8247 test -z "$ac_objext" && ac_objext=o
8248
8249 for cc_temp in $compiler""; do
8250 case $cc_temp in
8251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253 \-*) ;;
8254 *) break;;
8255 esac
8256 done
8257 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8258
8259
8260 # Only perform the check for file, if the check method requires it
8261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262 case $deplibs_check_method in
8263 file_magic*)
8264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 case $MAGIC_CMD in
8271 [\\/*] | ?:[\\/]*)
8272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273 ;;
8274 *)
8275 lt_save_MAGIC_CMD="$MAGIC_CMD"
8276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278 for ac_dir in $ac_dummy; do
8279 IFS="$lt_save_ifs"
8280 test -z "$ac_dir" && ac_dir=.
8281 if test -f $ac_dir/${ac_tool_prefix}file; then
8282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283 if test -n "$file_magic_test_file"; then
8284 case $deplibs_check_method in
8285 "file_magic "*)
8286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289 $EGREP "$file_magic_regex" > /dev/null; then
8290 :
8291 else
8292 cat <<_LT_EOF 1>&2
8293
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such. This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem. Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8302
8303 _LT_EOF
8304 fi ;;
8305 esac
8306 fi
8307 break
8308 fi
8309 done
8310 IFS="$lt_save_ifs"
8311 MAGIC_CMD="$lt_save_MAGIC_CMD"
8312 ;;
8313 esac
8314 fi
8315
8316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8323 fi
8324
8325
8326
8327
8328
8329 if test -z "$lt_cv_path_MAGIC_CMD"; then
8330 if test -n "$ac_tool_prefix"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332 $as_echo_n "checking for file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 case $MAGIC_CMD in
8337 [\\/*] | ?:[\\/]*)
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8339 ;;
8340 *)
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8345 IFS="$lt_save_ifs"
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8351 "file_magic "*)
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8356 :
8357 else
8358 cat <<_LT_EOF 1>&2
8359
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8368
8369 _LT_EOF
8370 fi ;;
8371 esac
8372 fi
8373 break
8374 fi
8375 done
8376 IFS="$lt_save_ifs"
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8378 ;;
8379 esac
8380 fi
8381
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391
8392 else
8393 MAGIC_CMD=:
8394 fi
8395 fi
8396
8397 fi
8398 ;;
8399 esac
8400
8401 # Use C for the default configuration in the libtool script
8402
8403 lt_save_CC="$CC"
8404 ac_ext=c
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411 # Source file extension for C test sources.
8412 ac_ext=c
8413
8414 # Object file extension for compiled C test sources.
8415 objext=o
8416 objext=$objext
8417
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;"
8420
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}'
8423
8424
8425
8426
8427
8428
8429
8430 # If no C compiler was specified, use CC.
8431 LTCC=${LTCC-"$CC"}
8432
8433 # If no C compiler flags were specified, use CFLAGS.
8434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8435
8436 # Allow CC to be a program name with arguments.
8437 compiler=$CC
8438
8439 # Save the default compiler, since it gets overwritten when the other
8440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441 compiler_DEFAULT=$CC
8442
8443 # save warnings/boilerplate of simple test code
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_compiler_boilerplate=`cat conftest.err`
8448 $RM conftest*
8449
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_linker_boilerplate=`cat conftest.err`
8454 $RM -r conftest*
8455
8456
8457 ## CAVEAT EMPTOR:
8458 ## There is no encapsulation within the following macros, do not change
8459 ## the running order or otherwise move them around unless you know exactly
8460 ## what you are doing...
8461 if test -n "$compiler"; then
8462
8463 lt_prog_compiler_no_builtin_flag=
8464
8465 if test "$GCC" = yes; then
8466 case $cc_basename in
8467 nvcc*)
8468 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8469 *)
8470 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8471 esac
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8474 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8475 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_prog_compiler_rtti_exceptions=no
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="-fno-rtti -fno-exceptions"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8493 ac_status=$?
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_rtti_exceptions=yes
8503 fi
8504 fi
8505 $RM conftest*
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8510
8511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8512 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8513 else
8514 :
8515 fi
8516
8517 fi
8518
8519
8520
8521
8522
8523
8524 lt_prog_compiler_wl=
8525 lt_prog_compiler_pic=
8526 lt_prog_compiler_static=
8527
8528
8529 if test "$GCC" = yes; then
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_static='-static'
8532
8533 case $host_os in
8534 aix*)
8535 # All AIX code is PIC.
8536 if test "$host_cpu" = ia64; then
8537 # AIX 5 now supports IA64 processor
8538 lt_prog_compiler_static='-Bstatic'
8539 fi
8540 ;;
8541
8542 amigaos*)
8543 case $host_cpu in
8544 powerpc)
8545 # see comment about AmigaOS4 .so support
8546 lt_prog_compiler_pic='-fPIC'
8547 ;;
8548 m68k)
8549 # FIXME: we need at least 68020 code to build shared libraries, but
8550 # adding the `-m68020' flag to GCC prevents building anything better,
8551 # like `-m68040'.
8552 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8553 ;;
8554 esac
8555 ;;
8556
8557 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8558 # PIC is the default for these OSes.
8559 ;;
8560
8561 mingw* | cygwin* | pw32* | os2* | cegcc*)
8562 # This hack is so that the source file can tell whether it is being
8563 # built for inclusion in a dll (and should export symbols for example).
8564 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8565 # (--disable-auto-import) libraries
8566 lt_prog_compiler_pic='-DDLL_EXPORT'
8567 ;;
8568
8569 darwin* | rhapsody*)
8570 # PIC is the default on this platform
8571 # Common symbols not allowed in MH_DYLIB files
8572 lt_prog_compiler_pic='-fno-common'
8573 ;;
8574
8575 haiku*)
8576 # PIC is the default for Haiku.
8577 # The "-static" flag exists, but is broken.
8578 lt_prog_compiler_static=
8579 ;;
8580
8581 hpux*)
8582 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8583 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8584 # sets the default TLS model and affects inlining.
8585 case $host_cpu in
8586 hppa*64*)
8587 # +Z the default
8588 ;;
8589 *)
8590 lt_prog_compiler_pic='-fPIC'
8591 ;;
8592 esac
8593 ;;
8594
8595 interix[3-9]*)
8596 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8597 # Instead, we relocate shared libraries at runtime.
8598 ;;
8599
8600 msdosdjgpp*)
8601 # Just because we use GCC doesn't mean we suddenly get shared libraries
8602 # on systems that don't support them.
8603 lt_prog_compiler_can_build_shared=no
8604 enable_shared=no
8605 ;;
8606
8607 *nto* | *qnx*)
8608 # QNX uses GNU C++, but need to define -shared option too, otherwise
8609 # it will coredump.
8610 lt_prog_compiler_pic='-fPIC -shared'
8611 ;;
8612
8613 sysv4*MP*)
8614 if test -d /usr/nec; then
8615 lt_prog_compiler_pic=-Kconform_pic
8616 fi
8617 ;;
8618
8619 *)
8620 lt_prog_compiler_pic='-fPIC'
8621 ;;
8622 esac
8623
8624 case $cc_basename in
8625 nvcc*) # Cuda Compiler Driver 2.2
8626 lt_prog_compiler_wl='-Xlinker '
8627 if test -n "$lt_prog_compiler_pic"; then
8628 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8629 fi
8630 ;;
8631 esac
8632 else
8633 # PORTME Check for flag to pass linker flags through the system compiler.
8634 case $host_os in
8635 aix*)
8636 lt_prog_compiler_wl='-Wl,'
8637 if test "$host_cpu" = ia64; then
8638 # AIX 5 now supports IA64 processor
8639 lt_prog_compiler_static='-Bstatic'
8640 else
8641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8642 fi
8643 ;;
8644
8645 mingw* | cygwin* | pw32* | os2* | cegcc*)
8646 # This hack is so that the source file can tell whether it is being
8647 # built for inclusion in a dll (and should export symbols for example).
8648 lt_prog_compiler_pic='-DDLL_EXPORT'
8649 ;;
8650
8651 hpux9* | hpux10* | hpux11*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8654 # not for PA HP-UX.
8655 case $host_cpu in
8656 hppa*64*|ia64*)
8657 # +Z the default
8658 ;;
8659 *)
8660 lt_prog_compiler_pic='+Z'
8661 ;;
8662 esac
8663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8664 lt_prog_compiler_static='${wl}-a ${wl}archive'
8665 ;;
8666
8667 irix5* | irix6* | nonstopux*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # PIC (with -KPIC) is the default.
8670 lt_prog_compiler_static='-non_shared'
8671 ;;
8672
8673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8674 case $cc_basename in
8675 # old Intel for x86_64 which still supported -KPIC.
8676 ecc*)
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-static'
8680 ;;
8681 # icc used to be incompatible with GCC.
8682 # ICC 10 doesn't accept -KPIC any more.
8683 icc* | ifort*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-fPIC'
8686 lt_prog_compiler_static='-static'
8687 ;;
8688 # Lahey Fortran 8.1.
8689 lf95*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='--shared'
8692 lt_prog_compiler_static='--static'
8693 ;;
8694 nagfor*)
8695 # NAG Fortran compiler
8696 lt_prog_compiler_wl='-Wl,-Wl,,'
8697 lt_prog_compiler_pic='-PIC'
8698 lt_prog_compiler_static='-Bstatic'
8699 ;;
8700 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8701 # Portland Group compilers (*not* the Pentium gcc compiler,
8702 # which looks to be a dead project)
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='-fpic'
8705 lt_prog_compiler_static='-Bstatic'
8706 ;;
8707 ccc*)
8708 lt_prog_compiler_wl='-Wl,'
8709 # All Alpha code is PIC.
8710 lt_prog_compiler_static='-non_shared'
8711 ;;
8712 xl* | bgxl* | bgf* | mpixl*)
8713 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_pic='-qpic'
8716 lt_prog_compiler_static='-qstaticlink'
8717 ;;
8718 *)
8719 case `$CC -V 2>&1 | sed 5q` in
8720 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8721 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8724 lt_prog_compiler_wl=''
8725 ;;
8726 *Sun\ F* | *Sun*Fortran*)
8727 lt_prog_compiler_pic='-KPIC'
8728 lt_prog_compiler_static='-Bstatic'
8729 lt_prog_compiler_wl='-Qoption ld '
8730 ;;
8731 *Sun\ C*)
8732 # Sun C 5.9
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8735 lt_prog_compiler_wl='-Wl,'
8736 ;;
8737 *Intel*\ [CF]*Compiler*)
8738 lt_prog_compiler_wl='-Wl,'
8739 lt_prog_compiler_pic='-fPIC'
8740 lt_prog_compiler_static='-static'
8741 ;;
8742 *Portland\ Group*)
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='-fpic'
8745 lt_prog_compiler_static='-Bstatic'
8746 ;;
8747 esac
8748 ;;
8749 esac
8750 ;;
8751
8752 newsos6)
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-Bstatic'
8755 ;;
8756
8757 *nto* | *qnx*)
8758 # QNX uses GNU C++, but need to define -shared option too, otherwise
8759 # it will coredump.
8760 lt_prog_compiler_pic='-fPIC -shared'
8761 ;;
8762
8763 osf3* | osf4* | osf5*)
8764 lt_prog_compiler_wl='-Wl,'
8765 # All OSF/1 code is PIC.
8766 lt_prog_compiler_static='-non_shared'
8767 ;;
8768
8769 rdos*)
8770 lt_prog_compiler_static='-non_shared'
8771 ;;
8772
8773 solaris*)
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8776 case $cc_basename in
8777 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8778 lt_prog_compiler_wl='-Qoption ld ';;
8779 *)
8780 lt_prog_compiler_wl='-Wl,';;
8781 esac
8782 ;;
8783
8784 sunos4*)
8785 lt_prog_compiler_wl='-Qoption ld '
8786 lt_prog_compiler_pic='-PIC'
8787 lt_prog_compiler_static='-Bstatic'
8788 ;;
8789
8790 sysv4 | sysv4.2uw2* | sysv4.3*)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_pic='-KPIC'
8793 lt_prog_compiler_static='-Bstatic'
8794 ;;
8795
8796 sysv4*MP*)
8797 if test -d /usr/nec ;then
8798 lt_prog_compiler_pic='-Kconform_pic'
8799 lt_prog_compiler_static='-Bstatic'
8800 fi
8801 ;;
8802
8803 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_pic='-KPIC'
8806 lt_prog_compiler_static='-Bstatic'
8807 ;;
8808
8809 unicos*)
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_can_build_shared=no
8812 ;;
8813
8814 uts4*)
8815 lt_prog_compiler_pic='-pic'
8816 lt_prog_compiler_static='-Bstatic'
8817 ;;
8818
8819 *)
8820 lt_prog_compiler_can_build_shared=no
8821 ;;
8822 esac
8823 fi
8824
8825 case $host_os in
8826 # For platforms which do not support PIC, -DPIC is meaningless:
8827 *djgpp*)
8828 lt_prog_compiler_pic=
8829 ;;
8830 *)
8831 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8832 ;;
8833 esac
8834
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8836 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8837 if ${lt_cv_prog_compiler_pic+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8843 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8844 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8845
8846 #
8847 # Check to make sure the PIC flag actually works.
8848 #
8849 if test -n "$lt_prog_compiler_pic"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8851 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8852 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 lt_cv_prog_compiler_pic_works=no
8856 ac_outfile=conftest.$ac_objext
8857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8858 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8859 # Insert the option either (1) after the last *FLAGS variable, or
8860 # (2) before a word containing "conftest.", or (3) at the end.
8861 # Note that $ac_compile itself does not contain backslashes and begins
8862 # with a dollar sign (not a hyphen), so the echo should work correctly.
8863 # The option is referenced via a variable to avoid confusing sed.
8864 lt_compile=`echo "$ac_compile" | $SED \
8865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867 -e 's:$: $lt_compiler_flag:'`
8868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8869 (eval "$lt_compile" 2>conftest.err)
8870 ac_status=$?
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 if (exit $ac_status) && test -s "$ac_outfile"; then
8874 # The compiler can only warn and ignore the option if not recognized
8875 # So say no if there are warnings other than the usual output.
8876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8879 lt_cv_prog_compiler_pic_works=yes
8880 fi
8881 fi
8882 $RM conftest*
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8886 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8887
8888 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8889 case $lt_prog_compiler_pic in
8890 "" | " "*) ;;
8891 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8892 esac
8893 else
8894 lt_prog_compiler_pic=
8895 lt_prog_compiler_can_build_shared=no
8896 fi
8897
8898 fi
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910 #
8911 # Check to make sure the static flag actually works.
8912 #
8913 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8915 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8916 if ${lt_cv_prog_compiler_static_works+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 lt_cv_prog_compiler_static_works=no
8920 save_LDFLAGS="$LDFLAGS"
8921 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8922 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8924 # The linker can only warn and ignore the option if not recognized
8925 # So say no if there are warnings
8926 if test -s conftest.err; then
8927 # Append any errors to the config.log.
8928 cat conftest.err 1>&5
8929 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8931 if diff conftest.exp conftest.er2 >/dev/null; then
8932 lt_cv_prog_compiler_static_works=yes
8933 fi
8934 else
8935 lt_cv_prog_compiler_static_works=yes
8936 fi
8937 fi
8938 $RM -r conftest*
8939 LDFLAGS="$save_LDFLAGS"
8940
8941 fi
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8943 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8944
8945 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8946 :
8947 else
8948 lt_prog_compiler_static=
8949 fi
8950
8951
8952
8953
8954
8955
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8958 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8959 if ${lt_cv_prog_compiler_c_o+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 lt_cv_prog_compiler_c_o=no
8963 $RM -r conftest 2>/dev/null
8964 mkdir conftest
8965 cd conftest
8966 mkdir out
8967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8968
8969 lt_compiler_flag="-o out/conftest2.$ac_objext"
8970 # Insert the option either (1) after the last *FLAGS variable, or
8971 # (2) before a word containing "conftest.", or (3) at the end.
8972 # Note that $ac_compile itself does not contain backslashes and begins
8973 # with a dollar sign (not a hyphen), so the echo should work correctly.
8974 lt_compile=`echo "$ac_compile" | $SED \
8975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8977 -e 's:$: $lt_compiler_flag:'`
8978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8979 (eval "$lt_compile" 2>out/conftest.err)
8980 ac_status=$?
8981 cat out/conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8984 then
8985 # The compiler can only warn and ignore the option if not recognized
8986 # So say no if there are warnings
8987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8990 lt_cv_prog_compiler_c_o=yes
8991 fi
8992 fi
8993 chmod u+w . 2>&5
8994 $RM conftest*
8995 # SGI C++ compiler will create directory out/ii_files/ for
8996 # template instantiation
8997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8998 $RM out/* && rmdir out
8999 cd ..
9000 $RM -r conftest
9001 $RM conftest*
9002
9003 fi
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9006
9007
9008
9009
9010
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9013 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9014 if ${lt_cv_prog_compiler_c_o+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 lt_cv_prog_compiler_c_o=no
9018 $RM -r conftest 2>/dev/null
9019 mkdir conftest
9020 cd conftest
9021 mkdir out
9022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023
9024 lt_compiler_flag="-o out/conftest2.$ac_objext"
9025 # Insert the option either (1) after the last *FLAGS variable, or
9026 # (2) before a word containing "conftest.", or (3) at the end.
9027 # Note that $ac_compile itself does not contain backslashes and begins
9028 # with a dollar sign (not a hyphen), so the echo should work correctly.
9029 lt_compile=`echo "$ac_compile" | $SED \
9030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9032 -e 's:$: $lt_compiler_flag:'`
9033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9034 (eval "$lt_compile" 2>out/conftest.err)
9035 ac_status=$?
9036 cat out/conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9039 then
9040 # The compiler can only warn and ignore the option if not recognized
9041 # So say no if there are warnings
9042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9045 lt_cv_prog_compiler_c_o=yes
9046 fi
9047 fi
9048 chmod u+w . 2>&5
9049 $RM conftest*
9050 # SGI C++ compiler will create directory out/ii_files/ for
9051 # template instantiation
9052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9053 $RM out/* && rmdir out
9054 cd ..
9055 $RM -r conftest
9056 $RM conftest*
9057
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9060 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9061
9062
9063
9064
9065 hard_links="nottested"
9066 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9067 # do not overwrite the value of need_locks provided by the user
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9069 $as_echo_n "checking if we can lock with hard links... " >&6; }
9070 hard_links=yes
9071 $RM conftest*
9072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9073 touch conftest.a
9074 ln conftest.a conftest.b 2>&5 || hard_links=no
9075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9077 $as_echo "$hard_links" >&6; }
9078 if test "$hard_links" = no; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9080 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9081 need_locks=warn
9082 fi
9083 else
9084 need_locks=no
9085 fi
9086
9087
9088
9089
9090
9091
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9094
9095 runpath_var=
9096 allow_undefined_flag=
9097 always_export_symbols=no
9098 archive_cmds=
9099 archive_expsym_cmds=
9100 compiler_needs_object=no
9101 enable_shared_with_static_runtimes=no
9102 export_dynamic_flag_spec=
9103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9104 hardcode_automatic=no
9105 hardcode_direct=no
9106 hardcode_direct_absolute=no
9107 hardcode_libdir_flag_spec=
9108 hardcode_libdir_separator=
9109 hardcode_minus_L=no
9110 hardcode_shlibpath_var=unsupported
9111 inherit_rpath=no
9112 link_all_deplibs=unknown
9113 module_cmds=
9114 module_expsym_cmds=
9115 old_archive_from_new_cmds=
9116 old_archive_from_expsyms_cmds=
9117 thread_safe_flag_spec=
9118 whole_archive_flag_spec=
9119 # include_expsyms should be a list of space-separated symbols to be *always*
9120 # included in the symbol list
9121 include_expsyms=
9122 # exclude_expsyms can be an extended regexp of symbols to exclude
9123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9125 # as well as any symbol that contains `d'.
9126 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9128 # platforms (ab)use it in PIC code, but their linkers get confused if
9129 # the symbol is explicitly referenced. Since portable code cannot
9130 # rely on this symbol name, it's probably fine to never include it in
9131 # preloaded symbol tables.
9132 # Exclude shared library initialization/finalization symbols.
9133 extract_expsyms_cmds=
9134
9135 case $host_os in
9136 cygwin* | mingw* | pw32* | cegcc*)
9137 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9138 # When not using gcc, we currently assume that we are using
9139 # Microsoft Visual C++.
9140 if test "$GCC" != yes; then
9141 with_gnu_ld=no
9142 fi
9143 ;;
9144 interix*)
9145 # we just hope/assume this is gcc and not c89 (= MSVC++)
9146 with_gnu_ld=yes
9147 ;;
9148 openbsd*)
9149 with_gnu_ld=no
9150 ;;
9151 esac
9152
9153 ld_shlibs=yes
9154
9155 # On some targets, GNU ld is compatible enough with the native linker
9156 # that we're better off using the native interface for both.
9157 lt_use_gnu_ld_interface=no
9158 if test "$with_gnu_ld" = yes; then
9159 case $host_os in
9160 aix*)
9161 # The AIX port of GNU ld has always aspired to compatibility
9162 # with the native linker. However, as the warning in the GNU ld
9163 # block says, versions before 2.19.5* couldn't really create working
9164 # shared libraries, regardless of the interface used.
9165 case `$LD -v 2>&1` in
9166 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9167 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9168 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9169 *)
9170 lt_use_gnu_ld_interface=yes
9171 ;;
9172 esac
9173 ;;
9174 *)
9175 lt_use_gnu_ld_interface=yes
9176 ;;
9177 esac
9178 fi
9179
9180 if test "$lt_use_gnu_ld_interface" = yes; then
9181 # If archive_cmds runs LD, not CC, wlarc should be empty
9182 wlarc='${wl}'
9183
9184 # Set some defaults for GNU ld with shared library support. These
9185 # are reset later if shared libraries are not supported. Putting them
9186 # here allows them to be overridden if necessary.
9187 runpath_var=LD_RUN_PATH
9188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 export_dynamic_flag_spec='${wl}--export-dynamic'
9190 # ancient GNU ld didn't support --whole-archive et. al.
9191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9193 else
9194 whole_archive_flag_spec=
9195 fi
9196 supports_anon_versioning=no
9197 case `$LD -v 2>&1` in
9198 *GNU\ gold*) supports_anon_versioning=yes ;;
9199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9202 *\ 2.11.*) ;; # other 2.11 versions
9203 *) supports_anon_versioning=yes ;;
9204 esac
9205
9206 # See if GNU ld supports shared libraries.
9207 case $host_os in
9208 aix[3-9]*)
9209 # On AIX/PPC, the GNU linker is very broken
9210 if test "$host_cpu" != ia64; then
9211 ld_shlibs=no
9212 cat <<_LT_EOF 1>&2
9213
9214 *** Warning: the GNU linker, at least up to release 2.19, is reported
9215 *** to be unable to reliably create shared libraries on AIX.
9216 *** Therefore, libtool is disabling shared libraries support. If you
9217 *** really care for shared libraries, you may want to install binutils
9218 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9219 *** You will then need to restart the configuration process.
9220
9221 _LT_EOF
9222 fi
9223 ;;
9224
9225 amigaos*)
9226 case $host_cpu in
9227 powerpc)
9228 # see comment about AmigaOS4 .so support
9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 archive_expsym_cmds=''
9231 ;;
9232 m68k)
9233 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)'
9234 hardcode_libdir_flag_spec='-L$libdir'
9235 hardcode_minus_L=yes
9236 ;;
9237 esac
9238 ;;
9239
9240 beos*)
9241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9242 allow_undefined_flag=unsupported
9243 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9244 # support --undefined. This deserves some investigation. FIXME
9245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246 else
9247 ld_shlibs=no
9248 fi
9249 ;;
9250
9251 cygwin* | mingw* | pw32* | cegcc*)
9252 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9253 # as there is no search path for DLLs.
9254 hardcode_libdir_flag_spec='-L$libdir'
9255 export_dynamic_flag_spec='${wl}--export-all-symbols'
9256 allow_undefined_flag=unsupported
9257 always_export_symbols=no
9258 enable_shared_with_static_runtimes=yes
9259 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'
9260 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9261
9262 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9264 # If the export-symbols file already is a .def file (1st line
9265 # is EXPORTS), use it as is; otherwise, prepend...
9266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9267 cp $export_symbols $output_objdir/$soname.def;
9268 else
9269 echo EXPORTS > $output_objdir/$soname.def;
9270 cat $export_symbols >> $output_objdir/$soname.def;
9271 fi~
9272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9273 else
9274 ld_shlibs=no
9275 fi
9276 ;;
9277
9278 haiku*)
9279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 link_all_deplibs=yes
9281 ;;
9282
9283 interix[3-9]*)
9284 hardcode_direct=no
9285 hardcode_shlibpath_var=no
9286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9287 export_dynamic_flag_spec='${wl}-E'
9288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9289 # Instead, shared libraries are loaded at an image base (0x10000000 by
9290 # default) and relocated if they conflict, which is a slow very memory
9291 # consuming and fragmenting process. To avoid this, we pick a random,
9292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9295 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'
9296 ;;
9297
9298 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9299 tmp_diet=no
9300 if test "$host_os" = linux-dietlibc; then
9301 case $cc_basename in
9302 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9303 esac
9304 fi
9305 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9306 && test "$tmp_diet" = no
9307 then
9308 tmp_addflag=' $pic_flag'
9309 tmp_sharedflag='-shared'
9310 case $cc_basename,$host_cpu in
9311 pgcc*) # Portland Group C compiler
9312 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'
9313 tmp_addflag=' $pic_flag'
9314 ;;
9315 pgf77* | pgf90* | pgf95* | pgfortran*)
9316 # Portland Group f77 and f90 compilers
9317 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'
9318 tmp_addflag=' $pic_flag -Mnomain' ;;
9319 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9320 tmp_addflag=' -i_dynamic' ;;
9321 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9322 tmp_addflag=' -i_dynamic -nofor_main' ;;
9323 ifc* | ifort*) # Intel Fortran compiler
9324 tmp_addflag=' -nofor_main' ;;
9325 lf95*) # Lahey Fortran 8.1
9326 whole_archive_flag_spec=
9327 tmp_sharedflag='--shared' ;;
9328 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9329 tmp_sharedflag='-qmkshrobj'
9330 tmp_addflag= ;;
9331 nvcc*) # Cuda Compiler Driver 2.2
9332 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'
9333 compiler_needs_object=yes
9334 ;;
9335 esac
9336 case `$CC -V 2>&1 | sed 5q` in
9337 *Sun\ C*) # Sun C 5.9
9338 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'
9339 compiler_needs_object=yes
9340 tmp_sharedflag='-G' ;;
9341 *Sun\ F*) # Sun Fortran 8.3
9342 tmp_sharedflag='-G' ;;
9343 esac
9344 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9345
9346 if test "x$supports_anon_versioning" = xyes; then
9347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9349 echo "local: *; };" >> $output_objdir/$libname.ver~
9350 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9351 fi
9352
9353 case $cc_basename in
9354 xlf* | bgf* | bgxlf* | mpixlf*)
9355 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9356 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9359 if test "x$supports_anon_versioning" = xyes; then
9360 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9361 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9362 echo "local: *; };" >> $output_objdir/$libname.ver~
9363 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9364 fi
9365 ;;
9366 esac
9367 else
9368 ld_shlibs=no
9369 fi
9370 ;;
9371
9372 netbsd*)
9373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9374 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9375 wlarc=
9376 else
9377 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9379 fi
9380 ;;
9381
9382 solaris*)
9383 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9384 ld_shlibs=no
9385 cat <<_LT_EOF 1>&2
9386
9387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9388 *** create shared libraries on Solaris systems. Therefore, libtool
9389 *** is disabling shared libraries support. We urge you to upgrade GNU
9390 *** binutils to release 2.9.1 or newer. Another option is to modify
9391 *** your PATH or compiler configuration so that the native linker is
9392 *** used, and then restart.
9393
9394 _LT_EOF
9395 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398 else
9399 ld_shlibs=no
9400 fi
9401 ;;
9402
9403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9404 case `$LD -v 2>&1` in
9405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9406 ld_shlibs=no
9407 cat <<_LT_EOF 1>&2
9408
9409 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9410 *** reliably create shared libraries on SCO systems. Therefore, libtool
9411 *** is disabling shared libraries support. We urge you to upgrade GNU
9412 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9413 *** your PATH or compiler configuration so that the native linker is
9414 *** used, and then restart.
9415
9416 _LT_EOF
9417 ;;
9418 *)
9419 # For security reasons, it is highly recommended that you always
9420 # use absolute paths for naming shared libraries, and exclude the
9421 # DT_RUNPATH tag from executables and libraries. But doing so
9422 # requires that you compile everything twice, which is a pain.
9423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9427 else
9428 ld_shlibs=no
9429 fi
9430 ;;
9431 esac
9432 ;;
9433
9434 sunos4*)
9435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9436 wlarc=
9437 hardcode_direct=yes
9438 hardcode_shlibpath_var=no
9439 ;;
9440
9441 *)
9442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9445 else
9446 ld_shlibs=no
9447 fi
9448 ;;
9449 esac
9450
9451 if test "$ld_shlibs" = no; then
9452 runpath_var=
9453 hardcode_libdir_flag_spec=
9454 export_dynamic_flag_spec=
9455 whole_archive_flag_spec=
9456 fi
9457 else
9458 # PORTME fill in a description of your system's linker (not GNU ld)
9459 case $host_os in
9460 aix3*)
9461 allow_undefined_flag=unsupported
9462 always_export_symbols=yes
9463 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'
9464 # Note: this linker hardcodes the directories in LIBPATH if there
9465 # are no directories specified by -L.
9466 hardcode_minus_L=yes
9467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9468 # Neither direct hardcoding nor static linking is supported with a
9469 # broken collect2.
9470 hardcode_direct=unsupported
9471 fi
9472 ;;
9473
9474 aix[4-9]*)
9475 if test "$host_cpu" = ia64; then
9476 # On IA64, the linker does run time linking by default, so we don't
9477 # have to do anything special.
9478 aix_use_runtimelinking=no
9479 exp_sym_flag='-Bexport'
9480 no_entry_flag=""
9481 else
9482 # If we're using GNU nm, then we don't want the "-C" option.
9483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9484 # Also, AIX nm treats weak defined symbols like other global
9485 # defined symbols, whereas GNU nm marks them as "W".
9486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9487 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9488 else
9489 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9490 fi
9491 aix_use_runtimelinking=no
9492
9493 # Test if we are trying to use run time linking or normal
9494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9495 # need to do runtime linking.
9496 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9497 for ld_flag in $LDFLAGS; do
9498 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9499 aix_use_runtimelinking=yes
9500 break
9501 fi
9502 done
9503 ;;
9504 esac
9505
9506 exp_sym_flag='-bexport'
9507 no_entry_flag='-bnoentry'
9508 fi
9509
9510 # When large executables or shared objects are built, AIX ld can
9511 # have problems creating the table of contents. If linking a library
9512 # or program results in "error TOC overflow" add -mminimal-toc to
9513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9515
9516 archive_cmds=''
9517 hardcode_direct=yes
9518 hardcode_direct_absolute=yes
9519 hardcode_libdir_separator=':'
9520 link_all_deplibs=yes
9521 file_list_spec='${wl}-f,'
9522
9523 if test "$GCC" = yes; then
9524 case $host_os in aix4.[012]|aix4.[012].*)
9525 # We only want to do this on AIX 4.2 and lower, the check
9526 # below for broken collect2 doesn't work under 4.3+
9527 collect2name=`${CC} -print-prog-name=collect2`
9528 if test -f "$collect2name" &&
9529 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9530 then
9531 # We have reworked collect2
9532 :
9533 else
9534 # We have old collect2
9535 hardcode_direct=unsupported
9536 # It fails to find uninstalled libraries when the uninstalled
9537 # path is not listed in the libpath. Setting hardcode_minus_L
9538 # to unsupported forces relinking
9539 hardcode_minus_L=yes
9540 hardcode_libdir_flag_spec='-L$libdir'
9541 hardcode_libdir_separator=
9542 fi
9543 ;;
9544 esac
9545 shared_flag='-shared'
9546 if test "$aix_use_runtimelinking" = yes; then
9547 shared_flag="$shared_flag "'${wl}-G'
9548 fi
9549 else
9550 # not using gcc
9551 if test "$host_cpu" = ia64; then
9552 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9553 # chokes on -Wl,-G. The following line is correct:
9554 shared_flag='-G'
9555 else
9556 if test "$aix_use_runtimelinking" = yes; then
9557 shared_flag='${wl}-G'
9558 else
9559 shared_flag='${wl}-bM:SRE'
9560 fi
9561 fi
9562 fi
9563
9564 export_dynamic_flag_spec='${wl}-bexpall'
9565 # It seems that -bexpall does not export symbols beginning with
9566 # underscore (_), so it is better to generate a list of symbols to export.
9567 always_export_symbols=yes
9568 if test "$aix_use_runtimelinking" = yes; then
9569 # Warning - without using the other runtime loading flags (-brtl),
9570 # -berok will link without error, but may produce a broken library.
9571 allow_undefined_flag='-berok'
9572 # Determine the default libpath from the value encoded in an
9573 # empty executable.
9574 if test "${lt_cv_aix_libpath+set}" = set; then
9575 aix_libpath=$lt_cv_aix_libpath
9576 else
9577 if ${lt_cv_aix_libpath_+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582
9583 int
9584 main ()
9585 {
9586
9587 ;
9588 return 0;
9589 }
9590 _ACEOF
9591 if ac_fn_c_try_link "$LINENO"; then :
9592
9593 lt_aix_libpath_sed='
9594 /Import File Strings/,/^$/ {
9595 /^0/ {
9596 s/^0 *\([^ ]*\) *$/\1/
9597 p
9598 }
9599 }'
9600 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9601 # Check for a 64-bit object if we didn't find anything.
9602 if test -z "$lt_cv_aix_libpath_"; then
9603 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9604 fi
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 if test -z "$lt_cv_aix_libpath_"; then
9609 lt_cv_aix_libpath_="/usr/lib:/lib"
9610 fi
9611
9612 fi
9613
9614 aix_libpath=$lt_cv_aix_libpath_
9615 fi
9616
9617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9618 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9619 else
9620 if test "$host_cpu" = ia64; then
9621 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9622 allow_undefined_flag="-z nodefs"
9623 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"
9624 else
9625 # Determine the default libpath from the value encoded in an
9626 # empty executable.
9627 if test "${lt_cv_aix_libpath+set}" = set; then
9628 aix_libpath=$lt_cv_aix_libpath
9629 else
9630 if ${lt_cv_aix_libpath_+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635
9636 int
9637 main ()
9638 {
9639
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645
9646 lt_aix_libpath_sed='
9647 /Import File Strings/,/^$/ {
9648 /^0/ {
9649 s/^0 *\([^ ]*\) *$/\1/
9650 p
9651 }
9652 }'
9653 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654 # Check for a 64-bit object if we didn't find anything.
9655 if test -z "$lt_cv_aix_libpath_"; then
9656 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9657 fi
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 if test -z "$lt_cv_aix_libpath_"; then
9662 lt_cv_aix_libpath_="/usr/lib:/lib"
9663 fi
9664
9665 fi
9666
9667 aix_libpath=$lt_cv_aix_libpath_
9668 fi
9669
9670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9671 # Warning - without using the other run time loading flags,
9672 # -berok will link without error, but may produce a broken library.
9673 no_undefined_flag=' ${wl}-bernotok'
9674 allow_undefined_flag=' ${wl}-berok'
9675 if test "$with_gnu_ld" = yes; then
9676 # We only use this code for GNU lds that support --whole-archive.
9677 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9678 else
9679 # Exported symbols can be pulled into shared objects from archives
9680 whole_archive_flag_spec='$convenience'
9681 fi
9682 archive_cmds_need_lc=yes
9683 # This is similar to how AIX traditionally builds its shared libraries.
9684 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9685 fi
9686 fi
9687 ;;
9688
9689 amigaos*)
9690 case $host_cpu in
9691 powerpc)
9692 # see comment about AmigaOS4 .so support
9693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9694 archive_expsym_cmds=''
9695 ;;
9696 m68k)
9697 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)'
9698 hardcode_libdir_flag_spec='-L$libdir'
9699 hardcode_minus_L=yes
9700 ;;
9701 esac
9702 ;;
9703
9704 bsdi[45]*)
9705 export_dynamic_flag_spec=-rdynamic
9706 ;;
9707
9708 cygwin* | mingw* | pw32* | cegcc*)
9709 # When not using gcc, we currently assume that we are using
9710 # Microsoft Visual C++.
9711 # hardcode_libdir_flag_spec is actually meaningless, as there is
9712 # no search path for DLLs.
9713 case $cc_basename in
9714 cl*)
9715 # Native MSVC
9716 hardcode_libdir_flag_spec=' '
9717 allow_undefined_flag=unsupported
9718 always_export_symbols=yes
9719 file_list_spec='@'
9720 # Tell ltmain to make .lib files, not .a files.
9721 libext=lib
9722 # Tell ltmain to make .dll files, not .so files.
9723 shrext_cmds=".dll"
9724 # FIXME: Setting linknames here is a bad hack.
9725 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9727 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9728 else
9729 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9730 fi~
9731 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9732 linknames='
9733 # The linker will not automatically build a static lib if we build a DLL.
9734 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9735 enable_shared_with_static_runtimes=yes
9736 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9738 # Don't use ranlib
9739 old_postinstall_cmds='chmod 644 $oldlib'
9740 postlink_cmds='lt_outputfile="@OUTPUT@"~
9741 lt_tool_outputfile="@TOOL_OUTPUT@"~
9742 case $lt_outputfile in
9743 *.exe|*.EXE) ;;
9744 *)
9745 lt_outputfile="$lt_outputfile.exe"
9746 lt_tool_outputfile="$lt_tool_outputfile.exe"
9747 ;;
9748 esac~
9749 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9750 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9751 $RM "$lt_outputfile.manifest";
9752 fi'
9753 ;;
9754 *)
9755 # Assume MSVC wrapper
9756 hardcode_libdir_flag_spec=' '
9757 allow_undefined_flag=unsupported
9758 # Tell ltmain to make .lib files, not .a files.
9759 libext=lib
9760 # Tell ltmain to make .dll files, not .so files.
9761 shrext_cmds=".dll"
9762 # FIXME: Setting linknames here is a bad hack.
9763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9764 # The linker will automatically build a .lib file if we build a DLL.
9765 old_archive_from_new_cmds='true'
9766 # FIXME: Should let the user specify the lib program.
9767 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9768 enable_shared_with_static_runtimes=yes
9769 ;;
9770 esac
9771 ;;
9772
9773 darwin* | rhapsody*)
9774
9775
9776 archive_cmds_need_lc=no
9777 hardcode_direct=no
9778 hardcode_automatic=yes
9779 hardcode_shlibpath_var=unsupported
9780 if test "$lt_cv_ld_force_load" = "yes"; then
9781 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\"`'
9782
9783 else
9784 whole_archive_flag_spec=''
9785 fi
9786 link_all_deplibs=yes
9787 allow_undefined_flag="$_lt_dar_allow_undefined"
9788 case $cc_basename in
9789 ifort*) _lt_dar_can_shared=yes ;;
9790 *) _lt_dar_can_shared=$GCC ;;
9791 esac
9792 if test "$_lt_dar_can_shared" = "yes"; then
9793 output_verbose_link_cmd=func_echo_all
9794 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9795 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9796 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}"
9797 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}"
9798
9799 else
9800 ld_shlibs=no
9801 fi
9802
9803 ;;
9804
9805 dgux*)
9806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807 hardcode_libdir_flag_spec='-L$libdir'
9808 hardcode_shlibpath_var=no
9809 ;;
9810
9811 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9812 # support. Future versions do this automatically, but an explicit c++rt0.o
9813 # does not break anything, and helps significantly (at the cost of a little
9814 # extra space).
9815 freebsd2.2*)
9816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9817 hardcode_libdir_flag_spec='-R$libdir'
9818 hardcode_direct=yes
9819 hardcode_shlibpath_var=no
9820 ;;
9821
9822 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9823 freebsd2.*)
9824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_direct=yes
9826 hardcode_minus_L=yes
9827 hardcode_shlibpath_var=no
9828 ;;
9829
9830 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9831 freebsd* | dragonfly*)
9832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9833 hardcode_libdir_flag_spec='-R$libdir'
9834 hardcode_direct=yes
9835 hardcode_shlibpath_var=no
9836 ;;
9837
9838 hpux9*)
9839 if test "$GCC" = yes; then
9840 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9841 else
9842 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9843 fi
9844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9845 hardcode_libdir_separator=:
9846 hardcode_direct=yes
9847
9848 # hardcode_minus_L: Not really in the search PATH,
9849 # but as the default location of the library.
9850 hardcode_minus_L=yes
9851 export_dynamic_flag_spec='${wl}-E'
9852 ;;
9853
9854 hpux10*)
9855 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9856 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9857 else
9858 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9859 fi
9860 if test "$with_gnu_ld" = no; then
9861 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9862 hardcode_libdir_separator=:
9863 hardcode_direct=yes
9864 hardcode_direct_absolute=yes
9865 export_dynamic_flag_spec='${wl}-E'
9866 # hardcode_minus_L: Not really in the search PATH,
9867 # but as the default location of the library.
9868 hardcode_minus_L=yes
9869 fi
9870 ;;
9871
9872 hpux11*)
9873 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9874 case $host_cpu in
9875 hppa*64*)
9876 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 ;;
9878 ia64*)
9879 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9880 ;;
9881 *)
9882 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9883 ;;
9884 esac
9885 else
9886 case $host_cpu in
9887 hppa*64*)
9888 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9889 ;;
9890 ia64*)
9891 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9892 ;;
9893 *)
9894
9895 # Older versions of the 11.00 compiler do not understand -b yet
9896 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9898 $as_echo_n "checking if $CC understands -b... " >&6; }
9899 if ${lt_cv_prog_compiler__b+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 lt_cv_prog_compiler__b=no
9903 save_LDFLAGS="$LDFLAGS"
9904 LDFLAGS="$LDFLAGS -b"
9905 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9907 # The linker can only warn and ignore the option if not recognized
9908 # So say no if there are warnings
9909 if test -s conftest.err; then
9910 # Append any errors to the config.log.
9911 cat conftest.err 1>&5
9912 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9914 if diff conftest.exp conftest.er2 >/dev/null; then
9915 lt_cv_prog_compiler__b=yes
9916 fi
9917 else
9918 lt_cv_prog_compiler__b=yes
9919 fi
9920 fi
9921 $RM -r conftest*
9922 LDFLAGS="$save_LDFLAGS"
9923
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9926 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9927
9928 if test x"$lt_cv_prog_compiler__b" = xyes; then
9929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9930 else
9931 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9932 fi
9933
9934 ;;
9935 esac
9936 fi
9937 if test "$with_gnu_ld" = no; then
9938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9939 hardcode_libdir_separator=:
9940
9941 case $host_cpu in
9942 hppa*64*|ia64*)
9943 hardcode_direct=no
9944 hardcode_shlibpath_var=no
9945 ;;
9946 *)
9947 hardcode_direct=yes
9948 hardcode_direct_absolute=yes
9949 export_dynamic_flag_spec='${wl}-E'
9950
9951 # hardcode_minus_L: Not really in the search PATH,
9952 # but as the default location of the library.
9953 hardcode_minus_L=yes
9954 ;;
9955 esac
9956 fi
9957 ;;
9958
9959 irix5* | irix6* | nonstopux*)
9960 if test "$GCC" = yes; then
9961 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'
9962 # Try to use the -exported_symbol ld option, if it does not
9963 # work, assume that -exports_file does not work either and
9964 # implicitly export all symbols.
9965 # This should be the same for all languages, so no per-tag cache variable.
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9967 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9968 if ${lt_cv_irix_exported_symbol+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 save_LDFLAGS="$LDFLAGS"
9972 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975 int foo (void) { return 0; }
9976 _ACEOF
9977 if ac_fn_c_try_link "$LINENO"; then :
9978 lt_cv_irix_exported_symbol=yes
9979 else
9980 lt_cv_irix_exported_symbol=no
9981 fi
9982 rm -f core conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9984 LDFLAGS="$save_LDFLAGS"
9985 fi
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9987 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9988 if test "$lt_cv_irix_exported_symbol" = yes; then
9989 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'
9990 fi
9991 else
9992 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'
9993 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'
9994 fi
9995 archive_cmds_need_lc='no'
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 hardcode_libdir_separator=:
9998 inherit_rpath=yes
9999 link_all_deplibs=yes
10000 ;;
10001
10002 netbsd*)
10003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10005 else
10006 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10007 fi
10008 hardcode_libdir_flag_spec='-R$libdir'
10009 hardcode_direct=yes
10010 hardcode_shlibpath_var=no
10011 ;;
10012
10013 newsos6)
10014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015 hardcode_direct=yes
10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017 hardcode_libdir_separator=:
10018 hardcode_shlibpath_var=no
10019 ;;
10020
10021 *nto* | *qnx*)
10022 ;;
10023
10024 openbsd*)
10025 if test -f /usr/libexec/ld.so; then
10026 hardcode_direct=yes
10027 hardcode_shlibpath_var=no
10028 hardcode_direct_absolute=yes
10029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10033 export_dynamic_flag_spec='${wl}-E'
10034 else
10035 case $host_os in
10036 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_libdir_flag_spec='-R$libdir'
10039 ;;
10040 *)
10041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10043 ;;
10044 esac
10045 fi
10046 else
10047 ld_shlibs=no
10048 fi
10049 ;;
10050
10051 os2*)
10052 hardcode_libdir_flag_spec='-L$libdir'
10053 hardcode_minus_L=yes
10054 allow_undefined_flag=unsupported
10055 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10056 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10057 ;;
10058
10059 osf3*)
10060 if test "$GCC" = yes; then
10061 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10062 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'
10063 else
10064 allow_undefined_flag=' -expect_unresolved \*'
10065 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'
10066 fi
10067 archive_cmds_need_lc='no'
10068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069 hardcode_libdir_separator=:
10070 ;;
10071
10072 osf4* | osf5*) # as osf3* with the addition of -msym flag
10073 if test "$GCC" = yes; then
10074 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10075 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'
10076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10077 else
10078 allow_undefined_flag=' -expect_unresolved \*'
10079 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'
10080 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~
10081 $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'
10082
10083 # Both c and cxx compiler support -rpath directly
10084 hardcode_libdir_flag_spec='-rpath $libdir'
10085 fi
10086 archive_cmds_need_lc='no'
10087 hardcode_libdir_separator=:
10088 ;;
10089
10090 solaris*)
10091 no_undefined_flag=' -z defs'
10092 if test "$GCC" = yes; then
10093 wlarc='${wl}'
10094 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096 $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'
10097 else
10098 case `$CC -V 2>&1` in
10099 *"Compilers 5.0"*)
10100 wlarc=''
10101 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10104 ;;
10105 *)
10106 wlarc='${wl}'
10107 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10110 ;;
10111 esac
10112 fi
10113 hardcode_libdir_flag_spec='-R$libdir'
10114 hardcode_shlibpath_var=no
10115 case $host_os in
10116 solaris2.[0-5] | solaris2.[0-5].*) ;;
10117 *)
10118 # The compiler driver will combine and reorder linker options,
10119 # but understands `-z linker_flag'. GCC discards it without `$wl',
10120 # but is careful enough not to reorder.
10121 # Supported since Solaris 2.6 (maybe 2.5.1?)
10122 if test "$GCC" = yes; then
10123 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10124 else
10125 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10126 fi
10127 ;;
10128 esac
10129 link_all_deplibs=yes
10130 ;;
10131
10132 sunos4*)
10133 if test "x$host_vendor" = xsequent; then
10134 # Use $CC to link under sequent, because it throws in some extra .o
10135 # files that make .init and .fini sections work.
10136 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10137 else
10138 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10139 fi
10140 hardcode_libdir_flag_spec='-L$libdir'
10141 hardcode_direct=yes
10142 hardcode_minus_L=yes
10143 hardcode_shlibpath_var=no
10144 ;;
10145
10146 sysv4)
10147 case $host_vendor in
10148 sni)
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_direct=yes # is this really true???
10151 ;;
10152 siemens)
10153 ## LD is ld it makes a PLAMLIB
10154 ## CC just makes a GrossModule.
10155 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10156 reload_cmds='$CC -r -o $output$reload_objs'
10157 hardcode_direct=no
10158 ;;
10159 motorola)
10160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10162 ;;
10163 esac
10164 runpath_var='LD_RUN_PATH'
10165 hardcode_shlibpath_var=no
10166 ;;
10167
10168 sysv4.3*)
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_shlibpath_var=no
10171 export_dynamic_flag_spec='-Bexport'
10172 ;;
10173
10174 sysv4*MP*)
10175 if test -d /usr/nec; then
10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_shlibpath_var=no
10178 runpath_var=LD_RUN_PATH
10179 hardcode_runpath_var=yes
10180 ld_shlibs=yes
10181 fi
10182 ;;
10183
10184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10185 no_undefined_flag='${wl}-z,text'
10186 archive_cmds_need_lc=no
10187 hardcode_shlibpath_var=no
10188 runpath_var='LD_RUN_PATH'
10189
10190 if test "$GCC" = yes; then
10191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 else
10194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 fi
10197 ;;
10198
10199 sysv5* | sco3.2v5* | sco5v6*)
10200 # Note: We can NOT use -z defs as we might desire, because we do not
10201 # link with -lc, and that would cause any symbols used from libc to
10202 # always be unresolved, which means just about no library would
10203 # ever link correctly. If we're not using GNU ld we use -z text
10204 # though, which does catch some bad symbols but isn't as heavy-handed
10205 # as -z defs.
10206 no_undefined_flag='${wl}-z,text'
10207 allow_undefined_flag='${wl}-z,nodefs'
10208 archive_cmds_need_lc=no
10209 hardcode_shlibpath_var=no
10210 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10211 hardcode_libdir_separator=':'
10212 link_all_deplibs=yes
10213 export_dynamic_flag_spec='${wl}-Bexport'
10214 runpath_var='LD_RUN_PATH'
10215
10216 if test "$GCC" = yes; then
10217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 else
10220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 fi
10223 ;;
10224
10225 uts4*)
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 hardcode_shlibpath_var=no
10229 ;;
10230
10231 *)
10232 ld_shlibs=no
10233 ;;
10234 esac
10235
10236 if test x$host_vendor = xsni; then
10237 case $host in
10238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10239 export_dynamic_flag_spec='${wl}-Blargedynsym'
10240 ;;
10241 esac
10242 fi
10243 fi
10244
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10246 $as_echo "$ld_shlibs" >&6; }
10247 test "$ld_shlibs" = no && can_build_shared=no
10248
10249 with_gnu_ld=$with_gnu_ld
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265 #
10266 # Do we need to explicitly link libc?
10267 #
10268 case "x$archive_cmds_need_lc" in
10269 x|xyes)
10270 # Assume -lc should be added
10271 archive_cmds_need_lc=yes
10272
10273 if test "$enable_shared" = yes && test "$GCC" = yes; then
10274 case $archive_cmds in
10275 *'~'*)
10276 # FIXME: we may have to deal with multi-command sequences.
10277 ;;
10278 '$CC '*)
10279 # Test whether the compiler implicitly links with -lc since on some
10280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10281 # to ld, don't add -lc before -lgcc.
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10283 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10284 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 $RM conftest*
10288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10289
10290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10291 (eval $ac_compile) 2>&5
10292 ac_status=$?
10293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294 test $ac_status = 0; } 2>conftest.err; then
10295 soname=conftest
10296 lib=conftest
10297 libobjs=conftest.$ac_objext
10298 deplibs=
10299 wl=$lt_prog_compiler_wl
10300 pic_flag=$lt_prog_compiler_pic
10301 compiler_flags=-v
10302 linker_flags=-v
10303 verstring=
10304 output_objdir=.
10305 libname=conftest
10306 lt_save_allow_undefined_flag=$allow_undefined_flag
10307 allow_undefined_flag=
10308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10309 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10310 ac_status=$?
10311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10312 test $ac_status = 0; }
10313 then
10314 lt_cv_archive_cmds_need_lc=no
10315 else
10316 lt_cv_archive_cmds_need_lc=yes
10317 fi
10318 allow_undefined_flag=$lt_save_allow_undefined_flag
10319 else
10320 cat conftest.err 1>&5
10321 fi
10322 $RM conftest*
10323
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10326 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10327 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10328 ;;
10329 esac
10330 fi
10331 ;;
10332 esac
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10486 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10487
10488 if test "$GCC" = yes; then
10489 case $host_os in
10490 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10491 *) lt_awk_arg="/^libraries:/" ;;
10492 esac
10493 case $host_os in
10494 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10495 *) lt_sed_strip_eq="s,=/,/,g" ;;
10496 esac
10497 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10498 case $lt_search_path_spec in
10499 *\;*)
10500 # if the path contains ";" then we assume it to be the separator
10501 # otherwise default to the standard path separator (i.e. ":") - it is
10502 # assumed that no part of a normal pathname contains ";" but that should
10503 # okay in the real world where ";" in dirpaths is itself problematic.
10504 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10505 ;;
10506 *)
10507 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10508 ;;
10509 esac
10510 # Ok, now we have the path, separated by spaces, we can step through it
10511 # and add multilib dir if necessary.
10512 lt_tmp_lt_search_path_spec=
10513 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10514 for lt_sys_path in $lt_search_path_spec; do
10515 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10516 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10517 else
10518 test -d "$lt_sys_path" && \
10519 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10520 fi
10521 done
10522 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10523 BEGIN {RS=" "; FS="/|\n";} {
10524 lt_foo="";
10525 lt_count=0;
10526 for (lt_i = NF; lt_i > 0; lt_i--) {
10527 if ($lt_i != "" && $lt_i != ".") {
10528 if ($lt_i == "..") {
10529 lt_count++;
10530 } else {
10531 if (lt_count == 0) {
10532 lt_foo="/" $lt_i lt_foo;
10533 } else {
10534 lt_count--;
10535 }
10536 }
10537 }
10538 }
10539 if (lt_foo != "") { lt_freq[lt_foo]++; }
10540 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10541 }'`
10542 # AWK program above erroneously prepends '/' to C:/dos/paths
10543 # for these hosts.
10544 case $host_os in
10545 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10546 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10547 esac
10548 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10549 else
10550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10551 fi
10552 library_names_spec=
10553 libname_spec='lib$name'
10554 soname_spec=
10555 shrext_cmds=".so"
10556 postinstall_cmds=
10557 postuninstall_cmds=
10558 finish_cmds=
10559 finish_eval=
10560 shlibpath_var=
10561 shlibpath_overrides_runpath=unknown
10562 version_type=none
10563 dynamic_linker="$host_os ld.so"
10564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10565 need_lib_prefix=unknown
10566 hardcode_into_libs=no
10567
10568 # when you set need_version to no, make sure it does not cause -set_version
10569 # flags to be left without arguments
10570 need_version=unknown
10571
10572 case $host_os in
10573 aix3*)
10574 version_type=linux # correct to gnu/linux during the next big refactor
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10576 shlibpath_var=LIBPATH
10577
10578 # AIX 3 has no versioning support, so we append a major version to the name.
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 ;;
10581
10582 aix[4-9]*)
10583 version_type=linux # correct to gnu/linux during the next big refactor
10584 need_lib_prefix=no
10585 need_version=no
10586 hardcode_into_libs=yes
10587 if test "$host_cpu" = ia64; then
10588 # AIX 5 supports IA64
10589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 else
10592 # With GCC up to 2.95.x, collect2 would create an import file
10593 # for dependence libraries. The import file would start with
10594 # the line `#! .'. This would cause the generated library to
10595 # depend on `.', always an invalid library. This was fixed in
10596 # development snapshots of GCC prior to 3.0.
10597 case $host_os in
10598 aix4 | aix4.[01] | aix4.[01].*)
10599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10600 echo ' yes '
10601 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10602 :
10603 else
10604 can_build_shared=no
10605 fi
10606 ;;
10607 esac
10608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10609 # soname into executable. Probably we can add versioning support to
10610 # collect2, so additional links can be useful in future.
10611 if test "$aix_use_runtimelinking" = yes; then
10612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10613 # instead of lib<name>.a to let people know that these are not
10614 # typical AIX shared libraries.
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 else
10617 # We preserve .a as extension for shared libraries through AIX4.2
10618 # and later when we are not doing run time linking.
10619 library_names_spec='${libname}${release}.a $libname.a'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 fi
10622 shlibpath_var=LIBPATH
10623 fi
10624 ;;
10625
10626 amigaos*)
10627 case $host_cpu in
10628 powerpc)
10629 # Since July 2007 AmigaOS4 officially supports .so libraries.
10630 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 ;;
10633 m68k)
10634 library_names_spec='$libname.ixlibrary $libname.a'
10635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10636 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10637 ;;
10638 esac
10639 ;;
10640
10641 beos*)
10642 library_names_spec='${libname}${shared_ext}'
10643 dynamic_linker="$host_os ld.so"
10644 shlibpath_var=LIBRARY_PATH
10645 ;;
10646
10647 bsdi[45]*)
10648 version_type=linux # correct to gnu/linux during the next big refactor
10649 need_version=no
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10656 # the default ld.so.conf also contains /usr/contrib/lib and
10657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10658 # libtool to hard-code these into programs
10659 ;;
10660
10661 cygwin* | mingw* | pw32* | cegcc*)
10662 version_type=windows
10663 shrext_cmds=".dll"
10664 need_version=no
10665 need_lib_prefix=no
10666
10667 case $GCC,$cc_basename in
10668 yes,*)
10669 # gcc
10670 library_names_spec='$libname.dll.a'
10671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10672 postinstall_cmds='base_file=`basename \${file}`~
10673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10674 dldir=$destdir/`dirname \$dlpath`~
10675 test -d \$dldir || mkdir -p \$dldir~
10676 $install_prog $dir/$dlname \$dldir/$dlname~
10677 chmod a+x \$dldir/$dlname~
10678 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10679 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10680 fi'
10681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10682 dlpath=$dir/\$dldll~
10683 $RM \$dlpath'
10684 shlibpath_overrides_runpath=yes
10685
10686 case $host_os in
10687 cygwin*)
10688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10690
10691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10692 ;;
10693 mingw* | cegcc*)
10694 # MinGW DLLs use traditional 'lib' prefix
10695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696 ;;
10697 pw32*)
10698 # pw32 DLLs use 'pw' prefix rather than 'lib'
10699 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10700 ;;
10701 esac
10702 dynamic_linker='Win32 ld.exe'
10703 ;;
10704
10705 *,cl*)
10706 # Native MSVC
10707 libname_spec='$name'
10708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10709 library_names_spec='${libname}.dll.lib'
10710
10711 case $build_os in
10712 mingw*)
10713 sys_lib_search_path_spec=
10714 lt_save_ifs=$IFS
10715 IFS=';'
10716 for lt_path in $LIB
10717 do
10718 IFS=$lt_save_ifs
10719 # Let DOS variable expansion print the short 8.3 style file name.
10720 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10721 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10722 done
10723 IFS=$lt_save_ifs
10724 # Convert to MSYS style.
10725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10726 ;;
10727 cygwin*)
10728 # Convert to unix form, then to dos form, then back to unix form
10729 # but this time dos style (no spaces!) so that the unix form looks
10730 # like /cygdrive/c/PROGRA~1:/cygdr...
10731 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10732 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10733 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10734 ;;
10735 *)
10736 sys_lib_search_path_spec="$LIB"
10737 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10738 # It is most probably a Windows format PATH.
10739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10740 else
10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10742 fi
10743 # FIXME: find the short name or the path components, as spaces are
10744 # common. (e.g. "Program Files" -> "PROGRA~1")
10745 ;;
10746 esac
10747
10748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749 postinstall_cmds='base_file=`basename \${file}`~
10750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10751 dldir=$destdir/`dirname \$dlpath`~
10752 test -d \$dldir || mkdir -p \$dldir~
10753 $install_prog $dir/$dlname \$dldir/$dlname'
10754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755 dlpath=$dir/\$dldll~
10756 $RM \$dlpath'
10757 shlibpath_overrides_runpath=yes
10758 dynamic_linker='Win32 link.exe'
10759 ;;
10760
10761 *)
10762 # Assume MSVC wrapper
10763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10764 dynamic_linker='Win32 ld.exe'
10765 ;;
10766 esac
10767 # FIXME: first we should search . and the directory the executable is in
10768 shlibpath_var=PATH
10769 ;;
10770
10771 darwin* | rhapsody*)
10772 dynamic_linker="$host_os dyld"
10773 version_type=darwin
10774 need_lib_prefix=no
10775 need_version=no
10776 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10777 soname_spec='${libname}${release}${major}$shared_ext'
10778 shlibpath_overrides_runpath=yes
10779 shlibpath_var=DYLD_LIBRARY_PATH
10780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10781
10782 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10784 ;;
10785
10786 dgux*)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 need_lib_prefix=no
10789 need_version=no
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 ;;
10794
10795 freebsd* | dragonfly*)
10796 # DragonFly does not have aout. When/if they implement a new
10797 # versioning mechanism, adjust this.
10798 if test -x /usr/bin/objformat; then
10799 objformat=`/usr/bin/objformat`
10800 else
10801 case $host_os in
10802 freebsd[23].*) objformat=aout ;;
10803 *) objformat=elf ;;
10804 esac
10805 fi
10806 version_type=freebsd-$objformat
10807 case $version_type in
10808 freebsd-elf*)
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10810 need_version=no
10811 need_lib_prefix=no
10812 ;;
10813 freebsd-*)
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10815 need_version=yes
10816 ;;
10817 esac
10818 shlibpath_var=LD_LIBRARY_PATH
10819 case $host_os in
10820 freebsd2.*)
10821 shlibpath_overrides_runpath=yes
10822 ;;
10823 freebsd3.[01]* | freebsdelf3.[01]*)
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10826 ;;
10827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10829 shlibpath_overrides_runpath=no
10830 hardcode_into_libs=yes
10831 ;;
10832 *) # from 4.6 on, and DragonFly
10833 shlibpath_overrides_runpath=yes
10834 hardcode_into_libs=yes
10835 ;;
10836 esac
10837 ;;
10838
10839 gnu*)
10840 version_type=linux # correct to gnu/linux during the next big refactor
10841 need_lib_prefix=no
10842 need_version=no
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10848 ;;
10849
10850 haiku*)
10851 version_type=linux # correct to gnu/linux during the next big refactor
10852 need_lib_prefix=no
10853 need_version=no
10854 dynamic_linker="$host_os runtime_loader"
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 shlibpath_var=LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes
10859 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10860 hardcode_into_libs=yes
10861 ;;
10862
10863 hpux9* | hpux10* | hpux11*)
10864 # Give a soname corresponding to the major version so that dld.sl refuses to
10865 # link against other versions.
10866 version_type=sunos
10867 need_lib_prefix=no
10868 need_version=no
10869 case $host_cpu in
10870 ia64*)
10871 shrext_cmds='.so'
10872 hardcode_into_libs=yes
10873 dynamic_linker="$host_os dld.so"
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877 soname_spec='${libname}${release}${shared_ext}$major'
10878 if test "X$HPUX_IA64_MODE" = X32; then
10879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10880 else
10881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10882 fi
10883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10884 ;;
10885 hppa*64*)
10886 shrext_cmds='.sl'
10887 hardcode_into_libs=yes
10888 dynamic_linker="$host_os dld.sl"
10889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10895 ;;
10896 *)
10897 shrext_cmds='.sl'
10898 dynamic_linker="$host_os dld.sl"
10899 shlibpath_var=SHLIB_PATH
10900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 ;;
10904 esac
10905 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10906 postinstall_cmds='chmod 555 $lib'
10907 # or fails outright, so override atomically:
10908 install_override_mode=555
10909 ;;
10910
10911 interix[3-9]*)
10912 version_type=linux # correct to gnu/linux during the next big refactor
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=no
10920 hardcode_into_libs=yes
10921 ;;
10922
10923 irix5* | irix6* | nonstopux*)
10924 case $host_os in
10925 nonstopux*) version_type=nonstopux ;;
10926 *)
10927 if test "$lt_cv_prog_gnu_ld" = yes; then
10928 version_type=linux # correct to gnu/linux during the next big refactor
10929 else
10930 version_type=irix
10931 fi ;;
10932 esac
10933 need_lib_prefix=no
10934 need_version=no
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10937 case $host_os in
10938 irix5* | nonstopux*)
10939 libsuff= shlibsuff=
10940 ;;
10941 *)
10942 case $LD in # libtool.m4 will add one of these switches to LD
10943 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10944 libsuff= shlibsuff= libmagic=32-bit;;
10945 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10946 libsuff=32 shlibsuff=N32 libmagic=N32;;
10947 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10948 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10949 *) libsuff= shlibsuff= libmagic=never-match;;
10950 esac
10951 ;;
10952 esac
10953 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10954 shlibpath_overrides_runpath=no
10955 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10956 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10957 hardcode_into_libs=yes
10958 ;;
10959
10960 # No shared lib support for Linux oldld, aout, or coff.
10961 linux*oldld* | linux*aout* | linux*coff*)
10962 dynamic_linker=no
10963 ;;
10964
10965 # This must be glibc/ELF.
10966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10967 version_type=linux # correct to gnu/linux during the next big refactor
10968 need_lib_prefix=no
10969 need_version=no
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=no
10975
10976 # Some binutils ld are patched to set DT_RUNPATH
10977 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 lt_cv_shlibpath_overrides_runpath=no
10981 save_LDFLAGS=$LDFLAGS
10982 save_libdir=$libdir
10983 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10984 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987
10988 int
10989 main ()
10990 {
10991
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 if ac_fn_c_try_link "$LINENO"; then :
10997 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10998 lt_cv_shlibpath_overrides_runpath=yes
10999 fi
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
11003 LDFLAGS=$save_LDFLAGS
11004 libdir=$save_libdir
11005
11006 fi
11007
11008 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11009
11010 # This implies no fast_install, which is unacceptable.
11011 # Some rework will be needed to allow for fast_install
11012 # before this can be enabled.
11013 hardcode_into_libs=yes
11014
11015 # Append ld.so.conf contents to the search path
11016 if test -f /etc/ld.so.conf; then
11017 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' ' '`
11018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11019 fi
11020
11021 # We used to test for /lib/ld.so.1 and disable shared libraries on
11022 # powerpc, because MkLinux only supported shared libraries with the
11023 # GNU dynamic linker. Since this was broken with cross compilers,
11024 # most powerpc-linux boxes support dynamic linking these days and
11025 # people can always --disable-shared, the test was removed, and we
11026 # assume the GNU/Linux dynamic linker is in use.
11027 dynamic_linker='GNU/Linux ld.so'
11028 ;;
11029
11030 netbsd*)
11031 version_type=sunos
11032 need_lib_prefix=no
11033 need_version=no
11034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11037 dynamic_linker='NetBSD (a.out) ld.so'
11038 else
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 dynamic_linker='NetBSD ld.elf_so'
11042 fi
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 hardcode_into_libs=yes
11046 ;;
11047
11048 newsos6)
11049 version_type=linux # correct to gnu/linux during the next big refactor
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 shlibpath_overrides_runpath=yes
11053 ;;
11054
11055 *nto* | *qnx*)
11056 version_type=qnx
11057 need_lib_prefix=no
11058 need_version=no
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=no
11063 hardcode_into_libs=yes
11064 dynamic_linker='ldqnx.so'
11065 ;;
11066
11067 openbsd*)
11068 version_type=sunos
11069 sys_lib_dlsearch_path_spec="/usr/lib"
11070 need_lib_prefix=no
11071 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11072 case $host_os in
11073 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11074 *) need_version=no ;;
11075 esac
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11080 case $host_os in
11081 openbsd2.[89] | openbsd2.[89].*)
11082 shlibpath_overrides_runpath=no
11083 ;;
11084 *)
11085 shlibpath_overrides_runpath=yes
11086 ;;
11087 esac
11088 else
11089 shlibpath_overrides_runpath=yes
11090 fi
11091 ;;
11092
11093 os2*)
11094 libname_spec='$name'
11095 shrext_cmds=".dll"
11096 need_lib_prefix=no
11097 library_names_spec='$libname${shared_ext} $libname.a'
11098 dynamic_linker='OS/2 ld.exe'
11099 shlibpath_var=LIBPATH
11100 ;;
11101
11102 osf3* | osf4* | osf5*)
11103 version_type=osf
11104 need_lib_prefix=no
11105 need_version=no
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11110 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11111 ;;
11112
11113 rdos*)
11114 dynamic_linker=no
11115 ;;
11116
11117 solaris*)
11118 version_type=linux # correct to gnu/linux during the next big refactor
11119 need_lib_prefix=no
11120 need_version=no
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 soname_spec='${libname}${release}${shared_ext}$major'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=yes
11125 hardcode_into_libs=yes
11126 # ldd complains unless libraries are executable
11127 postinstall_cmds='chmod +x $lib'
11128 ;;
11129
11130 sunos4*)
11131 version_type=sunos
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11133 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=yes
11136 if test "$with_gnu_ld" = yes; then
11137 need_lib_prefix=no
11138 fi
11139 need_version=yes
11140 ;;
11141
11142 sysv4 | sysv4.3*)
11143 version_type=linux # correct to gnu/linux during the next big refactor
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 case $host_vendor in
11148 sni)
11149 shlibpath_overrides_runpath=no
11150 need_lib_prefix=no
11151 runpath_var=LD_RUN_PATH
11152 ;;
11153 siemens)
11154 need_lib_prefix=no
11155 ;;
11156 motorola)
11157 need_lib_prefix=no
11158 need_version=no
11159 shlibpath_overrides_runpath=no
11160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11161 ;;
11162 esac
11163 ;;
11164
11165 sysv4*MP*)
11166 if test -d /usr/nec ;then
11167 version_type=linux # correct to gnu/linux during the next big refactor
11168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11169 soname_spec='$libname${shared_ext}.$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 fi
11172 ;;
11173
11174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11175 version_type=freebsd-elf
11176 need_lib_prefix=no
11177 need_version=no
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 shlibpath_overrides_runpath=yes
11182 hardcode_into_libs=yes
11183 if test "$with_gnu_ld" = yes; then
11184 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11185 else
11186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11187 case $host_os in
11188 sco3.2v5*)
11189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11190 ;;
11191 esac
11192 fi
11193 sys_lib_dlsearch_path_spec='/usr/lib'
11194 ;;
11195
11196 tpf*)
11197 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11198 version_type=linux # correct to gnu/linux during the next big refactor
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=no
11204 hardcode_into_libs=yes
11205 ;;
11206
11207 uts4*)
11208 version_type=linux # correct to gnu/linux during the next big refactor
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 ;;
11213
11214 *)
11215 dynamic_linker=no
11216 ;;
11217 esac
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11219 $as_echo "$dynamic_linker" >&6; }
11220 test "$dynamic_linker" = no && can_build_shared=no
11221
11222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11223 if test "$GCC" = yes; then
11224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11225 fi
11226
11227 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11228 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11229 fi
11230 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11231 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11232 fi
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11326 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11327 hardcode_action=
11328 if test -n "$hardcode_libdir_flag_spec" ||
11329 test -n "$runpath_var" ||
11330 test "X$hardcode_automatic" = "Xyes" ; then
11331
11332 # We can hardcode non-existent directories.
11333 if test "$hardcode_direct" != no &&
11334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11335 # have to relink, otherwise we might link with an installed library
11336 # when we should be linking with a yet-to-be-installed one
11337 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11338 test "$hardcode_minus_L" != no; then
11339 # Linking always hardcodes the temporary library directory.
11340 hardcode_action=relink
11341 else
11342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11343 hardcode_action=immediate
11344 fi
11345 else
11346 # We cannot hardcode anything, or else we can only hardcode existing
11347 # directories.
11348 hardcode_action=unsupported
11349 fi
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11351 $as_echo "$hardcode_action" >&6; }
11352
11353 if test "$hardcode_action" = relink ||
11354 test "$inherit_rpath" = yes; then
11355 # Fast installation is not supported
11356 enable_fast_install=no
11357 elif test "$shlibpath_overrides_runpath" = yes ||
11358 test "$enable_shared" = no; then
11359 # Fast installation is not necessary
11360 enable_fast_install=needless
11361 fi
11362
11363
11364
11365
11366
11367
11368 if test "x$enable_dlopen" != xyes; then
11369 enable_dlopen=unknown
11370 enable_dlopen_self=unknown
11371 enable_dlopen_self_static=unknown
11372 else
11373 lt_cv_dlopen=no
11374 lt_cv_dlopen_libs=
11375
11376 case $host_os in
11377 beos*)
11378 lt_cv_dlopen="load_add_on"
11379 lt_cv_dlopen_libs=
11380 lt_cv_dlopen_self=yes
11381 ;;
11382
11383 mingw* | pw32* | cegcc*)
11384 lt_cv_dlopen="LoadLibrary"
11385 lt_cv_dlopen_libs=
11386 ;;
11387
11388 cygwin*)
11389 lt_cv_dlopen="dlopen"
11390 lt_cv_dlopen_libs=
11391 ;;
11392
11393 darwin*)
11394 # if libdl is installed we need to link against it
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11396 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11397 if ${ac_cv_lib_dl_dlopen+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 ac_check_lib_save_LIBS=$LIBS
11401 LIBS="-ldl $LIBS"
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404
11405 /* Override any GCC internal prototype to avoid an error.
11406 Use char because int might match the return type of a GCC
11407 builtin and then its argument prototype would still apply. */
11408 #ifdef __cplusplus
11409 extern "C"
11410 #endif
11411 char dlopen ();
11412 int
11413 main ()
11414 {
11415 return dlopen ();
11416 ;
11417 return 0;
11418 }
11419 _ACEOF
11420 if ac_fn_c_try_link "$LINENO"; then :
11421 ac_cv_lib_dl_dlopen=yes
11422 else
11423 ac_cv_lib_dl_dlopen=no
11424 fi
11425 rm -f core conftest.err conftest.$ac_objext \
11426 conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11430 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11431 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11433 else
11434
11435 lt_cv_dlopen="dyld"
11436 lt_cv_dlopen_libs=
11437 lt_cv_dlopen_self=yes
11438
11439 fi
11440
11441 ;;
11442
11443 *)
11444 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11445 if test "x$ac_cv_func_shl_load" = xyes; then :
11446 lt_cv_dlopen="shl_load"
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11449 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11450 if ${ac_cv_lib_dld_shl_load+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 ac_check_lib_save_LIBS=$LIBS
11454 LIBS="-ldld $LIBS"
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11457
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 char shl_load ();
11465 int
11466 main ()
11467 {
11468 return shl_load ();
11469 ;
11470 return 0;
11471 }
11472 _ACEOF
11473 if ac_fn_c_try_link "$LINENO"; then :
11474 ac_cv_lib_dld_shl_load=yes
11475 else
11476 ac_cv_lib_dld_shl_load=no
11477 fi
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11481 fi
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11483 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11484 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11485 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11486 else
11487 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11488 if test "x$ac_cv_func_dlopen" = xyes; then :
11489 lt_cv_dlopen="dlopen"
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11493 if ${ac_cv_lib_dl_dlopen+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 ac_check_lib_save_LIBS=$LIBS
11497 LIBS="-ldl $LIBS"
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 char dlopen ();
11508 int
11509 main ()
11510 {
11511 return dlopen ();
11512 ;
11513 return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 ac_cv_lib_dl_dlopen=yes
11518 else
11519 ac_cv_lib_dl_dlopen=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11527 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11529 else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11531 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11532 if ${ac_cv_lib_svld_dlopen+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-lsvld $LIBS"
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char dlopen ();
11547 int
11548 main ()
11549 {
11550 return dlopen ();
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 ac_cv_lib_svld_dlopen=yes
11557 else
11558 ac_cv_lib_svld_dlopen=no
11559 fi
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11563 fi
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11565 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11566 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11568 else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11570 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11571 if ${ac_cv_lib_dld_dld_link+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-ldld $LIBS"
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582 #ifdef __cplusplus
11583 extern "C"
11584 #endif
11585 char dld_link ();
11586 int
11587 main ()
11588 {
11589 return dld_link ();
11590 ;
11591 return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_dld_dld_link=yes
11596 else
11597 ac_cv_lib_dld_dld_link=no
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11602 fi
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11604 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11605 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11606 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11607 fi
11608
11609
11610 fi
11611
11612
11613 fi
11614
11615
11616 fi
11617
11618
11619 fi
11620
11621
11622 fi
11623
11624 ;;
11625 esac
11626
11627 if test "x$lt_cv_dlopen" != xno; then
11628 enable_dlopen=yes
11629 else
11630 enable_dlopen=no
11631 fi
11632
11633 case $lt_cv_dlopen in
11634 dlopen)
11635 save_CPPFLAGS="$CPPFLAGS"
11636 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11637
11638 save_LDFLAGS="$LDFLAGS"
11639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11640
11641 save_LIBS="$LIBS"
11642 LIBS="$lt_cv_dlopen_libs $LIBS"
11643
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11645 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11646 if ${lt_cv_dlopen_self+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 if test "$cross_compiling" = yes; then :
11650 lt_cv_dlopen_self=cross
11651 else
11652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11653 lt_status=$lt_dlunknown
11654 cat > conftest.$ac_ext <<_LT_EOF
11655 #line $LINENO "configure"
11656 #include "confdefs.h"
11657
11658 #if HAVE_DLFCN_H
11659 #include <dlfcn.h>
11660 #endif
11661
11662 #include <stdio.h>
11663
11664 #ifdef RTLD_GLOBAL
11665 # define LT_DLGLOBAL RTLD_GLOBAL
11666 #else
11667 # ifdef DL_GLOBAL
11668 # define LT_DLGLOBAL DL_GLOBAL
11669 # else
11670 # define LT_DLGLOBAL 0
11671 # endif
11672 #endif
11673
11674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11675 find out it does not work in some platform. */
11676 #ifndef LT_DLLAZY_OR_NOW
11677 # ifdef RTLD_LAZY
11678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11679 # else
11680 # ifdef DL_LAZY
11681 # define LT_DLLAZY_OR_NOW DL_LAZY
11682 # else
11683 # ifdef RTLD_NOW
11684 # define LT_DLLAZY_OR_NOW RTLD_NOW
11685 # else
11686 # ifdef DL_NOW
11687 # define LT_DLLAZY_OR_NOW DL_NOW
11688 # else
11689 # define LT_DLLAZY_OR_NOW 0
11690 # endif
11691 # endif
11692 # endif
11693 # endif
11694 #endif
11695
11696 /* When -fvisbility=hidden is used, assume the code has been annotated
11697 correspondingly for the symbols needed. */
11698 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11699 int fnord () __attribute__((visibility("default")));
11700 #endif
11701
11702 int fnord () { return 42; }
11703 int main ()
11704 {
11705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11706 int status = $lt_dlunknown;
11707
11708 if (self)
11709 {
11710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11711 else
11712 {
11713 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11714 else puts (dlerror ());
11715 }
11716 /* dlclose (self); */
11717 }
11718 else
11719 puts (dlerror ());
11720
11721 return status;
11722 }
11723 _LT_EOF
11724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11725 (eval $ac_link) 2>&5
11726 ac_status=$?
11727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11728 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11729 (./conftest; exit; ) >&5 2>/dev/null
11730 lt_status=$?
11731 case x$lt_status in
11732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11735 esac
11736 else :
11737 # compilation failed
11738 lt_cv_dlopen_self=no
11739 fi
11740 fi
11741 rm -fr conftest*
11742
11743
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11746 $as_echo "$lt_cv_dlopen_self" >&6; }
11747
11748 if test "x$lt_cv_dlopen_self" = xyes; then
11749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11751 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11752 if ${lt_cv_dlopen_self_static+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 if test "$cross_compiling" = yes; then :
11756 lt_cv_dlopen_self_static=cross
11757 else
11758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11759 lt_status=$lt_dlunknown
11760 cat > conftest.$ac_ext <<_LT_EOF
11761 #line $LINENO "configure"
11762 #include "confdefs.h"
11763
11764 #if HAVE_DLFCN_H
11765 #include <dlfcn.h>
11766 #endif
11767
11768 #include <stdio.h>
11769
11770 #ifdef RTLD_GLOBAL
11771 # define LT_DLGLOBAL RTLD_GLOBAL
11772 #else
11773 # ifdef DL_GLOBAL
11774 # define LT_DLGLOBAL DL_GLOBAL
11775 # else
11776 # define LT_DLGLOBAL 0
11777 # endif
11778 #endif
11779
11780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11781 find out it does not work in some platform. */
11782 #ifndef LT_DLLAZY_OR_NOW
11783 # ifdef RTLD_LAZY
11784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11785 # else
11786 # ifdef DL_LAZY
11787 # define LT_DLLAZY_OR_NOW DL_LAZY
11788 # else
11789 # ifdef RTLD_NOW
11790 # define LT_DLLAZY_OR_NOW RTLD_NOW
11791 # else
11792 # ifdef DL_NOW
11793 # define LT_DLLAZY_OR_NOW DL_NOW
11794 # else
11795 # define LT_DLLAZY_OR_NOW 0
11796 # endif
11797 # endif
11798 # endif
11799 # endif
11800 #endif
11801
11802 /* When -fvisbility=hidden is used, assume the code has been annotated
11803 correspondingly for the symbols needed. */
11804 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11805 int fnord () __attribute__((visibility("default")));
11806 #endif
11807
11808 int fnord () { return 42; }
11809 int main ()
11810 {
11811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11812 int status = $lt_dlunknown;
11813
11814 if (self)
11815 {
11816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11817 else
11818 {
11819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11820 else puts (dlerror ());
11821 }
11822 /* dlclose (self); */
11823 }
11824 else
11825 puts (dlerror ());
11826
11827 return status;
11828 }
11829 _LT_EOF
11830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11831 (eval $ac_link) 2>&5
11832 ac_status=$?
11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11835 (./conftest; exit; ) >&5 2>/dev/null
11836 lt_status=$?
11837 case x$lt_status in
11838 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11839 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11840 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11841 esac
11842 else :
11843 # compilation failed
11844 lt_cv_dlopen_self_static=no
11845 fi
11846 fi
11847 rm -fr conftest*
11848
11849
11850 fi
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11852 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11853 fi
11854
11855 CPPFLAGS="$save_CPPFLAGS"
11856 LDFLAGS="$save_LDFLAGS"
11857 LIBS="$save_LIBS"
11858 ;;
11859 esac
11860
11861 case $lt_cv_dlopen_self in
11862 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11863 *) enable_dlopen_self=unknown ;;
11864 esac
11865
11866 case $lt_cv_dlopen_self_static in
11867 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11868 *) enable_dlopen_self_static=unknown ;;
11869 esac
11870 fi
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888 striplib=
11889 old_striplib=
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11891 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11892 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11893 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11894 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896 $as_echo "yes" >&6; }
11897 else
11898 # FIXME - insert some real tests, host_os isn't really good enough
11899 case $host_os in
11900 darwin*)
11901 if test -n "$STRIP" ; then
11902 striplib="$STRIP -x"
11903 old_striplib="$STRIP -S"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11905 $as_echo "yes" >&6; }
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11909 fi
11910 ;;
11911 *)
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 ;;
11915 esac
11916 fi
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929 # Report which library types will actually be built
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11931 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11933 $as_echo "$can_build_shared" >&6; }
11934
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11936 $as_echo_n "checking whether to build shared libraries... " >&6; }
11937 test "$can_build_shared" = "no" && enable_shared=no
11938
11939 # On AIX, shared libraries and static libraries use the same namespace, and
11940 # are all built from PIC.
11941 case $host_os in
11942 aix3*)
11943 test "$enable_shared" = yes && enable_static=no
11944 if test -n "$RANLIB"; then
11945 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11946 postinstall_cmds='$RANLIB $lib'
11947 fi
11948 ;;
11949
11950 aix[4-9]*)
11951 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11952 test "$enable_shared" = yes && enable_static=no
11953 fi
11954 ;;
11955 esac
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11957 $as_echo "$enable_shared" >&6; }
11958
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11960 $as_echo_n "checking whether to build static libraries... " >&6; }
11961 # Make sure either enable_shared or enable_static is yes.
11962 test "$enable_shared" = yes || enable_static=yes
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11964 $as_echo "$enable_static" >&6; }
11965
11966
11967
11968
11969 fi
11970 ac_ext=c
11971 ac_cpp='$CPP $CPPFLAGS'
11972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11975
11976 CC="$lt_save_CC"
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 ac_config_commands="$ac_config_commands libtool"
11993
11994
11995
11996
11997 # Only expand once:
11998
11999
12000
12001 # other programs
12002
12003
12004 LIB_MAJ=2
12005
12006
12007 cat >>confdefs.h <<_ACEOF
12008 #define LIB_MAJ $LIB_MAJ
12009 _ACEOF
12010
12011
12012 # Check whether --enable-debug was given.
12013 if test "${enable_debug+set}" = set; then :
12014 enableval=$enable_debug;
12015 $as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
12016
12017 fi
12018
12019
12020 # Check whether --enable-unversioned-modules was given.
12021 if test "${enable_unversioned_modules+set}" = set; then :
12022 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
12023
12024
12025 $as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
12026
12027
12028 fi
12029 fi
12030
12031
12032
12033 # Check whether --with-modules-dir was given.
12034 if test "${with_modules_dir+set}" = set; then :
12035 withval=$with_modules_dir; if test x"$withval" != x"no"; then :
12036
12037 OPENPAM_MODULES_DIR="$withval"
12038
12039 cat >>confdefs.h <<_ACEOF
12040 #define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}"
12041 _ACEOF
12042
12043
12044 fi
12045 fi
12046
12047
12048 if test x"$OPENPAM_MODULES_DIR" != x""; then
12049 CUSTOM_MODULES_DIR_TRUE=
12050 CUSTOM_MODULES_DIR_FALSE='#'
12051 else
12052 CUSTOM_MODULES_DIR_TRUE='#'
12053 CUSTOM_MODULES_DIR_FALSE=
12054 fi
12055
12056
12057
12058 # Check whether --with-doc was given.
12059 if test "${with_doc+set}" = set; then :
12060 withval=$with_doc;
12061 else
12062 with_doc=yes
12063 fi
12064
12065 if test x"$with_doc" = x"yes"; then
12066 WITH_DOC_TRUE=
12067 WITH_DOC_FALSE='#'
12068 else
12069 WITH_DOC_TRUE='#'
12070 WITH_DOC_FALSE=
12071 fi
12072
12073
12074
12075 # Check whether --with-pam-unix was given.
12076 if test "${with_pam_unix+set}" = set; then :
12077 withval=$with_pam_unix;
12078 else
12079 with_pam_unix=no
12080 fi
12081
12082 if test x"$with_pam_unix" = x"yes"; then
12083 WITH_PAM_UNIX_TRUE=
12084 WITH_PAM_UNIX_FALSE='#'
12085 else
12086 WITH_PAM_UNIX_TRUE='#'
12087 WITH_PAM_UNIX_FALSE=
12088 fi
12089
12090
12091
12092 # Check whether --with-pamtest was given.
12093 if test "${with_pamtest+set}" = set; then :
12094 withval=$with_pamtest;
12095 else
12096 with_pamtest=no
12097 fi
12098
12099 if test x"$with_pamtest" = x"yes"; then
12100 WITH_PAMTEST_TRUE=
12101 WITH_PAMTEST_FALSE='#'
12102 else
12103 WITH_PAMTEST_TRUE='#'
12104 WITH_PAMTEST_FALSE=
12105 fi
12106
12107
12108
12109 # Check whether --with-su was given.
12110 if test "${with_su+set}" = set; then :
12111 withval=$with_su;
12112 else
12113 with_su=no
12114 fi
12115
12116 if test x"$with_su" = x"yes"; then
12117 WITH_SU_TRUE=
12118 WITH_SU_FALSE='#'
12119 else
12120 WITH_SU_TRUE='#'
12121 WITH_SU_FALSE=
12122 fi
12123
12124
12125 for ac_header in crypt.h
12126 do :
12127 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
12128 if test "x$ac_cv_header_crypt_h" = xyes; then :
12129 cat >>confdefs.h <<_ACEOF
12130 #define HAVE_CRYPT_H 1
12131 _ACEOF
12132
12133 fi
12134
12135 done
12136
12137
12138 for ac_func in asprintf vasprintf
12139 do :
12140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12141 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12142 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12143 cat >>confdefs.h <<_ACEOF
12144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12145 _ACEOF
12146
12147 fi
12148 done
12149
12150 for ac_func in dlfunc fdlopen
12151 do :
12152 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12153 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12154 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12155 cat >>confdefs.h <<_ACEOF
12156 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12157 _ACEOF
12158
12159 fi
12160 done
12161
12162 for ac_func in fpurge
12163 do :
12164 ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
12165 if test "x$ac_cv_func_fpurge" = xyes; then :
12166 cat >>confdefs.h <<_ACEOF
12167 #define HAVE_FPURGE 1
12168 _ACEOF
12169
12170 fi
12171 done
12172
12173 for ac_func in setlogmask
12174 do :
12175 ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
12176 if test "x$ac_cv_func_setlogmask" = xyes; then :
12177 cat >>confdefs.h <<_ACEOF
12178 #define HAVE_SETLOGMASK 1
12179 _ACEOF
12180
12181 fi
12182 done
12183
12184 for ac_func in strlcat strlcmp strlcpy
12185 do :
12186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12189 cat >>confdefs.h <<_ACEOF
12190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12191 _ACEOF
12192
12193 fi
12194 done
12195
12196
12197 saved_LIBS="${LIBS}"
12198 LIBS=""
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12200 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12201 if ${ac_cv_lib_dl_dlopen+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 ac_check_lib_save_LIBS=$LIBS
12205 LIBS="-ldl $LIBS"
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12212 #ifdef __cplusplus
12213 extern "C"
12214 #endif
12215 char dlopen ();
12216 int
12217 main ()
12218 {
12219 return dlopen ();
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 if ac_fn_c_try_link "$LINENO"; then :
12225 ac_cv_lib_dl_dlopen=yes
12226 else
12227 ac_cv_lib_dl_dlopen=no
12228 fi
12229 rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12232 fi
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12234 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12235 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12236 cat >>confdefs.h <<_ACEOF
12237 #define HAVE_LIBDL 1
12238 _ACEOF
12239
12240 LIBS="-ldl $LIBS"
12241
12242 fi
12243
12244 DL_LIBS="${LIBS}"
12245 LIBS="${saved_LIBS}"
12246
12247
12248 saved_LIBS="${LIBS}"
12249 LIBS=""
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12251 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12252 if ${ac_cv_lib_crypt_crypt+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-lcrypt $LIBS"
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char crypt ();
12267 int
12268 main ()
12269 {
12270 return crypt ();
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_crypt_crypt=yes
12277 else
12278 ac_cv_lib_crypt_crypt=no
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12285 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12286 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12287 cat >>confdefs.h <<_ACEOF
12288 #define HAVE_LIBCRYPT 1
12289 _ACEOF
12290
12291 LIBS="-lcrypt $LIBS"
12292
12293 fi
12294
12295 CRYPT_LIBS="${LIBS}"
12296 LIBS="${saved_LIBS}"
12297
12298
12299 saved_LIBS="${LIBS}"
12300 LIBS=""
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
12302 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
12303 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lcrypto $LIBS"
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12310
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 char HMAC_CTX_init ();
12318 int
12319 main ()
12320 {
12321 return HMAC_CTX_init ();
12322 ;
12323 return 0;
12324 }
12325 _ACEOF
12326 if ac_fn_c_try_link "$LINENO"; then :
12327 ac_cv_lib_crypto_HMAC_CTX_init=yes
12328 else
12329 ac_cv_lib_crypto_HMAC_CTX_init=no
12330 fi
12331 rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
12336 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
12337 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
12338 cat >>confdefs.h <<_ACEOF
12339 #define HAVE_LIBCRYPTO 1
12340 _ACEOF
12341
12342 LIBS="-lcrypto $LIBS"
12343
12344 fi
12345
12346 CRYPTO_LIBS="${LIBS}"
12347 LIBS="${saved_LIBS}"
12348
12349
12350 # Check whether --enable-developer-warnings was given.
12351 if test "${enable_developer_warnings+set}" = set; then :
12352 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra"
12353 fi
12354
12355 # Check whether --enable-debugging-symbols was given.
12356 if test "${enable_debugging_symbols+set}" = set; then :
12357 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
12358 fi
12359
12360 # Check whether --enable-werror was given.
12361 if test "${enable_werror+set}" = set; then :
12362 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
12363 fi
12364
12365
12366 ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_unix/Makefile t/Makefile"
12367
12368 ac_config_files="$ac_config_files pamgdb"
12369
12370 ac_config_files="$ac_config_files mkpkgng"
12371
12372 cat >confcache <<\_ACEOF
12373 # This file is a shell script that caches the results of configure
12374 # tests run on this system so they can be shared between configure
12375 # scripts and configure runs, see configure's option --config-cache.
12376 # It is not useful on other systems. If it contains results you don't
12377 # want to keep, you may remove or edit it.
12378 #
12379 # config.status only pays attention to the cache file if you give it
12380 # the --recheck option to rerun configure.
12381 #
12382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12384 # following values.
12385
12386 _ACEOF
12387
12388 # The following way of writing the cache mishandles newlines in values,
12389 # but we know of no workaround that is simple, portable, and efficient.
12390 # So, we kill variables containing newlines.
12391 # Ultrix sh set writes to stderr and can't be redirected directly,
12392 # and sets the high bit in the cache file unless we assign to the vars.
12393 (
12394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12395 eval ac_val=\$$ac_var
12396 case $ac_val in #(
12397 *${as_nl}*)
12398 case $ac_var in #(
12399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12400 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12401 esac
12402 case $ac_var in #(
12403 _ | IFS | as_nl) ;; #(
12404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12405 *) { eval $ac_var=; unset $ac_var;} ;;
12406 esac ;;
12407 esac
12408 done
12409
12410 (set) 2>&1 |
12411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12412 *${as_nl}ac_space=\ *)
12413 # `set' does not quote correctly, so add quotes: double-quote
12414 # substitution turns \\\\ into \\, and sed turns \\ into \.
12415 sed -n \
12416 "s/'/'\\\\''/g;
12417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12418 ;; #(
12419 *)
12420 # `set' quotes correctly as required by POSIX, so do not add quotes.
12421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12422 ;;
12423 esac |
12424 sort
12425 ) |
12426 sed '
12427 /^ac_cv_env_/b end
12428 t clear
12429 :clear
12430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12431 t end
12432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12433 :end' >>confcache
12434 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12435 if test -w "$cache_file"; then
12436 if test "x$cache_file" != "x/dev/null"; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12438 $as_echo "$as_me: updating cache $cache_file" >&6;}
12439 if test ! -f "$cache_file" || test -h "$cache_file"; then
12440 cat confcache >"$cache_file"
12441 else
12442 case $cache_file in #(
12443 */* | ?:*)
12444 mv -f confcache "$cache_file"$$ &&
12445 mv -f "$cache_file"$$ "$cache_file" ;; #(
12446 *)
12447 mv -f confcache "$cache_file" ;;
12448 esac
12449 fi
12450 fi
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12453 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12454 fi
12455 fi
12456 rm -f confcache
12457
12458 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12459 # Let make expand exec_prefix.
12460 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12461
12462 DEFS=-DHAVE_CONFIG_H
12463
12464 ac_libobjs=
12465 ac_ltlibobjs=
12466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12467 # 1. Remove the extension, and $U if already installed.
12468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12469 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12471 # will be set to the directory where LIBOBJS objects are built.
12472 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12473 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12474 done
12475 LIBOBJS=$ac_libobjs
12476
12477 LTLIBOBJS=$ac_ltlibobjs
12478
12479
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12481 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12482 if test -n "$am_sleep_pid"; then
12483 # Hide warnings about reused PIDs.
12484 wait $am_sleep_pid 2>/dev/null
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12487 $as_echo "done" >&6; }
12488 if test -n "$EXEEXT"; then
12489 am__EXEEXT_TRUE=
12490 am__EXEEXT_FALSE='#'
12491 else
12492 am__EXEEXT_TRUE='#'
12493 am__EXEEXT_FALSE=
12494 fi
12495
12496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12497 as_fn_error $? "conditional \"AMDEP\" was never defined.
12498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12499 fi
12500 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12501 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12503 fi
12504 if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
12505 as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
12506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12507 fi
12508 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
12509 as_fn_error $? "conditional \"WITH_DOC\" was never defined.
12510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12511 fi
12512 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
12513 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
12514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12515 fi
12516 if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
12517 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
12518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12519 fi
12520 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
12521 as_fn_error $? "conditional \"WITH_SU\" was never defined.
12522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12523 fi
12524
12525 : "${CONFIG_STATUS=./config.status}"
12526 ac_write_fail=0
12527 ac_clean_files_save=$ac_clean_files
12528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12530 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12531 as_write_fail=0
12532 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12533 #! $SHELL
12534 # Generated by $as_me.
12535 # Run this file to recreate the current configuration.
12536 # Compiler output produced by configure, useful for debugging
12537 # configure, is in config.log if it exists.
12538
12539 debug=false
12540 ac_cs_recheck=false
12541 ac_cs_silent=false
12542
12543 SHELL=\${CONFIG_SHELL-$SHELL}
12544 export SHELL
12545 _ASEOF
12546 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12547 ## -------------------- ##
12548 ## M4sh Initialization. ##
12549 ## -------------------- ##
12550
12551 # Be more Bourne compatible
12552 DUALCASE=1; export DUALCASE # for MKS sh
12553 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12554 emulate sh
12555 NULLCMD=:
12556 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12557 # is contrary to our usage. Disable this feature.
12558 alias -g '${1+"$@"}'='"$@"'
12559 setopt NO_GLOB_SUBST
12560 else
12561 case `(set -o) 2>/dev/null` in #(
12562 *posix*) :
12563 set -o posix ;; #(
12564 *) :
12565 ;;
12566 esac
12567 fi
12568
12569
12570 as_nl='
12571 '
12572 export as_nl
12573 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12574 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12577 # Prefer a ksh shell builtin over an external printf program on Solaris,
12578 # but without wasting forks for bash or zsh.
12579 if test -z "$BASH_VERSION$ZSH_VERSION" \
12580 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12581 as_echo='print -r --'
12582 as_echo_n='print -rn --'
12583 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12584 as_echo='printf %s\n'
12585 as_echo_n='printf %s'
12586 else
12587 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12588 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12589 as_echo_n='/usr/ucb/echo -n'
12590 else
12591 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12592 as_echo_n_body='eval
12593 arg=$1;
12594 case $arg in #(
12595 *"$as_nl"*)
12596 expr "X$arg" : "X\\(.*\\)$as_nl";
12597 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12598 esac;
12599 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12600 '
12601 export as_echo_n_body
12602 as_echo_n='sh -c $as_echo_n_body as_echo'
12603 fi
12604 export as_echo_body
12605 as_echo='sh -c $as_echo_body as_echo'
12606 fi
12607
12608 # The user is always right.
12609 if test "${PATH_SEPARATOR+set}" != set; then
12610 PATH_SEPARATOR=:
12611 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12612 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12613 PATH_SEPARATOR=';'
12614 }
12615 fi
12616
12617
12618 # IFS
12619 # We need space, tab and new line, in precisely that order. Quoting is
12620 # there to prevent editors from complaining about space-tab.
12621 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12622 # splitting by setting IFS to empty value.)
12623 IFS=" "" $as_nl"
12624
12625 # Find who we are. Look in the path if we contain no directory separator.
12626 as_myself=
12627 case $0 in #((
12628 *[\\/]* ) as_myself=$0 ;;
12629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12631 do
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
12634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12635 done
12636 IFS=$as_save_IFS
12637
12638 ;;
12639 esac
12640 # We did not find ourselves, most probably we were run as `sh COMMAND'
12641 # in which case we are not to be found in the path.
12642 if test "x$as_myself" = x; then
12643 as_myself=$0
12644 fi
12645 if test ! -f "$as_myself"; then
12646 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12647 exit 1
12648 fi
12649
12650 # Unset variables that we do not need and which cause bugs (e.g. in
12651 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12652 # suppresses any "Segmentation fault" message there. '((' could
12653 # trigger a bug in pdksh 5.2.14.
12654 for as_var in BASH_ENV ENV MAIL MAILPATH
12655 do eval test x\${$as_var+set} = xset \
12656 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12657 done
12658 PS1='$ '
12659 PS2='> '
12660 PS4='+ '
12661
12662 # NLS nuisances.
12663 LC_ALL=C
12664 export LC_ALL
12665 LANGUAGE=C
12666 export LANGUAGE
12667
12668 # CDPATH.
12669 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12670
12671
12672 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12673 # ----------------------------------------
12674 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12675 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12676 # script with STATUS, using 1 if that was 0.
12677 as_fn_error ()
12678 {
12679 as_status=$1; test $as_status -eq 0 && as_status=1
12680 if test "$4"; then
12681 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12682 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12683 fi
12684 $as_echo "$as_me: error: $2" >&2
12685 as_fn_exit $as_status
12686 } # as_fn_error
12687
12688
12689 # as_fn_set_status STATUS
12690 # -----------------------
12691 # Set $? to STATUS, without forking.
12692 as_fn_set_status ()
12693 {
12694 return $1
12695 } # as_fn_set_status
12696
12697 # as_fn_exit STATUS
12698 # -----------------
12699 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12700 as_fn_exit ()
12701 {
12702 set +e
12703 as_fn_set_status $1
12704 exit $1
12705 } # as_fn_exit
12706
12707 # as_fn_unset VAR
12708 # ---------------
12709 # Portably unset VAR.
12710 as_fn_unset ()
12711 {
12712 { eval $1=; unset $1;}
12713 }
12714 as_unset=as_fn_unset
12715 # as_fn_append VAR VALUE
12716 # ----------------------
12717 # Append the text in VALUE to the end of the definition contained in VAR. Take
12718 # advantage of any shell optimizations that allow amortized linear growth over
12719 # repeated appends, instead of the typical quadratic growth present in naive
12720 # implementations.
12721 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12722 eval 'as_fn_append ()
12723 {
12724 eval $1+=\$2
12725 }'
12726 else
12727 as_fn_append ()
12728 {
12729 eval $1=\$$1\$2
12730 }
12731 fi # as_fn_append
12732
12733 # as_fn_arith ARG...
12734 # ------------------
12735 # Perform arithmetic evaluation on the ARGs, and store the result in the
12736 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12737 # must be portable across $(()) and expr.
12738 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12739 eval 'as_fn_arith ()
12740 {
12741 as_val=$(( $* ))
12742 }'
12743 else
12744 as_fn_arith ()
12745 {
12746 as_val=`expr "$@" || test $? -eq 1`
12747 }
12748 fi # as_fn_arith
12749
12750
12751 if expr a : '\(a\)' >/dev/null 2>&1 &&
12752 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12753 as_expr=expr
12754 else
12755 as_expr=false
12756 fi
12757
12758 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12759 as_basename=basename
12760 else
12761 as_basename=false
12762 fi
12763
12764 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12765 as_dirname=dirname
12766 else
12767 as_dirname=false
12768 fi
12769
12770 as_me=`$as_basename -- "$0" ||
12771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12772 X"$0" : 'X\(//\)$' \| \
12773 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12774 $as_echo X/"$0" |
12775 sed '/^.*\/\([^/][^/]*\)\/*$/{
12776 s//\1/
12777 q
12778 }
12779 /^X\/\(\/\/\)$/{
12780 s//\1/
12781 q
12782 }
12783 /^X\/\(\/\).*/{
12784 s//\1/
12785 q
12786 }
12787 s/.*/./; q'`
12788
12789 # Avoid depending upon Character Ranges.
12790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12793 as_cr_digits='0123456789'
12794 as_cr_alnum=$as_cr_Letters$as_cr_digits
12795
12796 ECHO_C= ECHO_N= ECHO_T=
12797 case `echo -n x` in #(((((
12798 -n*)
12799 case `echo 'xy\c'` in
12800 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12801 xy) ECHO_C='\c';;
12802 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12803 ECHO_T=' ';;
12804 esac;;
12805 *)
12806 ECHO_N='-n';;
12807 esac
12808
12809 rm -f conf$$ conf$$.exe conf$$.file
12810 if test -d conf$$.dir; then
12811 rm -f conf$$.dir/conf$$.file
12812 else
12813 rm -f conf$$.dir
12814 mkdir conf$$.dir 2>/dev/null
12815 fi
12816 if (echo >conf$$.file) 2>/dev/null; then
12817 if ln -s conf$$.file conf$$ 2>/dev/null; then
12818 as_ln_s='ln -s'
12819 # ... but there are two gotchas:
12820 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12821 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12822 # In both cases, we have to default to `cp -pR'.
12823 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12824 as_ln_s='cp -pR'
12825 elif ln conf$$.file conf$$ 2>/dev/null; then
12826 as_ln_s=ln
12827 else
12828 as_ln_s='cp -pR'
12829 fi
12830 else
12831 as_ln_s='cp -pR'
12832 fi
12833 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12834 rmdir conf$$.dir 2>/dev/null
12835
12836
12837 # as_fn_mkdir_p
12838 # -------------
12839 # Create "$as_dir" as a directory, including parents if necessary.
12840 as_fn_mkdir_p ()
12841 {
12842
12843 case $as_dir in #(
12844 -*) as_dir=./$as_dir;;
12845 esac
12846 test -d "$as_dir" || eval $as_mkdir_p || {
12847 as_dirs=
12848 while :; do
12849 case $as_dir in #(
12850 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12851 *) as_qdir=$as_dir;;
12852 esac
12853 as_dirs="'$as_qdir' $as_dirs"
12854 as_dir=`$as_dirname -- "$as_dir" ||
12855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12856 X"$as_dir" : 'X\(//\)[^/]' \| \
12857 X"$as_dir" : 'X\(//\)$' \| \
12858 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12859 $as_echo X"$as_dir" |
12860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12861 s//\1/
12862 q
12863 }
12864 /^X\(\/\/\)[^/].*/{
12865 s//\1/
12866 q
12867 }
12868 /^X\(\/\/\)$/{
12869 s//\1/
12870 q
12871 }
12872 /^X\(\/\).*/{
12873 s//\1/
12874 q
12875 }
12876 s/.*/./; q'`
12877 test -d "$as_dir" && break
12878 done
12879 test -z "$as_dirs" || eval "mkdir $as_dirs"
12880 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12881
12882
12883 } # as_fn_mkdir_p
12884 if mkdir -p . 2>/dev/null; then
12885 as_mkdir_p='mkdir -p "$as_dir"'
12886 else
12887 test -d ./-p && rmdir ./-p
12888 as_mkdir_p=false
12889 fi
12890
12891
12892 # as_fn_executable_p FILE
12893 # -----------------------
12894 # Test if FILE is an executable regular file.
12895 as_fn_executable_p ()
12896 {
12897 test -f "$1" && test -x "$1"
12898 } # as_fn_executable_p
12899 as_test_x='test -x'
12900 as_executable_p=as_fn_executable_p
12901
12902 # Sed expression to map a string onto a valid CPP name.
12903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12904
12905 # Sed expression to map a string onto a valid variable name.
12906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12907
12908
12909 exec 6>&1
12910 ## ----------------------------------- ##
12911 ## Main body of $CONFIG_STATUS script. ##
12912 ## ----------------------------------- ##
12913 _ASEOF
12914 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12915
12916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12917 # Save the log message, to keep $0 and so on meaningful, and to
12918 # report actual input values of CONFIG_FILES etc. instead of their
12919 # values after options handling.
12920 ac_log="
12921 This file was extended by OpenPAM $as_me 20130907, which was
12922 generated by GNU Autoconf 2.69. Invocation command line was
12923
12924 CONFIG_FILES = $CONFIG_FILES
12925 CONFIG_HEADERS = $CONFIG_HEADERS
12926 CONFIG_LINKS = $CONFIG_LINKS
12927 CONFIG_COMMANDS = $CONFIG_COMMANDS
12928 $ $0 $@
12929
12930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12931 "
12932
12933 _ACEOF
12934
12935 case $ac_config_files in *"
12936 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12937 esac
12938
12939 case $ac_config_headers in *"
12940 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12941 esac
12942
12943
12944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12945 # Files that config.status was made for.
12946 config_files="$ac_config_files"
12947 config_headers="$ac_config_headers"
12948 config_commands="$ac_config_commands"
12949
12950 _ACEOF
12951
12952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12953 ac_cs_usage="\
12954 \`$as_me' instantiates files and other configuration actions
12955 from templates according to the current configuration. Unless the files
12956 and actions are specified as TAGs, all are instantiated by default.
12957
12958 Usage: $0 [OPTION]... [TAG]...
12959
12960 -h, --help print this help, then exit
12961 -V, --version print version number and configuration settings, then exit
12962 --config print configuration, then exit
12963 -q, --quiet, --silent
12964 do not print progress messages
12965 -d, --debug don't remove temporary files
12966 --recheck update $as_me by reconfiguring in the same conditions
12967 --file=FILE[:TEMPLATE]
12968 instantiate the configuration file FILE
12969 --header=FILE[:TEMPLATE]
12970 instantiate the configuration header FILE
12971
12972 Configuration files:
12973 $config_files
12974
12975 Configuration headers:
12976 $config_headers
12977
12978 Configuration commands:
12979 $config_commands
12980
12981 Report bugs to <des@des.no>.
12982 OpenPAM home page: <http://www.openpam.org/>."
12983
12984 _ACEOF
12985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12986 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12987 ac_cs_version="\\
12988 OpenPAM config.status 20130907
12989 configured by $0, generated by GNU Autoconf 2.69,
12990 with options \\"\$ac_cs_config\\"
12991
12992 Copyright (C) 2012 Free Software Foundation, Inc.
12993 This config.status script is free software; the Free Software Foundation
12994 gives unlimited permission to copy, distribute and modify it."
12995
12996 ac_pwd='$ac_pwd'
12997 srcdir='$srcdir'
12998 INSTALL='$INSTALL'
12999 MKDIR_P='$MKDIR_P'
13000 AWK='$AWK'
13001 test -n "\$AWK" || AWK=awk
13002 _ACEOF
13003
13004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13005 # The default lists apply if the user does not specify any file.
13006 ac_need_defaults=:
13007 while test $# != 0
13008 do
13009 case $1 in
13010 --*=?*)
13011 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13012 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13013 ac_shift=:
13014 ;;
13015 --*=)
13016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13017 ac_optarg=
13018 ac_shift=:
13019 ;;
13020 *)
13021 ac_option=$1
13022 ac_optarg=$2
13023 ac_shift=shift
13024 ;;
13025 esac
13026
13027 case $ac_option in
13028 # Handling of the options.
13029 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13030 ac_cs_recheck=: ;;
13031 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13032 $as_echo "$ac_cs_version"; exit ;;
13033 --config | --confi | --conf | --con | --co | --c )
13034 $as_echo "$ac_cs_config"; exit ;;
13035 --debug | --debu | --deb | --de | --d | -d )
13036 debug=: ;;
13037 --file | --fil | --fi | --f )
13038 $ac_shift
13039 case $ac_optarg in
13040 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13041 '') as_fn_error $? "missing file argument" ;;
13042 esac
13043 as_fn_append CONFIG_FILES " '$ac_optarg'"
13044 ac_need_defaults=false;;
13045 --header | --heade | --head | --hea )
13046 $ac_shift
13047 case $ac_optarg in
13048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13049 esac
13050 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13051 ac_need_defaults=false;;
13052 --he | --h)
13053 # Conflict between --help and --header
13054 as_fn_error $? "ambiguous option: \`$1'
13055 Try \`$0 --help' for more information.";;
13056 --help | --hel | -h )
13057 $as_echo "$ac_cs_usage"; exit ;;
13058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13060 ac_cs_silent=: ;;
13061
13062 # This is an error.
13063 -*) as_fn_error $? "unrecognized option: \`$1'
13064 Try \`$0 --help' for more information." ;;
13065
13066 *) as_fn_append ac_config_targets " $1"
13067 ac_need_defaults=false ;;
13068
13069 esac
13070 shift
13071 done
13072
13073 ac_configure_extra_args=
13074
13075 if $ac_cs_silent; then
13076 exec 6>/dev/null
13077 ac_configure_extra_args="$ac_configure_extra_args --silent"
13078 fi
13079
13080 _ACEOF
13081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13082 if \$ac_cs_recheck; then
13083 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13084 shift
13085 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13086 CONFIG_SHELL='$SHELL'
13087 export CONFIG_SHELL
13088 exec "\$@"
13089 fi
13090
13091 _ACEOF
13092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13093 exec 5>>config.log
13094 {
13095 echo
13096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13097 ## Running $as_me. ##
13098 _ASBOX
13099 $as_echo "$ac_log"
13100 } >&5
13101
13102 _ACEOF
13103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13104 #
13105 # INIT-COMMANDS
13106 #
13107 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13108
13109
13110 # The HP-UX ksh and POSIX shell print the target directory to stdout
13111 # if CDPATH is set.
13112 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13113
13114 sed_quote_subst='$sed_quote_subst'
13115 double_quote_subst='$double_quote_subst'
13116 delay_variable_subst='$delay_variable_subst'
13117 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13118 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13119 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13120 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13121 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13122 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13123 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13124 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13125 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13126 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13127 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13128 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13129 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13130 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13131 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13132 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13133 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13134 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13135 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13136 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13137 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13138 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13139 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13140 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13141 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13142 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13143 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13144 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13145 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13146 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13147 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13148 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13149 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13150 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13151 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13152 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13153 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13154 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13155 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13156 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13157 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13158 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13159 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13160 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13161 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13162 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13163 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13164 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13165 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13166 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13167 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13168 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13169 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13170 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13171 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13172 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13173 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"`'
13174 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13175 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13176 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13177 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13178 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13179 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13180 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13181 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13182 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13183 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13184 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13185 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13186 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13187 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13188 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13189 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13190 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13191 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13192 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13193 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13194 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13195 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13196 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13197 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13198 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13199 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13200 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13201 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13202 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13203 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13204 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13205 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13206 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13207 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13208 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13209 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13210 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13211 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13212 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13213 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13214 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13215 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13216 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13217 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13218 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13219 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13220 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13221 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13222 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13223 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13224 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13225 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13226 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13227 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13228 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13229 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13230 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13231 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13232 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13233 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13234 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13235 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13236 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13237 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13238 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13239 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13240 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13241 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13242 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13243 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13244 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13245 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13246 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13247
13248 LTCC='$LTCC'
13249 LTCFLAGS='$LTCFLAGS'
13250 compiler='$compiler_DEFAULT'
13251
13252 # A function that is used when there is no print builtin or printf.
13253 func_fallback_echo ()
13254 {
13255 eval 'cat <<_LTECHO_EOF
13256 \$1
13257 _LTECHO_EOF'
13258 }
13259
13260 # Quote evaled strings.
13261 for var in SHELL \
13262 ECHO \
13263 PATH_SEPARATOR \
13264 SED \
13265 GREP \
13266 EGREP \
13267 FGREP \
13268 LD \
13269 NM \
13270 LN_S \
13271 lt_SP2NL \
13272 lt_NL2SP \
13273 reload_flag \
13274 OBJDUMP \
13275 deplibs_check_method \
13276 file_magic_cmd \
13277 file_magic_glob \
13278 want_nocaseglob \
13279 DLLTOOL \
13280 sharedlib_from_linklib_cmd \
13281 AR \
13282 AR_FLAGS \
13283 archiver_list_spec \
13284 STRIP \
13285 RANLIB \
13286 CC \
13287 CFLAGS \
13288 compiler \
13289 lt_cv_sys_global_symbol_pipe \
13290 lt_cv_sys_global_symbol_to_cdecl \
13291 lt_cv_sys_global_symbol_to_c_name_address \
13292 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13293 nm_file_list_spec \
13294 lt_prog_compiler_no_builtin_flag \
13295 lt_prog_compiler_pic \
13296 lt_prog_compiler_wl \
13297 lt_prog_compiler_static \
13298 lt_cv_prog_compiler_c_o \
13299 need_locks \
13300 MANIFEST_TOOL \
13301 DSYMUTIL \
13302 NMEDIT \
13303 LIPO \
13304 OTOOL \
13305 OTOOL64 \
13306 shrext_cmds \
13307 export_dynamic_flag_spec \
13308 whole_archive_flag_spec \
13309 compiler_needs_object \
13310 with_gnu_ld \
13311 allow_undefined_flag \
13312 no_undefined_flag \
13313 hardcode_libdir_flag_spec \
13314 hardcode_libdir_separator \
13315 exclude_expsyms \
13316 include_expsyms \
13317 file_list_spec \
13318 variables_saved_for_relink \
13319 libname_spec \
13320 library_names_spec \
13321 soname_spec \
13322 install_override_mode \
13323 finish_eval \
13324 old_striplib \
13325 striplib; do
13326 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13327 *[\\\\\\\`\\"\\\$]*)
13328 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13329 ;;
13330 *)
13331 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13332 ;;
13333 esac
13334 done
13335
13336 # Double-quote double-evaled strings.
13337 for var in reload_cmds \
13338 old_postinstall_cmds \
13339 old_postuninstall_cmds \
13340 old_archive_cmds \
13341 extract_expsyms_cmds \
13342 old_archive_from_new_cmds \
13343 old_archive_from_expsyms_cmds \
13344 archive_cmds \
13345 archive_expsym_cmds \
13346 module_cmds \
13347 module_expsym_cmds \
13348 export_symbols_cmds \
13349 prelink_cmds \
13350 postlink_cmds \
13351 postinstall_cmds \
13352 postuninstall_cmds \
13353 finish_cmds \
13354 sys_lib_search_path_spec \
13355 sys_lib_dlsearch_path_spec; do
13356 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13357 *[\\\\\\\`\\"\\\$]*)
13358 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13359 ;;
13360 *)
13361 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13362 ;;
13363 esac
13364 done
13365
13366 ac_aux_dir='$ac_aux_dir'
13367 xsi_shell='$xsi_shell'
13368 lt_shell_append='$lt_shell_append'
13369
13370 # See if we are running on zsh, and set the options which allow our
13371 # commands through without removal of \ escapes INIT.
13372 if test -n "\${ZSH_VERSION+set}" ; then
13373 setopt NO_GLOB_SUBST
13374 fi
13375
13376
13377 PACKAGE='$PACKAGE'
13378 VERSION='$VERSION'
13379 TIMESTAMP='$TIMESTAMP'
13380 RM='$RM'
13381 ofile='$ofile'
13382
13383
13384
13385
13386 _ACEOF
13387
13388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13389
13390 # Handling of arguments.
13391 for ac_config_target in $ac_config_targets
13392 do
13393 case $ac_config_target in
13394 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13395 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13396 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13397 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13398 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13399 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
13400 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
13401 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
13402 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13403 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13404 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13405 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
13406 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13407 "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
13408 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13409 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
13410 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
13411 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
13412 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
13413 "pamgdb") CONFIG_FILES="$CONFIG_FILES pamgdb" ;;
13414 "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;;
13415
13416 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13417 esac
13418 done
13419
13420
13421 # If the user did not use the arguments to specify the items to instantiate,
13422 # then the envvar interface is used. Set only those that are not.
13423 # We use the long form for the default assignment because of an extremely
13424 # bizarre bug on SunOS 4.1.3.
13425 if $ac_need_defaults; then
13426 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13427 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13428 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13429 fi
13430
13431 # Have a temporary directory for convenience. Make it in the build tree
13432 # simply because there is no reason against having it here, and in addition,
13433 # creating and moving files from /tmp can sometimes cause problems.
13434 # Hook for its removal unless debugging.
13435 # Note that there is a small window in which the directory will not be cleaned:
13436 # after its creation but before its name has been assigned to `$tmp'.
13437 $debug ||
13438 {
13439 tmp= ac_tmp=
13440 trap 'exit_status=$?
13441 : "${ac_tmp:=$tmp}"
13442 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13443 ' 0
13444 trap 'as_fn_exit 1' 1 2 13 15
13445 }
13446 # Create a (secure) tmp directory for tmp files.
13447
13448 {
13449 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13450 test -d "$tmp"
13451 } ||
13452 {
13453 tmp=./conf$$-$RANDOM
13454 (umask 077 && mkdir "$tmp")
13455 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13456 ac_tmp=$tmp
13457
13458 # Set up the scripts for CONFIG_FILES section.
13459 # No need to generate them if there are no CONFIG_FILES.
13460 # This happens for instance with `./config.status config.h'.
13461 if test -n "$CONFIG_FILES"; then
13462
13463
13464 ac_cr=`echo X | tr X '\015'`
13465 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13466 # But we know of no other shell where ac_cr would be empty at this
13467 # point, so we can use a bashism as a fallback.
13468 if test "x$ac_cr" = x; then
13469 eval ac_cr=\$\'\\r\'
13470 fi
13471 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13472 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13473 ac_cs_awk_cr='\\r'
13474 else
13475 ac_cs_awk_cr=$ac_cr
13476 fi
13477
13478 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13479 _ACEOF
13480
13481
13482 {
13483 echo "cat >conf$$subs.awk <<_ACEOF" &&
13484 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13485 echo "_ACEOF"
13486 } >conf$$subs.sh ||
13487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13488 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13489 ac_delim='%!_!# '
13490 for ac_last_try in false false false false false :; do
13491 . ./conf$$subs.sh ||
13492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13493
13494 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13495 if test $ac_delim_n = $ac_delim_num; then
13496 break
13497 elif $ac_last_try; then
13498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13499 else
13500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13501 fi
13502 done
13503 rm -f conf$$subs.sh
13504
13505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13506 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13507 _ACEOF
13508 sed -n '
13509 h
13510 s/^/S["/; s/!.*/"]=/
13511 p
13512 g
13513 s/^[^!]*!//
13514 :repl
13515 t repl
13516 s/'"$ac_delim"'$//
13517 t delim
13518 :nl
13519 h
13520 s/\(.\{148\}\)..*/\1/
13521 t more1
13522 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13523 p
13524 n
13525 b repl
13526 :more1
13527 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13528 p
13529 g
13530 s/.\{148\}//
13531 t nl
13532 :delim
13533 h
13534 s/\(.\{148\}\)..*/\1/
13535 t more2
13536 s/["\\]/\\&/g; s/^/"/; s/$/"/
13537 p
13538 b
13539 :more2
13540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13541 p
13542 g
13543 s/.\{148\}//
13544 t delim
13545 ' <conf$$subs.awk | sed '
13546 /^[^""]/{
13547 N
13548 s/\n//
13549 }
13550 ' >>$CONFIG_STATUS || ac_write_fail=1
13551 rm -f conf$$subs.awk
13552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13553 _ACAWK
13554 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13555 for (key in S) S_is_set[key] = 1
13556 FS = ""
13557
13558 }
13559 {
13560 line = $ 0
13561 nfields = split(line, field, "@")
13562 substed = 0
13563 len = length(field[1])
13564 for (i = 2; i < nfields; i++) {
13565 key = field[i]
13566 keylen = length(key)
13567 if (S_is_set[key]) {
13568 value = S[key]
13569 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13570 len += length(value) + length(field[++i])
13571 substed = 1
13572 } else
13573 len += 1 + keylen
13574 }
13575
13576 print line
13577 }
13578
13579 _ACAWK
13580 _ACEOF
13581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13582 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13583 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13584 else
13585 cat
13586 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13587 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13588 _ACEOF
13589
13590 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13591 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13592 # trailing colons and then remove the whole line if VPATH becomes empty
13593 # (actually we leave an empty line to preserve line numbers).
13594 if test "x$srcdir" = x.; then
13595 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13596 h
13597 s///
13598 s/^/:/
13599 s/[ ]*$/:/
13600 s/:\$(srcdir):/:/g
13601 s/:\${srcdir}:/:/g
13602 s/:@srcdir@:/:/g
13603 s/^:*//
13604 s/:*$//
13605 x
13606 s/\(=[ ]*\).*/\1/
13607 G
13608 s/\n//
13609 s/^[^=]*=[ ]*$//
13610 }'
13611 fi
13612
13613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13614 fi # test -n "$CONFIG_FILES"
13615
13616 # Set up the scripts for CONFIG_HEADERS section.
13617 # No need to generate them if there are no CONFIG_HEADERS.
13618 # This happens for instance with `./config.status Makefile'.
13619 if test -n "$CONFIG_HEADERS"; then
13620 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13621 BEGIN {
13622 _ACEOF
13623
13624 # Transform confdefs.h into an awk script `defines.awk', embedded as
13625 # here-document in config.status, that substitutes the proper values into
13626 # config.h.in to produce config.h.
13627
13628 # Create a delimiter string that does not exist in confdefs.h, to ease
13629 # handling of long lines.
13630 ac_delim='%!_!# '
13631 for ac_last_try in false false :; do
13632 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13633 if test -z "$ac_tt"; then
13634 break
13635 elif $ac_last_try; then
13636 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13637 else
13638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13639 fi
13640 done
13641
13642 # For the awk script, D is an array of macro values keyed by name,
13643 # likewise P contains macro parameters if any. Preserve backslash
13644 # newline sequences.
13645
13646 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13647 sed -n '
13648 s/.\{148\}/&'"$ac_delim"'/g
13649 t rset
13650 :rset
13651 s/^[ ]*#[ ]*define[ ][ ]*/ /
13652 t def
13653 d
13654 :def
13655 s/\\$//
13656 t bsnl
13657 s/["\\]/\\&/g
13658 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13659 D["\1"]=" \3"/p
13660 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13661 d
13662 :bsnl
13663 s/["\\]/\\&/g
13664 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13665 D["\1"]=" \3\\\\\\n"\\/p
13666 t cont
13667 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13668 t cont
13669 d
13670 :cont
13671 n
13672 s/.\{148\}/&'"$ac_delim"'/g
13673 t clear
13674 :clear
13675 s/\\$//
13676 t bsnlc
13677 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13678 d
13679 :bsnlc
13680 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13681 b cont
13682 ' <confdefs.h | sed '
13683 s/'"$ac_delim"'/"\\\
13684 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13685
13686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13687 for (key in D) D_is_set[key] = 1
13688 FS = ""
13689 }
13690 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13691 line = \$ 0
13692 split(line, arg, " ")
13693 if (arg[1] == "#") {
13694 defundef = arg[2]
13695 mac1 = arg[3]
13696 } else {
13697 defundef = substr(arg[1], 2)
13698 mac1 = arg[2]
13699 }
13700 split(mac1, mac2, "(") #)
13701 macro = mac2[1]
13702 prefix = substr(line, 1, index(line, defundef) - 1)
13703 if (D_is_set[macro]) {
13704 # Preserve the white space surrounding the "#".
13705 print prefix "define", macro P[macro] D[macro]
13706 next
13707 } else {
13708 # Replace #undef with comments. This is necessary, for example,
13709 # in the case of _POSIX_SOURCE, which is predefined and required
13710 # on some systems where configure will not decide to define it.
13711 if (defundef == "undef") {
13712 print "/*", prefix defundef, macro, "*/"
13713 next
13714 }
13715 }
13716 }
13717 { print }
13718 _ACAWK
13719 _ACEOF
13720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13721 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13722 fi # test -n "$CONFIG_HEADERS"
13723
13724
13725 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13726 shift
13727 for ac_tag
13728 do
13729 case $ac_tag in
13730 :[FHLC]) ac_mode=$ac_tag; continue;;
13731 esac
13732 case $ac_mode$ac_tag in
13733 :[FHL]*:*);;
13734 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13735 :[FH]-) ac_tag=-:-;;
13736 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13737 esac
13738 ac_save_IFS=$IFS
13739 IFS=:
13740 set x $ac_tag
13741 IFS=$ac_save_IFS
13742 shift
13743 ac_file=$1
13744 shift
13745
13746 case $ac_mode in
13747 :L) ac_source=$1;;
13748 :[FH])
13749 ac_file_inputs=
13750 for ac_f
13751 do
13752 case $ac_f in
13753 -) ac_f="$ac_tmp/stdin";;
13754 *) # Look for the file first in the build tree, then in the source tree
13755 # (if the path is not absolute). The absolute path cannot be DOS-style,
13756 # because $ac_f cannot contain `:'.
13757 test -f "$ac_f" ||
13758 case $ac_f in
13759 [\\/$]*) false;;
13760 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13761 esac ||
13762 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13763 esac
13764 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13765 as_fn_append ac_file_inputs " '$ac_f'"
13766 done
13767
13768 # Let's still pretend it is `configure' which instantiates (i.e., don't
13769 # use $as_me), people would be surprised to read:
13770 # /* config.h. Generated by config.status. */
13771 configure_input='Generated from '`
13772 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13773 `' by configure.'
13774 if test x"$ac_file" != x-; then
13775 configure_input="$ac_file. $configure_input"
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13777 $as_echo "$as_me: creating $ac_file" >&6;}
13778 fi
13779 # Neutralize special characters interpreted by sed in replacement strings.
13780 case $configure_input in #(
13781 *\&* | *\|* | *\\* )
13782 ac_sed_conf_input=`$as_echo "$configure_input" |
13783 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13784 *) ac_sed_conf_input=$configure_input;;
13785 esac
13786
13787 case $ac_tag in
13788 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13790 esac
13791 ;;
13792 esac
13793
13794 ac_dir=`$as_dirname -- "$ac_file" ||
13795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13796 X"$ac_file" : 'X\(//\)[^/]' \| \
13797 X"$ac_file" : 'X\(//\)$' \| \
13798 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13799 $as_echo X"$ac_file" |
13800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13801 s//\1/
13802 q
13803 }
13804 /^X\(\/\/\)[^/].*/{
13805 s//\1/
13806 q
13807 }
13808 /^X\(\/\/\)$/{
13809 s//\1/
13810 q
13811 }
13812 /^X\(\/\).*/{
13813 s//\1/
13814 q
13815 }
13816 s/.*/./; q'`
13817 as_dir="$ac_dir"; as_fn_mkdir_p
13818 ac_builddir=.
13819
13820 case "$ac_dir" in
13821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13822 *)
13823 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13824 # A ".." for each directory in $ac_dir_suffix.
13825 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13826 case $ac_top_builddir_sub in
13827 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13828 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13829 esac ;;
13830 esac
13831 ac_abs_top_builddir=$ac_pwd
13832 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13833 # for backward compatibility:
13834 ac_top_builddir=$ac_top_build_prefix
13835
13836 case $srcdir in
13837 .) # We are building in place.
13838 ac_srcdir=.
13839 ac_top_srcdir=$ac_top_builddir_sub
13840 ac_abs_top_srcdir=$ac_pwd ;;
13841 [\\/]* | ?:[\\/]* ) # Absolute name.
13842 ac_srcdir=$srcdir$ac_dir_suffix;
13843 ac_top_srcdir=$srcdir
13844 ac_abs_top_srcdir=$srcdir ;;
13845 *) # Relative name.
13846 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13847 ac_top_srcdir=$ac_top_build_prefix$srcdir
13848 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13849 esac
13850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13851
13852
13853 case $ac_mode in
13854 :F)
13855 #
13856 # CONFIG_FILE
13857 #
13858
13859 case $INSTALL in
13860 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13861 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13862 esac
13863 ac_MKDIR_P=$MKDIR_P
13864 case $MKDIR_P in
13865 [\\/$]* | ?:[\\/]* ) ;;
13866 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13867 esac
13868 _ACEOF
13869
13870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13871 # If the template does not know about datarootdir, expand it.
13872 # FIXME: This hack should be removed a few years after 2.60.
13873 ac_datarootdir_hack=; ac_datarootdir_seen=
13874 ac_sed_dataroot='
13875 /datarootdir/ {
13876 p
13877 q
13878 }
13879 /@datadir@/p
13880 /@docdir@/p
13881 /@infodir@/p
13882 /@localedir@/p
13883 /@mandir@/p'
13884 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13885 *datarootdir*) ac_datarootdir_seen=yes;;
13886 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13888 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13889 _ACEOF
13890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13891 ac_datarootdir_hack='
13892 s&@datadir@&$datadir&g
13893 s&@docdir@&$docdir&g
13894 s&@infodir@&$infodir&g
13895 s&@localedir@&$localedir&g
13896 s&@mandir@&$mandir&g
13897 s&\\\${datarootdir}&$datarootdir&g' ;;
13898 esac
13899 _ACEOF
13900
13901 # Neutralize VPATH when `$srcdir' = `.'.
13902 # Shell code in configure.ac might set extrasub.
13903 # FIXME: do we really want to maintain this feature?
13904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13905 ac_sed_extra="$ac_vpsub
13906 $extrasub
13907 _ACEOF
13908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13909 :t
13910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13911 s|@configure_input@|$ac_sed_conf_input|;t t
13912 s&@top_builddir@&$ac_top_builddir_sub&;t t
13913 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13914 s&@srcdir@&$ac_srcdir&;t t
13915 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13916 s&@top_srcdir@&$ac_top_srcdir&;t t
13917 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13918 s&@builddir@&$ac_builddir&;t t
13919 s&@abs_builddir@&$ac_abs_builddir&;t t
13920 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13921 s&@INSTALL@&$ac_INSTALL&;t t
13922 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13923 $ac_datarootdir_hack
13924 "
13925 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13926 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13927
13928 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13929 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13931 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13933 which seems to be undefined. Please make sure it is defined" >&5
13934 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13935 which seems to be undefined. Please make sure it is defined" >&2;}
13936
13937 rm -f "$ac_tmp/stdin"
13938 case $ac_file in
13939 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13940 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13941 esac \
13942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13943 ;;
13944 :H)
13945 #
13946 # CONFIG_HEADER
13947 #
13948 if test x"$ac_file" != x-; then
13949 {
13950 $as_echo "/* $configure_input */" \
13951 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13952 } >"$ac_tmp/config.h" \
13953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13954 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13956 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13957 else
13958 rm -f "$ac_file"
13959 mv "$ac_tmp/config.h" "$ac_file" \
13960 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13961 fi
13962 else
13963 $as_echo "/* $configure_input */" \
13964 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13965 || as_fn_error $? "could not create -" "$LINENO" 5
13966 fi
13967 # Compute "$ac_file"'s index in $config_headers.
13968 _am_arg="$ac_file"
13969 _am_stamp_count=1
13970 for _am_header in $config_headers :; do
13971 case $_am_header in
13972 $_am_arg | $_am_arg:* )
13973 break ;;
13974 * )
13975 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13976 esac
13977 done
13978 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13979 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13980 X"$_am_arg" : 'X\(//\)[^/]' \| \
13981 X"$_am_arg" : 'X\(//\)$' \| \
13982 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13983 $as_echo X"$_am_arg" |
13984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13985 s//\1/
13986 q
13987 }
13988 /^X\(\/\/\)[^/].*/{
13989 s//\1/
13990 q
13991 }
13992 /^X\(\/\/\)$/{
13993 s//\1/
13994 q
13995 }
13996 /^X\(\/\).*/{
13997 s//\1/
13998 q
13999 }
14000 s/.*/./; q'`/stamp-h$_am_stamp_count
14001 ;;
14002
14003 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14004 $as_echo "$as_me: executing $ac_file commands" >&6;}
14005 ;;
14006 esac
14007
14008
14009 case $ac_file$ac_mode in
14010 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14011 # Older Autoconf quotes --file arguments for eval, but not when files
14012 # are listed without --file. Let's play safe and only enable the eval
14013 # if we detect the quoting.
14014 case $CONFIG_FILES in
14015 *\'*) eval set x "$CONFIG_FILES" ;;
14016 *) set x $CONFIG_FILES ;;
14017 esac
14018 shift
14019 for mf
14020 do
14021 # Strip MF so we end up with the name of the file.
14022 mf=`echo "$mf" | sed -e 's/:.*$//'`
14023 # Check whether this is an Automake generated Makefile or not.
14024 # We used to match only the files named 'Makefile.in', but
14025 # some people rename them; so instead we look at the file content.
14026 # Grep'ing the first line is not enough: some people post-process
14027 # each Makefile.in and add a new line on top of each file to say so.
14028 # Grep'ing the whole file is not good either: AIX grep has a line
14029 # limit of 2048, but all sed's we know have understand at least 4000.
14030 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14031 dirpart=`$as_dirname -- "$mf" ||
14032 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033 X"$mf" : 'X\(//\)[^/]' \| \
14034 X"$mf" : 'X\(//\)$' \| \
14035 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14036 $as_echo X"$mf" |
14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14038 s//\1/
14039 q
14040 }
14041 /^X\(\/\/\)[^/].*/{
14042 s//\1/
14043 q
14044 }
14045 /^X\(\/\/\)$/{
14046 s//\1/
14047 q
14048 }
14049 /^X\(\/\).*/{
14050 s//\1/
14051 q
14052 }
14053 s/.*/./; q'`
14054 else
14055 continue
14056 fi
14057 # Extract the definition of DEPDIR, am__include, and am__quote
14058 # from the Makefile without running 'make'.
14059 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14060 test -z "$DEPDIR" && continue
14061 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14062 test -z "$am__include" && continue
14063 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14064 # Find all dependency output files, they are included files with
14065 # $(DEPDIR) in their names. We invoke sed twice because it is the
14066 # simplest approach to changing $(DEPDIR) to its actual value in the
14067 # expansion.
14068 for file in `sed -n "
14069 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14070 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14071 # Make sure the directory exists.
14072 test -f "$dirpart/$file" && continue
14073 fdir=`$as_dirname -- "$file" ||
14074 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14075 X"$file" : 'X\(//\)[^/]' \| \
14076 X"$file" : 'X\(//\)$' \| \
14077 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14078 $as_echo X"$file" |
14079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14080 s//\1/
14081 q
14082 }
14083 /^X\(\/\/\)[^/].*/{
14084 s//\1/
14085 q
14086 }
14087 /^X\(\/\/\)$/{
14088 s//\1/
14089 q
14090 }
14091 /^X\(\/\).*/{
14092 s//\1/
14093 q
14094 }
14095 s/.*/./; q'`
14096 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14097 # echo "creating $dirpart/$file"
14098 echo '# dummy' > "$dirpart/$file"
14099 done
14100 done
14101 }
14102 ;;
14103 "libtool":C)
14104
14105 # See if we are running on zsh, and set the options which allow our
14106 # commands through without removal of \ escapes.
14107 if test -n "${ZSH_VERSION+set}" ; then
14108 setopt NO_GLOB_SUBST
14109 fi
14110
14111 cfgfile="${ofile}T"
14112 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14113 $RM "$cfgfile"
14114
14115 cat <<_LT_EOF >> "$cfgfile"
14116 #! $SHELL
14117
14118 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14119 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14120 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14121 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14122 #
14123 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14124 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14125 # Foundation, Inc.
14126 # Written by Gordon Matzigkeit, 1996
14127 #
14128 # This file is part of GNU Libtool.
14129 #
14130 # GNU Libtool is free software; you can redistribute it and/or
14131 # modify it under the terms of the GNU General Public License as
14132 # published by the Free Software Foundation; either version 2 of
14133 # the License, or (at your option) any later version.
14134 #
14135 # As a special exception to the GNU General Public License,
14136 # if you distribute this file as part of a program or library that
14137 # is built using GNU Libtool, you may include this file under the
14138 # same distribution terms that you use for the rest of that program.
14139 #
14140 # GNU Libtool is distributed in the hope that it will be useful,
14141 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14142 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14143 # GNU General Public License for more details.
14144 #
14145 # You should have received a copy of the GNU General Public License
14146 # along with GNU Libtool; see the file COPYING. If not, a copy
14147 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14148 # obtained by writing to the Free Software Foundation, Inc.,
14149 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14150
14151
14152 # The names of the tagged configurations supported by this script.
14153 available_tags=""
14154
14155 # ### BEGIN LIBTOOL CONFIG
14156
14157 # Which release of libtool.m4 was used?
14158 macro_version=$macro_version
14159 macro_revision=$macro_revision
14160
14161 # Whether or not to build static libraries.
14162 build_old_libs=$enable_static
14163
14164 # Whether or not to build shared libraries.
14165 build_libtool_libs=$enable_shared
14166
14167 # What type of objects to build.
14168 pic_mode=$pic_mode
14169
14170 # Whether or not to optimize for fast installation.
14171 fast_install=$enable_fast_install
14172
14173 # Shell to use when invoking shell scripts.
14174 SHELL=$lt_SHELL
14175
14176 # An echo program that protects backslashes.
14177 ECHO=$lt_ECHO
14178
14179 # The PATH separator for the build system.
14180 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14181
14182 # The host system.
14183 host_alias=$host_alias
14184 host=$host
14185 host_os=$host_os
14186
14187 # The build system.
14188 build_alias=$build_alias
14189 build=$build
14190 build_os=$build_os
14191
14192 # A sed program that does not truncate output.
14193 SED=$lt_SED
14194
14195 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14196 Xsed="\$SED -e 1s/^X//"
14197
14198 # A grep program that handles long lines.
14199 GREP=$lt_GREP
14200
14201 # An ERE matcher.
14202 EGREP=$lt_EGREP
14203
14204 # A literal string matcher.
14205 FGREP=$lt_FGREP
14206
14207 # A BSD- or MS-compatible name lister.
14208 NM=$lt_NM
14209
14210 # Whether we need soft or hard links.
14211 LN_S=$lt_LN_S
14212
14213 # What is the maximum length of a command?
14214 max_cmd_len=$max_cmd_len
14215
14216 # Object file suffix (normally "o").
14217 objext=$ac_objext
14218
14219 # Executable file suffix (normally "").
14220 exeext=$exeext
14221
14222 # whether the shell understands "unset".
14223 lt_unset=$lt_unset
14224
14225 # turn spaces into newlines.
14226 SP2NL=$lt_lt_SP2NL
14227
14228 # turn newlines into spaces.
14229 NL2SP=$lt_lt_NL2SP
14230
14231 # convert \$build file names to \$host format.
14232 to_host_file_cmd=$lt_cv_to_host_file_cmd
14233
14234 # convert \$build files to toolchain format.
14235 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14236
14237 # An object symbol dumper.
14238 OBJDUMP=$lt_OBJDUMP
14239
14240 # Method to check whether dependent libraries are shared objects.
14241 deplibs_check_method=$lt_deplibs_check_method
14242
14243 # Command to use when deplibs_check_method = "file_magic".
14244 file_magic_cmd=$lt_file_magic_cmd
14245
14246 # How to find potential files when deplibs_check_method = "file_magic".
14247 file_magic_glob=$lt_file_magic_glob
14248
14249 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14250 want_nocaseglob=$lt_want_nocaseglob
14251
14252 # DLL creation program.
14253 DLLTOOL=$lt_DLLTOOL
14254
14255 # Command to associate shared and link libraries.
14256 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14257
14258 # The archiver.
14259 AR=$lt_AR
14260
14261 # Flags to create an archive.
14262 AR_FLAGS=$lt_AR_FLAGS
14263
14264 # How to feed a file listing to the archiver.
14265 archiver_list_spec=$lt_archiver_list_spec
14266
14267 # A symbol stripping program.
14268 STRIP=$lt_STRIP
14269
14270 # Commands used to install an old-style archive.
14271 RANLIB=$lt_RANLIB
14272 old_postinstall_cmds=$lt_old_postinstall_cmds
14273 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14274
14275 # Whether to use a lock for old archive extraction.
14276 lock_old_archive_extraction=$lock_old_archive_extraction
14277
14278 # A C compiler.
14279 LTCC=$lt_CC
14280
14281 # LTCC compiler flags.
14282 LTCFLAGS=$lt_CFLAGS
14283
14284 # Take the output of nm and produce a listing of raw symbols and C names.
14285 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14286
14287 # Transform the output of nm in a proper C declaration.
14288 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14289
14290 # Transform the output of nm in a C name address pair.
14291 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14292
14293 # Transform the output of nm in a C name address pair when lib prefix is needed.
14294 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14295
14296 # Specify filename containing input files for \$NM.
14297 nm_file_list_spec=$lt_nm_file_list_spec
14298
14299 # The root where to search for dependent libraries,and in which our libraries should be installed.
14300 lt_sysroot=$lt_sysroot
14301
14302 # The name of the directory that contains temporary libtool files.
14303 objdir=$objdir
14304
14305 # Used to examine libraries when file_magic_cmd begins with "file".
14306 MAGIC_CMD=$MAGIC_CMD
14307
14308 # Must we lock files when doing compilation?
14309 need_locks=$lt_need_locks
14310
14311 # Manifest tool.
14312 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14313
14314 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14315 DSYMUTIL=$lt_DSYMUTIL
14316
14317 # Tool to change global to local symbols on Mac OS X.
14318 NMEDIT=$lt_NMEDIT
14319
14320 # Tool to manipulate fat objects and archives on Mac OS X.
14321 LIPO=$lt_LIPO
14322
14323 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14324 OTOOL=$lt_OTOOL
14325
14326 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14327 OTOOL64=$lt_OTOOL64
14328
14329 # Old archive suffix (normally "a").
14330 libext=$libext
14331
14332 # Shared library suffix (normally ".so").
14333 shrext_cmds=$lt_shrext_cmds
14334
14335 # The commands to extract the exported symbol list from a shared archive.
14336 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14337
14338 # Variables whose values should be saved in libtool wrapper scripts and
14339 # restored at link time.
14340 variables_saved_for_relink=$lt_variables_saved_for_relink
14341
14342 # Do we need the "lib" prefix for modules?
14343 need_lib_prefix=$need_lib_prefix
14344
14345 # Do we need a version for libraries?
14346 need_version=$need_version
14347
14348 # Library versioning type.
14349 version_type=$version_type
14350
14351 # Shared library runtime path variable.
14352 runpath_var=$runpath_var
14353
14354 # Shared library path variable.
14355 shlibpath_var=$shlibpath_var
14356
14357 # Is shlibpath searched before the hard-coded library search path?
14358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14359
14360 # Format of library name prefix.
14361 libname_spec=$lt_libname_spec
14362
14363 # List of archive names. First name is the real one, the rest are links.
14364 # The last name is the one that the linker finds with -lNAME
14365 library_names_spec=$lt_library_names_spec
14366
14367 # The coded name of the library, if different from the real name.
14368 soname_spec=$lt_soname_spec
14369
14370 # Permission mode override for installation of shared libraries.
14371 install_override_mode=$lt_install_override_mode
14372
14373 # Command to use after installation of a shared archive.
14374 postinstall_cmds=$lt_postinstall_cmds
14375
14376 # Command to use after uninstallation of a shared archive.
14377 postuninstall_cmds=$lt_postuninstall_cmds
14378
14379 # Commands used to finish a libtool library installation in a directory.
14380 finish_cmds=$lt_finish_cmds
14381
14382 # As "finish_cmds", except a single script fragment to be evaled but
14383 # not shown.
14384 finish_eval=$lt_finish_eval
14385
14386 # Whether we should hardcode library paths into libraries.
14387 hardcode_into_libs=$hardcode_into_libs
14388
14389 # Compile-time system search path for libraries.
14390 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14391
14392 # Run-time system search path for libraries.
14393 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14394
14395 # Whether dlopen is supported.
14396 dlopen_support=$enable_dlopen
14397
14398 # Whether dlopen of programs is supported.
14399 dlopen_self=$enable_dlopen_self
14400
14401 # Whether dlopen of statically linked programs is supported.
14402 dlopen_self_static=$enable_dlopen_self_static
14403
14404 # Commands to strip libraries.
14405 old_striplib=$lt_old_striplib
14406 striplib=$lt_striplib
14407
14408
14409 # The linker used to build libraries.
14410 LD=$lt_LD
14411
14412 # How to create reloadable object files.
14413 reload_flag=$lt_reload_flag
14414 reload_cmds=$lt_reload_cmds
14415
14416 # Commands used to build an old-style archive.
14417 old_archive_cmds=$lt_old_archive_cmds
14418
14419 # A language specific compiler.
14420 CC=$lt_compiler
14421
14422 # Is the compiler the GNU compiler?
14423 with_gcc=$GCC
14424
14425 # Compiler flag to turn off builtin functions.
14426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14427
14428 # Additional compiler flags for building library objects.
14429 pic_flag=$lt_lt_prog_compiler_pic
14430
14431 # How to pass a linker flag through the compiler.
14432 wl=$lt_lt_prog_compiler_wl
14433
14434 # Compiler flag to prevent dynamic linking.
14435 link_static_flag=$lt_lt_prog_compiler_static
14436
14437 # Does compiler simultaneously support -c and -o options?
14438 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14439
14440 # Whether or not to add -lc for building shared libraries.
14441 build_libtool_need_lc=$archive_cmds_need_lc
14442
14443 # Whether or not to disallow shared libs when runtime libs are static.
14444 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14445
14446 # Compiler flag to allow reflexive dlopens.
14447 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14448
14449 # Compiler flag to generate shared objects directly from archives.
14450 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14451
14452 # Whether the compiler copes with passing no objects directly.
14453 compiler_needs_object=$lt_compiler_needs_object
14454
14455 # Create an old-style archive from a shared archive.
14456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14457
14458 # Create a temporary old-style archive to link instead of a shared archive.
14459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14460
14461 # Commands used to build a shared archive.
14462 archive_cmds=$lt_archive_cmds
14463 archive_expsym_cmds=$lt_archive_expsym_cmds
14464
14465 # Commands used to build a loadable module if different from building
14466 # a shared archive.
14467 module_cmds=$lt_module_cmds
14468 module_expsym_cmds=$lt_module_expsym_cmds
14469
14470 # Whether we are building with GNU ld or not.
14471 with_gnu_ld=$lt_with_gnu_ld
14472
14473 # Flag that allows shared libraries with undefined symbols to be built.
14474 allow_undefined_flag=$lt_allow_undefined_flag
14475
14476 # Flag that enforces no undefined symbols.
14477 no_undefined_flag=$lt_no_undefined_flag
14478
14479 # Flag to hardcode \$libdir into a binary during linking.
14480 # This must work even if \$libdir does not exist
14481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14482
14483 # Whether we need a single "-rpath" flag with a separated argument.
14484 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14485
14486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14487 # DIR into the resulting binary.
14488 hardcode_direct=$hardcode_direct
14489
14490 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14491 # DIR into the resulting binary and the resulting library dependency is
14492 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14493 # library is relocated.
14494 hardcode_direct_absolute=$hardcode_direct_absolute
14495
14496 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14497 # into the resulting binary.
14498 hardcode_minus_L=$hardcode_minus_L
14499
14500 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14501 # into the resulting binary.
14502 hardcode_shlibpath_var=$hardcode_shlibpath_var
14503
14504 # Set to "yes" if building a shared library automatically hardcodes DIR
14505 # into the library and all subsequent libraries and executables linked
14506 # against it.
14507 hardcode_automatic=$hardcode_automatic
14508
14509 # Set to yes if linker adds runtime paths of dependent libraries
14510 # to runtime path list.
14511 inherit_rpath=$inherit_rpath
14512
14513 # Whether libtool must link a program against all its dependency libraries.
14514 link_all_deplibs=$link_all_deplibs
14515
14516 # Set to "yes" if exported symbols are required.
14517 always_export_symbols=$always_export_symbols
14518
14519 # The commands to list exported symbols.
14520 export_symbols_cmds=$lt_export_symbols_cmds
14521
14522 # Symbols that should not be listed in the preloaded symbols.
14523 exclude_expsyms=$lt_exclude_expsyms
14524
14525 # Symbols that must always be exported.
14526 include_expsyms=$lt_include_expsyms
14527
14528 # Commands necessary for linking programs (against libraries) with templates.
14529 prelink_cmds=$lt_prelink_cmds
14530
14531 # Commands necessary for finishing linking programs.
14532 postlink_cmds=$lt_postlink_cmds
14533
14534 # Specify filename containing input files.
14535 file_list_spec=$lt_file_list_spec
14536
14537 # How to hardcode a shared library path into an executable.
14538 hardcode_action=$hardcode_action
14539
14540 # ### END LIBTOOL CONFIG
14541
14542 _LT_EOF
14543
14544 case $host_os in
14545 aix3*)
14546 cat <<\_LT_EOF >> "$cfgfile"
14547 # AIX sometimes has problems with the GCC collect2 program. For some
14548 # reason, if we set the COLLECT_NAMES environment variable, the problems
14549 # vanish in a puff of smoke.
14550 if test "X${COLLECT_NAMES+set}" != Xset; then
14551 COLLECT_NAMES=
14552 export COLLECT_NAMES
14553 fi
14554 _LT_EOF
14555 ;;
14556 esac
14557
14558
14559 ltmain="$ac_aux_dir/ltmain.sh"
14560
14561
14562 # We use sed instead of cat because bash on DJGPP gets confused if
14563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14564 # text mode, it properly converts lines to CR/LF. This bash problem
14565 # is reportedly fixed, but why not run on old versions too?
14566 sed '$q' "$ltmain" >> "$cfgfile" \
14567 || (rm -f "$cfgfile"; exit 1)
14568
14569 if test x"$xsi_shell" = xyes; then
14570 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14571 func_dirname ()\
14572 {\
14573 \ case ${1} in\
14574 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14575 \ * ) func_dirname_result="${3}" ;;\
14576 \ esac\
14577 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14578 && mv -f "$cfgfile.tmp" "$cfgfile" \
14579 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14580 test 0 -eq $? || _lt_function_replace_fail=:
14581
14582
14583 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14584 func_basename ()\
14585 {\
14586 \ func_basename_result="${1##*/}"\
14587 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14588 && mv -f "$cfgfile.tmp" "$cfgfile" \
14589 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14590 test 0 -eq $? || _lt_function_replace_fail=:
14591
14592
14593 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14594 func_dirname_and_basename ()\
14595 {\
14596 \ case ${1} in\
14597 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14598 \ * ) func_dirname_result="${3}" ;;\
14599 \ esac\
14600 \ func_basename_result="${1##*/}"\
14601 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14602 && mv -f "$cfgfile.tmp" "$cfgfile" \
14603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14604 test 0 -eq $? || _lt_function_replace_fail=:
14605
14606
14607 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14608 func_stripname ()\
14609 {\
14610 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14611 \ # positional parameters, so assign one to ordinary parameter first.\
14612 \ func_stripname_result=${3}\
14613 \ func_stripname_result=${func_stripname_result#"${1}"}\
14614 \ func_stripname_result=${func_stripname_result%"${2}"}\
14615 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14616 && mv -f "$cfgfile.tmp" "$cfgfile" \
14617 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14618 test 0 -eq $? || _lt_function_replace_fail=:
14619
14620
14621 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14622 func_split_long_opt ()\
14623 {\
14624 \ func_split_long_opt_name=${1%%=*}\
14625 \ func_split_long_opt_arg=${1#*=}\
14626 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14627 && mv -f "$cfgfile.tmp" "$cfgfile" \
14628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14629 test 0 -eq $? || _lt_function_replace_fail=:
14630
14631
14632 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14633 func_split_short_opt ()\
14634 {\
14635 \ func_split_short_opt_arg=${1#??}\
14636 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14637 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14638 && mv -f "$cfgfile.tmp" "$cfgfile" \
14639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14640 test 0 -eq $? || _lt_function_replace_fail=:
14641
14642
14643 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14644 func_lo2o ()\
14645 {\
14646 \ case ${1} in\
14647 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14648 \ *) func_lo2o_result=${1} ;;\
14649 \ esac\
14650 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14651 && mv -f "$cfgfile.tmp" "$cfgfile" \
14652 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14653 test 0 -eq $? || _lt_function_replace_fail=:
14654
14655
14656 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14657 func_xform ()\
14658 {\
14659 func_xform_result=${1%.*}.lo\
14660 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14661 && mv -f "$cfgfile.tmp" "$cfgfile" \
14662 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14663 test 0 -eq $? || _lt_function_replace_fail=:
14664
14665
14666 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14667 func_arith ()\
14668 {\
14669 func_arith_result=$(( $* ))\
14670 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14671 && mv -f "$cfgfile.tmp" "$cfgfile" \
14672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14673 test 0 -eq $? || _lt_function_replace_fail=:
14674
14675
14676 sed -e '/^func_len ()$/,/^} # func_len /c\
14677 func_len ()\
14678 {\
14679 func_len_result=${#1}\
14680 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14681 && mv -f "$cfgfile.tmp" "$cfgfile" \
14682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14683 test 0 -eq $? || _lt_function_replace_fail=:
14684
14685 fi
14686
14687 if test x"$lt_shell_append" = xyes; then
14688 sed -e '/^func_append ()$/,/^} # func_append /c\
14689 func_append ()\
14690 {\
14691 eval "${1}+=\\${2}"\
14692 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14693 && mv -f "$cfgfile.tmp" "$cfgfile" \
14694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14695 test 0 -eq $? || _lt_function_replace_fail=:
14696
14697
14698 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14699 func_append_quoted ()\
14700 {\
14701 \ func_quote_for_eval "${2}"\
14702 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14703 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14704 && mv -f "$cfgfile.tmp" "$cfgfile" \
14705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14706 test 0 -eq $? || _lt_function_replace_fail=:
14707
14708
14709 # Save a `func_append' function call where possible by direct use of '+='
14710 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14711 && mv -f "$cfgfile.tmp" "$cfgfile" \
14712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14713 test 0 -eq $? || _lt_function_replace_fail=:
14714 else
14715 # Save a `func_append' function call even when '+=' is not available
14716 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14717 && mv -f "$cfgfile.tmp" "$cfgfile" \
14718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14719 test 0 -eq $? || _lt_function_replace_fail=:
14720 fi
14721
14722 if test x"$_lt_function_replace_fail" = x":"; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14724 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14725 fi
14726
14727
14728 mv -f "$cfgfile" "$ofile" ||
14729 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14730 chmod +x "$ofile"
14731
14732 ;;
14733 "pamgdb":F) chmod +x pamgdb ;;
14734 "mkpkgng":F) chmod +x mkpkgng ;;
14735
14736 esac
14737 done # for ac_tag
14738
14739
14740 as_fn_exit 0
14741 _ACEOF
14742 ac_clean_files=$ac_clean_files_save
14743
14744 test $ac_write_fail = 0 ||
14745 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14746
14747
14748 # configure is writing to config.log, and then calls config.status.
14749 # config.status does its own redirection, appending to config.log.
14750 # Unfortunately, on DOS this fails, as config.log is still kept open
14751 # by configure, so config.status won't be able to write to it; its
14752 # output is simply discarded. So we exec the FD to /dev/null,
14753 # effectively closing config.log, so it can be properly (re)opened and
14754 # appended to by config.status. When coming back to configure, we
14755 # need to make the FD available again.
14756 if test "$no_create" != yes; then
14757 ac_cs_success=:
14758 ac_config_status_args=
14759 test "$silent" = yes &&
14760 ac_config_status_args="$ac_config_status_args --quiet"
14761 exec 5>/dev/null
14762 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14763 exec 5>>config.log
14764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14765 # would make configure fail if this is the last instruction.
14766 $ac_cs_success || as_fn_exit 1
14767 fi
14768 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14770 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14771 fi
14772
14773