Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision: 1.11 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.71 for LCMAPS plugins jobrep 1.5.8.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (c) 2013 The IGE Project
15 # See LICENCE file for details
16 #
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
20
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 as_nop=:
24 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 then :
26 emulate sh
27 NULLCMD=:
28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29 # is contrary to our usage. Disable this feature.
30 alias -g '${1+"$@"}'='"$@"'
31 setopt NO_GLOB_SUBST
32 else $as_nop
33 case `(set -o) 2>/dev/null` in #(
34 *posix*) :
35 set -o posix ;; #(
36 *) :
37 ;;
38 esac
39 fi
40
41
42
43 # Reset variables that may have inherited troublesome values from
44 # the environment.
45
46 # IFS needs to be set, to space, tab, and newline, in precisely that order.
47 # (If _AS_PATH_WALK were called with IFS unset, it would have the
48 # side effect of setting IFS to empty, thus disabling word splitting.)
49 # Quoting is to prevent editors from complaining about space-tab.
50 as_nl='
51 '
52 export as_nl
53 IFS=" "" $as_nl"
54
55 PS1='$ '
56 PS2='> '
57 PS4='+ '
58
59 # Ensure predictable behavior from utilities with locale-dependent output.
60 LC_ALL=C
61 export LC_ALL
62 LANGUAGE=C
63 export LANGUAGE
64
65 # We cannot yet rely on "unset" to work, but we need these variables
66 # to be unset--not just set to an empty or harmless value--now, to
67 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
68 # also avoids known problems related to "unset" and subshell syntax
69 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
70 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
71 do eval test \${$as_var+y} \
72 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
73 done
74
75 # Ensure that fds 0, 1, and 2 are open.
76 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
77 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
78 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
79
80 # The user is always right.
81 if ${PATH_SEPARATOR+false} :; then
82 PATH_SEPARATOR=:
83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 PATH_SEPARATOR=';'
86 }
87 fi
88
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 case $as_dir in #(((
99 '') as_dir=./ ;;
100 */) ;;
101 *) as_dir=$as_dir/ ;;
102 esac
103 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
104 done
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117 fi
118
119
120 # Use a proper internal environment variable to ensure we don't fall
121 # into an infinite loop, continuously re-executing ourselves.
122 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
123 _as_can_reexec=no; export _as_can_reexec;
124 # We cannot yet assume a decent shell, so we have to provide a
125 # neutralization value for shells without unset; and this also
126 # works around shells that cannot unset nonexistent variables.
127 # Preserve -v and -x to the replacement shell.
128 BASH_ENV=/dev/null
129 ENV=/dev/null
130 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
131 case $- in # ((((
132 *v*x* | *x*v* ) as_opts=-vx ;;
133 *v* ) as_opts=-v ;;
134 *x* ) as_opts=-x ;;
135 * ) as_opts= ;;
136 esac
137 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed `exec'.
140 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="as_nop=:
147 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 then :
149 emulate sh
150 NULLCMD=:
151 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
152 # is contrary to our usage. Disable this feature.
153 alias -g '\${1+\"\$@\"}'='\"\$@\"'
154 setopt NO_GLOB_SUBST
155 else \$as_nop
156 case \`(set -o) 2>/dev/null\` in #(
157 *posix*) :
158 set -o posix ;; #(
159 *) :
160 ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else \$as_nop
179 exitcode=1; echo positional parameters were not saved.
180 fi
181 test x\$exitcode = x0 || exit 1
182 blah=\$(echo \$(echo blah))
183 test x\"\$blah\" = xblah || exit 1
184 test -x / || exit 1"
185 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
186 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
187 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
188 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
189
190 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
191 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
194 PATH=/empty FPATH=/empty; export PATH FPATH
195 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
196 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
197 test \$(( 1 + 1 )) = 2 || exit 1"
198 if (eval "$as_required") 2>/dev/null
199 then :
200 as_have_required=yes
201 else $as_nop
202 as_have_required=no
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 then :
206
207 else $as_nop
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 case $as_dir in #(((
214 '') as_dir=./ ;;
215 */) ;;
216 *) as_dir=$as_dir/ ;;
217 esac
218 as_found=:
219 case $as_dir in #(
220 /*)
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
226 then :
227 CONFIG_SHELL=$as_shell as_have_required=yes
228 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 then :
230 break 2
231 fi
232 fi
233 done;;
234 esac
235 as_found=false
236 done
237 IFS=$as_save_IFS
238 if $as_found
239 then :
240
241 else $as_nop
242 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
244 then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed `exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] about your system,
282 $0: including any error possibly output before this
283 $0: message. Then install a modern shell, or manually run
284 $0: the script under such a shell if you do have one."
285 fi
286 exit 1
287 fi
288 fi
289 fi
290 SHELL=${CONFIG_SHELL-/bin/sh}
291 export SHELL
292 # Unset more variables known to interfere with behavior of common tools.
293 CLICOLOR_FORCE= GREP_OPTIONS=
294 unset CLICOLOR_FORCE GREP_OPTIONS
295
296 ## --------------------- ##
297 ## M4sh Shell Functions. ##
298 ## --------------------- ##
299 # as_fn_unset VAR
300 # ---------------
301 # Portably unset VAR.
302 as_fn_unset ()
303 {
304 { eval $1=; unset $1;}
305 }
306 as_unset=as_fn_unset
307
308
309 # as_fn_set_status STATUS
310 # -----------------------
311 # Set $? to STATUS, without forking.
312 as_fn_set_status ()
313 {
314 return $1
315 } # as_fn_set_status
316
317 # as_fn_exit STATUS
318 # -----------------
319 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 as_fn_exit ()
321 {
322 set +e
323 as_fn_set_status $1
324 exit $1
325 } # as_fn_exit
326 # as_fn_nop
327 # ---------
328 # Do nothing but, unlike ":", preserve the value of $?.
329 as_fn_nop ()
330 {
331 return $?
332 }
333 as_nop=as_fn_nop
334
335 # as_fn_mkdir_p
336 # -------------
337 # Create "$as_dir" as a directory, including parents if necessary.
338 as_fn_mkdir_p ()
339 {
340
341 case $as_dir in #(
342 -*) as_dir=./$as_dir;;
343 esac
344 test -d "$as_dir" || eval $as_mkdir_p || {
345 as_dirs=
346 while :; do
347 case $as_dir in #(
348 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 *) as_qdir=$as_dir;;
350 esac
351 as_dirs="'$as_qdir' $as_dirs"
352 as_dir=`$as_dirname -- "$as_dir" ||
353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
354 X"$as_dir" : 'X\(//\)[^/]' \| \
355 X"$as_dir" : 'X\(//\)$' \| \
356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
357 printf "%s\n" X"$as_dir" |
358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
359 s//\1/
360 q
361 }
362 /^X\(\/\/\)[^/].*/{
363 s//\1/
364 q
365 }
366 /^X\(\/\/\)$/{
367 s//\1/
368 q
369 }
370 /^X\(\/\).*/{
371 s//\1/
372 q
373 }
374 s/.*/./; q'`
375 test -d "$as_dir" && break
376 done
377 test -z "$as_dirs" || eval "mkdir $as_dirs"
378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
379
380
381 } # as_fn_mkdir_p
382
383 # as_fn_executable_p FILE
384 # -----------------------
385 # Test if FILE is an executable regular file.
386 as_fn_executable_p ()
387 {
388 test -f "$1" && test -x "$1"
389 } # as_fn_executable_p
390 # as_fn_append VAR VALUE
391 # ----------------------
392 # Append the text in VALUE to the end of the definition contained in VAR. Take
393 # advantage of any shell optimizations that allow amortized linear growth over
394 # repeated appends, instead of the typical quadratic growth present in naive
395 # implementations.
396 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
397 then :
398 eval 'as_fn_append ()
399 {
400 eval $1+=\$2
401 }'
402 else $as_nop
403 as_fn_append ()
404 {
405 eval $1=\$$1\$2
406 }
407 fi # as_fn_append
408
409 # as_fn_arith ARG...
410 # ------------------
411 # Perform arithmetic evaluation on the ARGs, and store the result in the
412 # global $as_val. Take advantage of shells that can avoid forks. The arguments
413 # must be portable across $(()) and expr.
414 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
415 then :
416 eval 'as_fn_arith ()
417 {
418 as_val=$(( $* ))
419 }'
420 else $as_nop
421 as_fn_arith ()
422 {
423 as_val=`expr "$@" || test $? -eq 1`
424 }
425 fi # as_fn_arith
426
427 # as_fn_nop
428 # ---------
429 # Do nothing but, unlike ":", preserve the value of $?.
430 as_fn_nop ()
431 {
432 return $?
433 }
434 as_nop=as_fn_nop
435
436 # as_fn_error STATUS ERROR [LINENO LOG_FD]
437 # ----------------------------------------
438 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
439 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
440 # script with STATUS, using 1 if that was 0.
441 as_fn_error ()
442 {
443 as_status=$1; test $as_status -eq 0 && as_status=1
444 if test "$4"; then
445 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
447 fi
448 printf "%s\n" "$as_me: error: $2" >&2
449 as_fn_exit $as_status
450 } # as_fn_error
451
452 if expr a : '\(a\)' >/dev/null 2>&1 &&
453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
454 as_expr=expr
455 else
456 as_expr=false
457 fi
458
459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
460 as_basename=basename
461 else
462 as_basename=false
463 fi
464
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
469 fi
470
471 as_me=`$as_basename -- "$0" ||
472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
473 X"$0" : 'X\(//\)$' \| \
474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
475 printf "%s\n" X/"$0" |
476 sed '/^.*\/\([^/][^/]*\)\/*$/{
477 s//\1/
478 q
479 }
480 /^X\/\(\/\/\)$/{
481 s//\1/
482 q
483 }
484 /^X\/\(\/\).*/{
485 s//\1/
486 q
487 }
488 s/.*/./; q'`
489
490 # Avoid depending upon Character Ranges.
491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
494 as_cr_digits='0123456789'
495 as_cr_alnum=$as_cr_Letters$as_cr_digits
496
497
498 as_lineno_1=$LINENO as_lineno_1a=$LINENO
499 as_lineno_2=$LINENO as_lineno_2a=$LINENO
500 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
501 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
502 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
503 sed -n '
504 p
505 /[$]LINENO/=
506 ' <$as_myself |
507 sed '
508 s/[$]LINENO.*/&-/
509 t lineno
510 b
511 :lineno
512 N
513 :loop
514 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
515 t loop
516 s/-\n.*//
517 ' >$as_me.lineno &&
518 chmod +x "$as_me.lineno" ||
519 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
520
521 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
522 # already done that, so ensure we don't try to do so again and fall
523 # in an infinite loop. This has already happened in practice.
524 _as_can_reexec=no; export _as_can_reexec
525 # Don't try to exec as it changes $[0], causing all sort of problems
526 # (the dirname of $[0] is not the place where we might find the
527 # original and so on. Autoconf is especially sensitive to this).
528 . "./$as_me.lineno"
529 # Exit status is that of the last command.
530 exit
531 }
532
533
534 # Determine whether it's possible to make 'echo' print without a newline.
535 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
536 # for compatibility with existing Makefiles.
537 ECHO_C= ECHO_N= ECHO_T=
538 case `echo -n x` in #(((((
539 -n*)
540 case `echo 'xy\c'` in
541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
542 xy) ECHO_C='\c';;
543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
544 ECHO_T=' ';;
545 esac;;
546 *)
547 ECHO_N='-n';;
548 esac
549
550 # For backward compatibility with old third-party macros, we provide
551 # the shell variables $as_echo and $as_echo_n. New code should use
552 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
553 as_echo='printf %s\n'
554 as_echo_n='printf %s'
555
556
557 rm -f conf$$ conf$$.exe conf$$.file
558 if test -d conf$$.dir; then
559 rm -f conf$$.dir/conf$$.file
560 else
561 rm -f conf$$.dir
562 mkdir conf$$.dir 2>/dev/null
563 fi
564 if (echo >conf$$.file) 2>/dev/null; then
565 if ln -s conf$$.file conf$$ 2>/dev/null; then
566 as_ln_s='ln -s'
567 # ... but there are two gotchas:
568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
570 # In both cases, we have to default to `cp -pR'.
571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
572 as_ln_s='cp -pR'
573 elif ln conf$$.file conf$$ 2>/dev/null; then
574 as_ln_s=ln
575 else
576 as_ln_s='cp -pR'
577 fi
578 else
579 as_ln_s='cp -pR'
580 fi
581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
582 rmdir conf$$.dir 2>/dev/null
583
584 if mkdir -p . 2>/dev/null; then
585 as_mkdir_p='mkdir -p "$as_dir"'
586 else
587 test -d ./-p && rmdir ./-p
588 as_mkdir_p=false
589 fi
590
591 as_test_x='test -x'
592 as_executable_p=as_fn_executable_p
593
594 # Sed expression to map a string onto a valid CPP name.
595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
596
597 # Sed expression to map a string onto a valid variable name.
598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
599
600 SHELL=${CONFIG_SHELL-/bin/sh}
601
602
603 test -n "$DJDIR" || exec 7<&0 </dev/null
604 exec 6>&1
605
606 # Name of the host.
607 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
608 # so uname gets run too.
609 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
610
611 #
612 # Initializations.
613 #
614 ac_default_prefix=/usr/local
615 ac_clean_files=
616 ac_config_libobj_dir=.
617 LIBOBJS=
618 cross_compiling=no
619 subdirs=
620 MFLAGS=
621 MAKEFLAGS=
622
623 # Identity of this package.
624 PACKAGE_NAME='LCMAPS plugins jobrep'
625 PACKAGE_TARNAME='lcmaps-plugins-jobrep'
626 PACKAGE_VERSION='1.5.8'
627 PACKAGE_STRING='LCMAPS plugins jobrep 1.5.8'
628 PACKAGE_BUGREPORT=''
629 PACKAGE_URL=''
630
631 ac_unique_file="src/lcmaps_jobrep_config.h.in"
632 # Factoring default headers for most tests.
633 ac_includes_default="\
634 #include <stddef.h>
635 #ifdef HAVE_STDIO_H
636 # include <stdio.h>
637 #endif
638 #ifdef HAVE_STDLIB_H
639 # include <stdlib.h>
640 #endif
641 #ifdef HAVE_STRING_H
642 # include <string.h>
643 #endif
644 #ifdef HAVE_INTTYPES_H
645 # include <inttypes.h>
646 #endif
647 #ifdef HAVE_STDINT_H
648 # include <stdint.h>
649 #endif
650 #ifdef HAVE_STRINGS_H
651 # include <strings.h>
652 #endif
653 #ifdef HAVE_SYS_TYPES_H
654 # include <sys/types.h>
655 #endif
656 #ifdef HAVE_SYS_STAT_H
657 # include <sys/stat.h>
658 #endif
659 #ifdef HAVE_UNISTD_H
660 # include <unistd.h>
661 #endif"
662
663 ac_header_c_list=
664 ac_subst_vars='am__EXEEXT_FALSE
665 am__EXEEXT_TRUE
666 LTLIBOBJS
667 SHREXT
668 MODULEDIR
669 LIBOBJS
670 LCMAPS_CFLAGS
671 LCMAPS_INTERFACE_LIBS
672 LCMAPS_INTERFACE_CFLAGS
673 LCMAPS_BASIC_INTERFACE_LIBS
674 LCMAPS_BASIC_INTERFACE_CFLAGS
675 UNIXODBC_LIBS
676 UNIXODBC_CFLAGS
677 PKG_CONFIG_LIBDIR
678 PKG_CONFIG_PATH
679 PKG_CONFIG
680 LT_SYS_LIBRARY_PATH
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 MANIFEST_TOOL
687 RANLIB
688 ac_ct_AR
689 AR
690 DLLTOOL
691 OBJDUMP
692 FILECMD
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 EGREP
699 GREP
700 SED
701 host_os
702 host_vendor
703 host_cpu
704 host
705 build_os
706 build_vendor
707 build_cpu
708 build
709 LIBTOOL
710 LN_S
711 am__fastdepCC_FALSE
712 am__fastdepCC_TRUE
713 CCDEPMODE
714 am__nodep
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__include
719 DEPDIR
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 DISTBIN
728 WORKDIR
729 AM_BACKSLASH
730 AM_DEFAULT_VERBOSITY
731 AM_DEFAULT_V
732 AM_V
733 CSCOPE
734 ETAGS
735 CTAGS
736 am__untar
737 am__tar
738 AMTAR
739 am__leading_dot
740 SET_MAKE
741 AWK
742 mkdir_p
743 MKDIR_P
744 INSTALL_STRIP_PROGRAM
745 STRIP
746 install_sh
747 MAKEINFO
748 AUTOHEADER
749 AUTOMAKE
750 AUTOCONF
751 ACLOCAL
752 VERSION
753 PACKAGE
754 CYGPATH_W
755 am__isrc
756 INSTALL_DATA
757 INSTALL_SCRIPT
758 INSTALL_PROGRAM
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 runstatedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL
798 am__quote'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_dependency_tracking
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_aix_soname
809 with_gnu_ld
810 with_sysroot
811 enable_libtool_lock
812 with_lcmaps_prefix
813 with_lcmaps_includes
814 with_moduledir
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 LT_SYS_LIBRARY_PATH
825 PKG_CONFIG
826 PKG_CONFIG_PATH
827 PKG_CONFIG_LIBDIR
828 UNIXODBC_CFLAGS
829 UNIXODBC_LIBS
830 LCMAPS_BASIC_INTERFACE_CFLAGS
831 LCMAPS_BASIC_INTERFACE_LIBS
832 LCMAPS_INTERFACE_CFLAGS
833 LCMAPS_INTERFACE_LIBS'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 runstatedir='${localstatedir}/run'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: \`$ac_useropt'"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: \`$ac_useropt'"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -runstatedir | --runstatedir | --runstatedi | --runstated \
1124 | --runstate | --runstat | --runsta | --runst | --runs \
1125 | --run | --ru | --r)
1126 ac_prev=runstatedir ;;
1127 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1128 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1129 | --run=* | --ru=* | --r=*)
1130 runstatedir=$ac_optarg ;;
1131
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1137
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1148
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1153
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1158
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1165
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1170
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1173
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1176
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: \`$ac_useropt'"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1192
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: \`$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1208
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1212
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1219
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1226
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1229 ;;
1230
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1240
1241 *)
1242 # FIXME: should be removed in autoconf 3.0.
1243 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 ;;
1248
1249 esac
1250 done
1251
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1263 fi
1264
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir runstatedir
1270 do
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1285
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 printf "%s\n" X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1346 fi
1347 else
1348 ac_srcdir_defaulted=no
1349 fi
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361 fi
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1374
1375 #
1376 # Report the --help message.
1377 #
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures LCMAPS plugins jobrep 1.5.8 to adapt to many kinds of systems.
1383
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389 Defaults for the options are specified in brackets.
1390
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1407
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1412
1413 For better control, use the options below.
1414
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root
1432 [DATAROOTDIR/doc/lcmaps-plugins-jobrep]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437 _ACEOF
1438
1439 cat <<\_ACEOF
1440
1441 Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446 System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453 case $ac_init_help in
1454 short | recursive ) echo "Configuration of LCMAPS plugins jobrep 1.5.8:";;
1455 esac
1456 cat <<\_ACEOF
1457
1458 Optional Features:
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --enable-silent-rules less verbose build output (undo: "make V=1")
1463 --disable-silent-rules verbose build output (undo: "make V=0")
1464 --enable-dependency-tracking
1465 do not reject slow dependency extractors
1466 --disable-dependency-tracking
1467 speeds up one-time build
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-aix-soname=aix|svr4|both
1480 shared library versioning (aka "SONAME") variant to
1481 provide on AIX, [default=aix].
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1484 compiler's sysroot if not specified).
1485 --with-lcmaps-prefix=DIR
1486 Prefix where LCMAPS is installed (default /usr)
1487 --with-lcmaps-includes=DIR
1488 Directory where LCMAPS headers are installed
1489 (default LCMAPS-PREFIX/include)
1490 --with-moduledir=path Specify the install location of the plug-ins
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 LT_SYS_LIBRARY_PATH
1501 User-defined run-time library search path.
1502 PKG_CONFIG path to pkg-config utility
1503 PKG_CONFIG_PATH
1504 directories to add to pkg-config's search path
1505 PKG_CONFIG_LIBDIR
1506 path overriding pkg-config's built-in search path
1507 UNIXODBC_CFLAGS
1508 C compiler flags for UNIXODBC, overriding pkg-config
1509 UNIXODBC_LIBS
1510 linker flags for UNIXODBC, overriding pkg-config
1511 LCMAPS_BASIC_INTERFACE_CFLAGS
1512 C compiler flags for LCMAPS_BASIC_INTERFACE, overriding
1513 pkg-config
1514 LCMAPS_BASIC_INTERFACE_LIBS
1515 linker flags for LCMAPS_BASIC_INTERFACE, overriding pkg-config
1516 LCMAPS_INTERFACE_CFLAGS
1517 C compiler flags for LCMAPS_INTERFACE, overriding pkg-config
1518 LCMAPS_INTERFACE_LIBS
1519 linker flags for LCMAPS_INTERFACE, overriding pkg-config
1520
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1523
1524 Report bugs to the package provider.
1525 _ACEOF
1526 ac_status=$?
1527 fi
1528
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534 continue
1535 ac_builddir=.
1536
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *)
1540 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1552
1553 case $srcdir in
1554 .) # We are building in place.
1555 ac_srcdir=.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1562 *) # Relative name.
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for configure.gnu first; this name is used for a wrapper for
1571 # Metaconfig's "Configure" on case-insensitive file systems.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1578 else
1579 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 fi || ac_status=$?
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1582 done
1583 fi
1584
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587 cat <<\_ACEOF
1588 LCMAPS plugins jobrep configure 1.5.8
1589 generated by GNU Autoconf 2.71
1590
1591 Copyright (C) 2021 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594
1595 Copyright (c) 2013 The IGE Project
1596 See LICENCE file for details
1597
1598 _ACEOF
1599 exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest.beam
1613 if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 printf "%s\n" "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext
1632 then :
1633 ac_retval=0
1634 else $as_nop
1635 printf "%s\n" "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639 fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_compile
1644
1645 # ac_fn_c_try_link LINENO
1646 # -----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_link ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 printf "%s\n" "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest$ac_exeext && {
1671 test "$cross_compiling" = yes ||
1672 test -x conftest$ac_exeext
1673 }
1674 then :
1675 ac_retval=0
1676 else $as_nop
1677 printf "%s\n" "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_link
1691
1692 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1693 # -------------------------------------------------------
1694 # Tests whether HEADER exists and can be compiled using the include files in
1695 # INCLUDES, setting the cache variable VAR accordingly.
1696 ac_fn_c_check_header_compile ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 printf %s "checking for $2... " >&6; }
1701 if eval test \${$3+y}
1702 then :
1703 printf %s "(cached) " >&6
1704 else $as_nop
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 $4
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"
1711 then :
1712 eval "$3=yes"
1713 else $as_nop
1714 eval "$3=no"
1715 fi
1716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1717 fi
1718 eval ac_res=\$$3
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 printf "%s\n" "$ac_res" >&6; }
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723 } # ac_fn_c_check_header_compile
1724
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 printf %s "checking for $2... " >&6; }
1733 if eval test \${$3+y}
1734 then :
1735 printf %s "(cached) " >&6
1736 else $as_nop
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1741 #define $2 innocuous_$2
1742
1743 /* System header to define __stub macros and hopefully few prototypes,
1744 which can conflict with char $2 (); below. */
1745
1746 #include <limits.h>
1747 #undef $2
1748
1749 /* Override any GCC internal prototype to avoid an error.
1750 Use char because int might match the return type of a GCC
1751 builtin and then its argument prototype would still apply. */
1752 #ifdef __cplusplus
1753 extern "C"
1754 #endif
1755 char $2 ();
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined __stub_$2 || defined __stub___$2
1760 choke me
1761 #endif
1762
1763 int
1764 main (void)
1765 {
1766 return $2 ();
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_link "$LINENO"
1772 then :
1773 eval "$3=yes"
1774 else $as_nop
1775 eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1778 conftest$ac_exeext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 printf "%s\n" "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_func
1786
1787 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1788 # -------------------------------------------
1789 # Tests whether TYPE exists after having included INCLUDES, setting cache
1790 # variable VAR accordingly.
1791 ac_fn_c_check_type ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 printf %s "checking for $2... " >&6; }
1796 if eval test \${$3+y}
1797 then :
1798 printf %s "(cached) " >&6
1799 else $as_nop
1800 eval "$3=no"
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 $4
1804 int
1805 main (void)
1806 {
1807 if (sizeof ($2))
1808 return 0;
1809 ;
1810 return 0;
1811 }
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"
1814 then :
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 $4
1818 int
1819 main (void)
1820 {
1821 if (sizeof (($2)))
1822 return 0;
1823 ;
1824 return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"
1828 then :
1829
1830 else $as_nop
1831 eval "$3=yes"
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 printf "%s\n" "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_type
1843
1844 # ac_fn_c_try_run LINENO
1845 # ----------------------
1846 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1847 # executables *can* be run.
1848 ac_fn_c_try_run ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_link"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 printf "%s\n" "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>&5
1859 ac_status=$?
1860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862 { { case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 printf "%s\n" "$ac_try_echo"; } >&5
1868 (eval "$ac_try") 2>&5
1869 ac_status=$?
1870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; }; }
1872 then :
1873 ac_retval=0
1874 else $as_nop
1875 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1876 printf "%s\n" "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880 fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_c_try_run
1886 ac_configure_args_raw=
1887 for ac_arg
1888 do
1889 case $ac_arg in
1890 *\'*)
1891 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 esac
1893 as_fn_append ac_configure_args_raw " '$ac_arg'"
1894 done
1895
1896 case $ac_configure_args_raw in
1897 *$as_nl*)
1898 ac_safe_unquote= ;;
1899 *)
1900 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1901 ac_unsafe_a="$ac_unsafe_z#~"
1902 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1903 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1904 esac
1905
1906 cat >config.log <<_ACEOF
1907 This file contains any messages produced by compilers while
1908 running configure, to aid debugging if configure makes a mistake.
1909
1910 It was created by LCMAPS plugins jobrep $as_me 1.5.8, which was
1911 generated by GNU Autoconf 2.71. Invocation command line was
1912
1913 $ $0$ac_configure_args_raw
1914
1915 _ACEOF
1916 exec 5>>config.log
1917 {
1918 cat <<_ASUNAME
1919 ## --------- ##
1920 ## Platform. ##
1921 ## --------- ##
1922
1923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1928
1929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1931
1932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1939
1940 _ASUNAME
1941
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 case $as_dir in #(((
1947 '') as_dir=./ ;;
1948 */) ;;
1949 *) as_dir=$as_dir/ ;;
1950 esac
1951 printf "%s\n" "PATH: $as_dir"
1952 done
1953 IFS=$as_save_IFS
1954
1955 } >&5
1956
1957 cat >&5 <<_ACEOF
1958
1959
1960 ## ----------- ##
1961 ## Core tests. ##
1962 ## ----------- ##
1963
1964 _ACEOF
1965
1966
1967 # Keep a trace of the command line.
1968 # Strip out --no-create and --no-recursion so they do not pile up.
1969 # Strip out --silent because we don't want to record it for future runs.
1970 # Also quote any args containing shell meta-characters.
1971 # Make two passes to allow for proper duplicate-argument suppression.
1972 ac_configure_args=
1973 ac_configure_args0=
1974 ac_configure_args1=
1975 ac_must_keep_next=false
1976 for ac_pass in 1 2
1977 do
1978 for ac_arg
1979 do
1980 case $ac_arg in
1981 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1983 | -silent | --silent | --silen | --sile | --sil)
1984 continue ;;
1985 *\'*)
1986 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 esac
1988 case $ac_pass in
1989 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1990 2)
1991 as_fn_append ac_configure_args1 " '$ac_arg'"
1992 if test $ac_must_keep_next = true; then
1993 ac_must_keep_next=false # Got value, back to normal.
1994 else
1995 case $ac_arg in
1996 *=* | --config-cache | -C | -disable-* | --disable-* \
1997 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1998 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1999 | -with-* | --with-* | -without-* | --without-* | --x)
2000 case "$ac_configure_args0 " in
2001 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2002 esac
2003 ;;
2004 -* ) ac_must_keep_next=true ;;
2005 esac
2006 fi
2007 as_fn_append ac_configure_args " '$ac_arg'"
2008 ;;
2009 esac
2010 done
2011 done
2012 { ac_configure_args0=; unset ac_configure_args0;}
2013 { ac_configure_args1=; unset ac_configure_args1;}
2014
2015 # When interrupted or exit'd, cleanup temporary files, and complete
2016 # config.log. We remove comments because anyway the quotes in there
2017 # would cause problems or look ugly.
2018 # WARNING: Use '\'' to represent an apostrophe within the trap.
2019 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2020 trap 'exit_status=$?
2021 # Sanitize IFS.
2022 IFS=" "" $as_nl"
2023 # Save into config.log some information that might help in debugging.
2024 {
2025 echo
2026
2027 printf "%s\n" "## ---------------- ##
2028 ## Cache variables. ##
2029 ## ---------------- ##"
2030 echo
2031 # The following way of writing the cache mishandles newlines in values,
2032 (
2033 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in #(
2036 *${as_nl}*)
2037 case $ac_var in #(
2038 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2039 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2040 esac
2041 case $ac_var in #(
2042 _ | IFS | as_nl) ;; #(
2043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2044 *) { eval $ac_var=; unset $ac_var;} ;;
2045 esac ;;
2046 esac
2047 done
2048 (set) 2>&1 |
2049 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2050 *${as_nl}ac_space=\ *)
2051 sed -n \
2052 "s/'\''/'\''\\\\'\'''\''/g;
2053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2054 ;; #(
2055 *)
2056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2057 ;;
2058 esac |
2059 sort
2060 )
2061 echo
2062
2063 printf "%s\n" "## ----------------- ##
2064 ## Output variables. ##
2065 ## ----------------- ##"
2066 echo
2067 for ac_var in $ac_subst_vars
2068 do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 printf "%s\n" "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2076
2077 if test -n "$ac_subst_files"; then
2078 printf "%s\n" "## ------------------- ##
2079 ## File substitutions. ##
2080 ## ------------------- ##"
2081 echo
2082 for ac_var in $ac_subst_files
2083 do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 printf "%s\n" "$ac_var='\''$ac_val'\''"
2089 done | sort
2090 echo
2091 fi
2092
2093 if test -s confdefs.h; then
2094 printf "%s\n" "## ----------- ##
2095 ## confdefs.h. ##
2096 ## ----------- ##"
2097 echo
2098 cat confdefs.h
2099 echo
2100 fi
2101 test "$ac_signal" != 0 &&
2102 printf "%s\n" "$as_me: caught signal $ac_signal"
2103 printf "%s\n" "$as_me: exit $exit_status"
2104 } >&5
2105 rm -f core *.core core.conftest.* &&
2106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2107 exit $exit_status
2108 ' 0
2109 for ac_signal in 1 2 13 15; do
2110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2111 done
2112 ac_signal=0
2113
2114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2115 rm -f -r conftest* confdefs.h
2116
2117 printf "%s\n" "/* confdefs.h */" > confdefs.h
2118
2119 # Predefined preprocessor variables.
2120
2121 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2122
2123 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2124
2125 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2126
2127 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2128
2129 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2130
2131 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2132
2133
2134 # Let the site file select an alternate cache file if it wants to.
2135 # Prefer an explicitly selected file to automatically selected ones.
2136 if test -n "$CONFIG_SITE"; then
2137 ac_site_files="$CONFIG_SITE"
2138 elif test "x$prefix" != xNONE; then
2139 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2140 else
2141 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2142 fi
2143
2144 for ac_site_file in $ac_site_files
2145 do
2146 case $ac_site_file in #(
2147 */*) :
2148 ;; #(
2149 *) :
2150 ac_site_file=./$ac_site_file ;;
2151 esac
2152 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2155 sed 's/^/| /' "$ac_site_file" >&5
2156 . "$ac_site_file" \
2157 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2159 as_fn_error $? "failed to load site script $ac_site_file
2160 See \`config.log' for more details" "$LINENO" 5; }
2161 fi
2162 done
2163
2164 if test -r "$cache_file"; then
2165 # Some versions of bash will fail to source /dev/null (special files
2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2170 case $cache_file in
2171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172 *) . "./$cache_file";;
2173 esac
2174 fi
2175 else
2176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2178 >$cache_file
2179 fi
2180
2181 # Test code for whether the C compiler supports C89 (global declarations)
2182 ac_c_conftest_c89_globals='
2183 /* Does the compiler advertise C89 conformance?
2184 Do not test the value of __STDC__, because some compilers set it to 0
2185 while being otherwise adequately conformant. */
2186 #if !defined __STDC__
2187 # error "Compiler does not advertise C89 conformance"
2188 #endif
2189
2190 #include <stddef.h>
2191 #include <stdarg.h>
2192 struct stat;
2193 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2194 struct buf { int x; };
2195 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2196 static char *e (p, i)
2197 char **p;
2198 int i;
2199 {
2200 return p[i];
2201 }
2202 static char *f (char * (*g) (char **, int), char **p, ...)
2203 {
2204 char *s;
2205 va_list v;
2206 va_start (v,p);
2207 s = g (p, va_arg (v,int));
2208 va_end (v);
2209 return s;
2210 }
2211
2212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2213 function prototypes and stuff, but not \xHH hex character constants.
2214 These do not provoke an error unfortunately, instead are silently treated
2215 as an "x". The following induces an error, until -std is added to get
2216 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2217 array size at least. It is necessary to write \x00 == 0 to get something
2218 that is true only with -std. */
2219 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2220
2221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2222 inside strings and character constants. */
2223 #define FOO(x) '\''x'\''
2224 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2225
2226 int test (int i, double x);
2227 struct s1 {int (*f) (int a);};
2228 struct s2 {int (*f) (double a);};
2229 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2230 int, int);'
2231
2232 # Test code for whether the C compiler supports C89 (body of main).
2233 ac_c_conftest_c89_main='
2234 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2235 '
2236
2237 # Test code for whether the C compiler supports C99 (global declarations)
2238 ac_c_conftest_c99_globals='
2239 // Does the compiler advertise C99 conformance?
2240 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2241 # error "Compiler does not advertise C99 conformance"
2242 #endif
2243
2244 #include <stdbool.h>
2245 extern int puts (const char *);
2246 extern int printf (const char *, ...);
2247 extern int dprintf (int, const char *, ...);
2248 extern void *malloc (size_t);
2249
2250 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2251 // dprintf is used instead of fprintf to avoid needing to declare
2252 // FILE and stderr.
2253 #define debug(...) dprintf (2, __VA_ARGS__)
2254 #define showlist(...) puts (#__VA_ARGS__)
2255 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2256 static void
2257 test_varargs_macros (void)
2258 {
2259 int x = 1234;
2260 int y = 5678;
2261 debug ("Flag");
2262 debug ("X = %d\n", x);
2263 showlist (The first, second, and third items.);
2264 report (x>y, "x is %d but y is %d", x, y);
2265 }
2266
2267 // Check long long types.
2268 #define BIG64 18446744073709551615ull
2269 #define BIG32 4294967295ul
2270 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2271 #if !BIG_OK
2272 #error "your preprocessor is broken"
2273 #endif
2274 #if BIG_OK
2275 #else
2276 #error "your preprocessor is broken"
2277 #endif
2278 static long long int bignum = -9223372036854775807LL;
2279 static unsigned long long int ubignum = BIG64;
2280
2281 struct incomplete_array
2282 {
2283 int datasize;
2284 double data[];
2285 };
2286
2287 struct named_init {
2288 int number;
2289 const wchar_t *name;
2290 double average;
2291 };
2292
2293 typedef const char *ccp;
2294
2295 static inline int
2296 test_restrict (ccp restrict text)
2297 {
2298 // See if C++-style comments work.
2299 // Iterate through items via the restricted pointer.
2300 // Also check for declarations in for loops.
2301 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2302 continue;
2303 return 0;
2304 }
2305
2306 // Check varargs and va_copy.
2307 static bool
2308 test_varargs (const char *format, ...)
2309 {
2310 va_list args;
2311 va_start (args, format);
2312 va_list args_copy;
2313 va_copy (args_copy, args);
2314
2315 const char *str = "";
2316 int number = 0;
2317 float fnumber = 0;
2318
2319 while (*format)
2320 {
2321 switch (*format++)
2322 {
2323 case '\''s'\'': // string
2324 str = va_arg (args_copy, const char *);
2325 break;
2326 case '\''d'\'': // int
2327 number = va_arg (args_copy, int);
2328 break;
2329 case '\''f'\'': // float
2330 fnumber = va_arg (args_copy, double);
2331 break;
2332 default:
2333 break;
2334 }
2335 }
2336 va_end (args_copy);
2337 va_end (args);
2338
2339 return *str && number && fnumber;
2340 }
2341 '
2342
2343 # Test code for whether the C compiler supports C99 (body of main).
2344 ac_c_conftest_c99_main='
2345 // Check bool.
2346 _Bool success = false;
2347 success |= (argc != 0);
2348
2349 // Check restrict.
2350 if (test_restrict ("String literal") == 0)
2351 success = true;
2352 char *restrict newvar = "Another string";
2353
2354 // Check varargs.
2355 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2356 test_varargs_macros ();
2357
2358 // Check flexible array members.
2359 struct incomplete_array *ia =
2360 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2361 ia->datasize = 10;
2362 for (int i = 0; i < ia->datasize; ++i)
2363 ia->data[i] = i * 1.234;
2364
2365 // Check named initializers.
2366 struct named_init ni = {
2367 .number = 34,
2368 .name = L"Test wide string",
2369 .average = 543.34343,
2370 };
2371
2372 ni.number = 58;
2373
2374 int dynamic_array[ni.number];
2375 dynamic_array[0] = argv[0][0];
2376 dynamic_array[ni.number - 1] = 543;
2377
2378 // work around unused variable warnings
2379 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2380 || dynamic_array[ni.number - 1] != 543);
2381 '
2382
2383 # Test code for whether the C compiler supports C11 (global declarations)
2384 ac_c_conftest_c11_globals='
2385 // Does the compiler advertise C11 conformance?
2386 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2387 # error "Compiler does not advertise C11 conformance"
2388 #endif
2389
2390 // Check _Alignas.
2391 char _Alignas (double) aligned_as_double;
2392 char _Alignas (0) no_special_alignment;
2393 extern char aligned_as_int;
2394 char _Alignas (0) _Alignas (int) aligned_as_int;
2395
2396 // Check _Alignof.
2397 enum
2398 {
2399 int_alignment = _Alignof (int),
2400 int_array_alignment = _Alignof (int[100]),
2401 char_alignment = _Alignof (char)
2402 };
2403 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2404
2405 // Check _Noreturn.
2406 int _Noreturn does_not_return (void) { for (;;) continue; }
2407
2408 // Check _Static_assert.
2409 struct test_static_assert
2410 {
2411 int x;
2412 _Static_assert (sizeof (int) <= sizeof (long int),
2413 "_Static_assert does not work in struct");
2414 long int y;
2415 };
2416
2417 // Check UTF-8 literals.
2418 #define u8 syntax error!
2419 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2420
2421 // Check duplicate typedefs.
2422 typedef long *long_ptr;
2423 typedef long int *long_ptr;
2424 typedef long_ptr long_ptr;
2425
2426 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2427 struct anonymous
2428 {
2429 union {
2430 struct { int i; int j; };
2431 struct { int k; long int l; } w;
2432 };
2433 int m;
2434 } v1;
2435 '
2436
2437 # Test code for whether the C compiler supports C11 (body of main).
2438 ac_c_conftest_c11_main='
2439 _Static_assert ((offsetof (struct anonymous, i)
2440 == offsetof (struct anonymous, w.k)),
2441 "Anonymous union alignment botch");
2442 v1.i = 2;
2443 v1.w.k = 5;
2444 ok |= v1.i != 5;
2445 '
2446
2447 # Test code for whether the C compiler supports C11 (complete).
2448 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2449 ${ac_c_conftest_c99_globals}
2450 ${ac_c_conftest_c11_globals}
2451
2452 int
2453 main (int argc, char **argv)
2454 {
2455 int ok = 0;
2456 ${ac_c_conftest_c89_main}
2457 ${ac_c_conftest_c99_main}
2458 ${ac_c_conftest_c11_main}
2459 return ok;
2460 }
2461 "
2462
2463 # Test code for whether the C compiler supports C99 (complete).
2464 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2465 ${ac_c_conftest_c99_globals}
2466
2467 int
2468 main (int argc, char **argv)
2469 {
2470 int ok = 0;
2471 ${ac_c_conftest_c89_main}
2472 ${ac_c_conftest_c99_main}
2473 return ok;
2474 }
2475 "
2476
2477 # Test code for whether the C compiler supports C89 (complete).
2478 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2479
2480 int
2481 main (int argc, char **argv)
2482 {
2483 int ok = 0;
2484 ${ac_c_conftest_c89_main}
2485 return ok;
2486 }
2487 "
2488
2489 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2490 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2491 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2492 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2493 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2494 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2495 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2496 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2497 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2498
2499 # Auxiliary files required by this configure script.
2500 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2501
2502 # Locations in which to look for auxiliary files.
2503 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2504
2505 # Search for a directory containing all of the required auxiliary files,
2506 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2507 # If we don't find one directory that contains all the files we need,
2508 # we report the set of missing files from the *first* directory in
2509 # $ac_aux_dir_candidates and give up.
2510 ac_missing_aux_files=""
2511 ac_first_candidate=:
2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 as_found=false
2515 for as_dir in $ac_aux_dir_candidates
2516 do
2517 IFS=$as_save_IFS
2518 case $as_dir in #(((
2519 '') as_dir=./ ;;
2520 */) ;;
2521 *) as_dir=$as_dir/ ;;
2522 esac
2523 as_found=:
2524
2525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2526 ac_aux_dir_found=yes
2527 ac_install_sh=
2528 for ac_aux in $ac_aux_files
2529 do
2530 # As a special case, if "install-sh" is required, that requirement
2531 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2532 # and $ac_install_sh is set appropriately for whichever one is found.
2533 if test x"$ac_aux" = x"install-sh"
2534 then
2535 if test -f "${as_dir}install-sh"; then
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2537 ac_install_sh="${as_dir}install-sh -c"
2538 elif test -f "${as_dir}install.sh"; then
2539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2540 ac_install_sh="${as_dir}install.sh -c"
2541 elif test -f "${as_dir}shtool"; then
2542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2543 ac_install_sh="${as_dir}shtool install -c"
2544 else
2545 ac_aux_dir_found=no
2546 if $ac_first_candidate; then
2547 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2548 else
2549 break
2550 fi
2551 fi
2552 else
2553 if test -f "${as_dir}${ac_aux}"; then
2554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2555 else
2556 ac_aux_dir_found=no
2557 if $ac_first_candidate; then
2558 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2559 else
2560 break
2561 fi
2562 fi
2563 fi
2564 done
2565 if test "$ac_aux_dir_found" = yes; then
2566 ac_aux_dir="$as_dir"
2567 break
2568 fi
2569 ac_first_candidate=false
2570
2571 as_found=false
2572 done
2573 IFS=$as_save_IFS
2574 if $as_found
2575 then :
2576
2577 else $as_nop
2578 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2579 fi
2580
2581
2582 # These three variables are undocumented and unsupported,
2583 # and are intended to be withdrawn in a future Autoconf release.
2584 # They can cause serious problems if a builder's source tree is in a directory
2585 # whose full name contains unusual characters.
2586 if test -f "${ac_aux_dir}config.guess"; then
2587 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2588 fi
2589 if test -f "${ac_aux_dir}config.sub"; then
2590 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2591 fi
2592 if test -f "$ac_aux_dir/configure"; then
2593 ac_configure="$SHELL ${ac_aux_dir}configure"
2594 fi
2595
2596 # Check that the precious variables saved in the cache have kept the same
2597 # value.
2598 ac_cache_corrupted=false
2599 for ac_var in $ac_precious_vars; do
2600 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2601 eval ac_new_set=\$ac_env_${ac_var}_set
2602 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2603 eval ac_new_val=\$ac_env_${ac_var}_value
2604 case $ac_old_set,$ac_new_set in
2605 set,)
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2607 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2609 ,set)
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2611 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,);;
2614 *)
2615 if test "x$ac_old_val" != "x$ac_new_val"; then
2616 # differences in whitespace do not lead to failure.
2617 ac_old_val_w=`echo x $ac_old_val`
2618 ac_new_val_w=`echo x $ac_new_val`
2619 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2621 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2622 ac_cache_corrupted=:
2623 else
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2625 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2626 eval $ac_var=\$ac_old_val
2627 fi
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2629 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2631 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2632 fi;;
2633 esac
2634 # Pass precious variables to config.status.
2635 if test "$ac_new_set" = set; then
2636 case $ac_new_val in
2637 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2638 *) ac_arg=$ac_var=$ac_new_val ;;
2639 esac
2640 case " $ac_configure_args " in
2641 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2642 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2643 esac
2644 fi
2645 done
2646 if $ac_cache_corrupted; then
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2650 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2651 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2652 and start over" "$LINENO" 5
2653 fi
2654 ## -------------------- ##
2655 ## Main body of script. ##
2656 ## -------------------- ##
2657
2658 ac_ext=c
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663
2664
2665
2666 am__api_version='1.16'
2667
2668
2669
2670 # Find a good install program. We prefer a C program (faster),
2671 # so one script is as good as another. But avoid the broken or
2672 # incompatible versions:
2673 # SysV /etc/install, /usr/sbin/install
2674 # SunOS /usr/etc/install
2675 # IRIX /sbin/install
2676 # AIX /bin/install
2677 # AmigaOS /C/install, which installs bootblocks on floppy discs
2678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681 # OS/2's system install, which has a completely different semantic
2682 # ./install, which can be erroneously created by make from ./install.sh.
2683 # Reject install programs that cannot install multiple files.
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2685 printf %s "checking for a BSD-compatible install... " >&6; }
2686 if test -z "$INSTALL"; then
2687 if test ${ac_cv_path_install+y}
2688 then :
2689 printf %s "(cached) " >&6
2690 else $as_nop
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 case $as_dir in #(((
2696 '') as_dir=./ ;;
2697 */) ;;
2698 *) as_dir=$as_dir/ ;;
2699 esac
2700 # Account for fact that we put trailing slashes in our PATH walk.
2701 case $as_dir in #((
2702 ./ | /[cC]/* | \
2703 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2704 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2705 /usr/ucb/* ) ;;
2706 *)
2707 # OSF1 and SCO ODT 3.0 have their own names for install.
2708 # Don't use installbsd from OSF since it installs stuff as root
2709 # by default.
2710 for ac_prog in ginstall scoinst install; do
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2713 if test $ac_prog = install &&
2714 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # AIX install. It has an incompatible calling convention.
2716 :
2717 elif test $ac_prog = install &&
2718 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2719 # program-specific install script used by HP pwplus--don't use.
2720 :
2721 else
2722 rm -rf conftest.one conftest.two conftest.dir
2723 echo one > conftest.one
2724 echo two > conftest.two
2725 mkdir conftest.dir
2726 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2727 test -s conftest.one && test -s conftest.two &&
2728 test -s conftest.dir/conftest.one &&
2729 test -s conftest.dir/conftest.two
2730 then
2731 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2732 break 3
2733 fi
2734 fi
2735 fi
2736 done
2737 done
2738 ;;
2739 esac
2740
2741 done
2742 IFS=$as_save_IFS
2743
2744 rm -rf conftest.one conftest.two conftest.dir
2745
2746 fi
2747 if test ${ac_cv_path_install+y}; then
2748 INSTALL=$ac_cv_path_install
2749 else
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
2752 # break other packages using the cache if that directory is
2753 # removed, or if the value is a relative name.
2754 INSTALL=$ac_install_sh
2755 fi
2756 fi
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2758 printf "%s\n" "$INSTALL" >&6; }
2759
2760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761 # It thinks the first close brace ends the variable substitution.
2762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763
2764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2765
2766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2769 printf %s "checking whether build environment is sane... " >&6; }
2770 # Reject unsafe characters in $srcdir or the absolute working directory
2771 # name. Accept space and tab only in the latter.
2772 am_lf='
2773 '
2774 case `pwd` in
2775 *[\\\"\#\$\&\'\`$am_lf]*)
2776 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2777 esac
2778 case $srcdir in
2779 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2780 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2781 esac
2782
2783 # Do 'set' in a subshell so we don't clobber the current shell's
2784 # arguments. Must try -L first in case configure is actually a
2785 # symlink; some systems play weird games with the mod time of symlinks
2786 # (eg FreeBSD returns the mod time of the symlink's containing
2787 # directory).
2788 if (
2789 am_has_slept=no
2790 for am_try in 1 2; do
2791 echo "timestamp, slept: $am_has_slept" > conftest.file
2792 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2793 if test "$*" = "X"; then
2794 # -L didn't work.
2795 set X `ls -t "$srcdir/configure" conftest.file`
2796 fi
2797 if test "$*" != "X $srcdir/configure conftest.file" \
2798 && test "$*" != "X conftest.file $srcdir/configure"; then
2799
2800 # If neither matched, then we have a broken ls. This can happen
2801 # if, for instance, CONFIG_SHELL is bash and it inherits a
2802 # broken ls alias from the environment. This has actually
2803 # happened. Such a system could not be considered "sane".
2804 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2805 alias in your environment" "$LINENO" 5
2806 fi
2807 if test "$2" = conftest.file || test $am_try -eq 2; then
2808 break
2809 fi
2810 # Just in case.
2811 sleep 1
2812 am_has_slept=yes
2813 done
2814 test "$2" = conftest.file
2815 )
2816 then
2817 # Ok.
2818 :
2819 else
2820 as_fn_error $? "newly created file is older than distributed files!
2821 Check your system clock" "$LINENO" 5
2822 fi
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2824 printf "%s\n" "yes" >&6; }
2825 # If we didn't sleep, we still need to ensure time stamps of config.status and
2826 # generated files are strictly newer.
2827 am_sleep_pid=
2828 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2829 ( sleep 1 ) &
2830 am_sleep_pid=$!
2831 fi
2832
2833 rm -f conftest.file
2834
2835 test "$program_prefix" != NONE &&
2836 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2837 # Use a double $ so make ignores it.
2838 test "$program_suffix" != NONE &&
2839 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2840 # Double any \ or $.
2841 # By default was `s,x,x', remove it if useless.
2842 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2843 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2844
2845
2846 # Expand $ac_aux_dir to an absolute path.
2847 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2848
2849
2850 if test x"${MISSING+set}" != xset; then
2851 MISSING="\${SHELL} '$am_aux_dir/missing'"
2852 fi
2853 # Use eval to expand $SHELL
2854 if eval "$MISSING --is-lightweight"; then
2855 am_missing_run="$MISSING "
2856 else
2857 am_missing_run=
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2859 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2860 fi
2861
2862 if test x"${install_sh+set}" != xset; then
2863 case $am_aux_dir in
2864 *\ * | *\ *)
2865 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2866 *)
2867 install_sh="\${SHELL} $am_aux_dir/install-sh"
2868 esac
2869 fi
2870
2871 # Installed binaries are usually stripped using 'strip' when the user
2872 # run "make install-strip". However 'strip' might not be the right
2873 # tool to use in cross-compilation environments, therefore Automake
2874 # will honor the 'STRIP' environment variable to overrule this program.
2875 if test "$cross_compiling" != no; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}strip; ac_word=$2
2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 printf %s "checking for $ac_word... " >&6; }
2881 if test ${ac_cv_prog_STRIP+y}
2882 then :
2883 printf %s "(cached) " >&6
2884 else $as_nop
2885 if test -n "$STRIP"; then
2886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 case $as_dir in #(((
2893 '') as_dir=./ ;;
2894 */) ;;
2895 *) as_dir=$as_dir/ ;;
2896 esac
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 STRIP=$ac_cv_prog_STRIP
2910 if test -n "$STRIP"; then
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2912 printf "%s\n" "$STRIP" >&6; }
2913 else
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 printf "%s\n" "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$ac_cv_prog_STRIP"; then
2921 ac_ct_STRIP=$STRIP
2922 # Extract the first word of "strip", so it can be a program name with args.
2923 set dummy strip; ac_word=$2
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 printf %s "checking for $ac_word... " >&6; }
2926 if test ${ac_cv_prog_ac_ct_STRIP+y}
2927 then :
2928 printf %s "(cached) " >&6
2929 else $as_nop
2930 if test -n "$ac_ct_STRIP"; then
2931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 case $as_dir in #(((
2938 '') as_dir=./ ;;
2939 */) ;;
2940 *) as_dir=$as_dir/ ;;
2941 esac
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_ac_ct_STRIP="strip"
2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2955 if test -n "$ac_ct_STRIP"; then
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2957 printf "%s\n" "$ac_ct_STRIP" >&6; }
2958 else
2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 printf "%s\n" "no" >&6; }
2961 fi
2962
2963 if test "x$ac_ct_STRIP" = x; then
2964 STRIP=":"
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 STRIP=$ac_ct_STRIP
2973 fi
2974 else
2975 STRIP="$ac_cv_prog_STRIP"
2976 fi
2977
2978 fi
2979 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2980
2981
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2983 printf %s "checking for a race-free mkdir -p... " >&6; }
2984 if test -z "$MKDIR_P"; then
2985 if test ${ac_cv_path_mkdir+y}
2986 then :
2987 printf %s "(cached) " >&6
2988 else $as_nop
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2991 do
2992 IFS=$as_save_IFS
2993 case $as_dir in #(((
2994 '') as_dir=./ ;;
2995 */) ;;
2996 *) as_dir=$as_dir/ ;;
2997 esac
2998 for ac_prog in mkdir gmkdir; do
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3001 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3002 'mkdir ('*'coreutils) '* | \
3003 'BusyBox '* | \
3004 'mkdir (fileutils) '4.1*)
3005 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3006 break 3;;
3007 esac
3008 done
3009 done
3010 done
3011 IFS=$as_save_IFS
3012
3013 fi
3014
3015 test -d ./--version && rmdir ./--version
3016 if test ${ac_cv_path_mkdir+y}; then
3017 MKDIR_P="$ac_cv_path_mkdir -p"
3018 else
3019 # As a last resort, use the slow shell script. Don't cache a
3020 # value for MKDIR_P within a source directory, because that will
3021 # break other packages using the cache if that directory is
3022 # removed, or if the value is a relative name.
3023 MKDIR_P="$ac_install_sh -d"
3024 fi
3025 fi
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3027 printf "%s\n" "$MKDIR_P" >&6; }
3028
3029 for ac_prog in gawk mawk nawk awk
3030 do
3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
3032 set dummy $ac_prog; ac_word=$2
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 printf %s "checking for $ac_word... " >&6; }
3035 if test ${ac_cv_prog_AWK+y}
3036 then :
3037 printf %s "(cached) " >&6
3038 else $as_nop
3039 if test -n "$AWK"; then
3040 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 case $as_dir in #(((
3047 '') as_dir=./ ;;
3048 */) ;;
3049 *) as_dir=$as_dir/ ;;
3050 esac
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_AWK="$ac_prog"
3054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 AWK=$ac_cv_prog_AWK
3064 if test -n "$AWK"; then
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3066 printf "%s\n" "$AWK" >&6; }
3067 else
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 printf "%s\n" "no" >&6; }
3070 fi
3071
3072
3073 test -n "$AWK" && break
3074 done
3075
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3077 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3078 set x ${MAKE-make}
3079 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3080 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3081 then :
3082 printf %s "(cached) " >&6
3083 else $as_nop
3084 cat >conftest.make <<\_ACEOF
3085 SHELL = /bin/sh
3086 all:
3087 @echo '@@@%%%=$(MAKE)=@@@%%%'
3088 _ACEOF
3089 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3090 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3091 *@@@%%%=?*=@@@%%%*)
3092 eval ac_cv_prog_make_${ac_make}_set=yes;;
3093 *)
3094 eval ac_cv_prog_make_${ac_make}_set=no;;
3095 esac
3096 rm -f conftest.make
3097 fi
3098 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3100 printf "%s\n" "yes" >&6; }
3101 SET_MAKE=
3102 else
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 printf "%s\n" "no" >&6; }
3105 SET_MAKE="MAKE=${MAKE-make}"
3106 fi
3107
3108 rm -rf .tst 2>/dev/null
3109 mkdir .tst 2>/dev/null
3110 if test -d .tst; then
3111 am__leading_dot=.
3112 else
3113 am__leading_dot=_
3114 fi
3115 rmdir .tst 2>/dev/null
3116
3117 # Check whether --enable-silent-rules was given.
3118 if test ${enable_silent_rules+y}
3119 then :
3120 enableval=$enable_silent_rules;
3121 fi
3122
3123 case $enable_silent_rules in # (((
3124 yes) AM_DEFAULT_VERBOSITY=0;;
3125 no) AM_DEFAULT_VERBOSITY=1;;
3126 *) AM_DEFAULT_VERBOSITY=1;;
3127 esac
3128 am_make=${MAKE-make}
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3130 printf %s "checking whether $am_make supports nested variables... " >&6; }
3131 if test ${am_cv_make_support_nested_variables+y}
3132 then :
3133 printf %s "(cached) " >&6
3134 else $as_nop
3135 if printf "%s\n" 'TRUE=$(BAR$(V))
3136 BAR0=false
3137 BAR1=true
3138 V=1
3139 am__doit:
3140 @$(TRUE)
3141 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3142 am_cv_make_support_nested_variables=yes
3143 else
3144 am_cv_make_support_nested_variables=no
3145 fi
3146 fi
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3148 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3149 if test $am_cv_make_support_nested_variables = yes; then
3150 AM_V='$(V)'
3151 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3152 else
3153 AM_V=$AM_DEFAULT_VERBOSITY
3154 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3155 fi
3156 AM_BACKSLASH='\'
3157
3158 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3159 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3160 # is not polluted with repeated "-I."
3161 am__isrc=' -I$(srcdir)'
3162 # test to see if srcdir already configured
3163 if test -f $srcdir/config.status; then
3164 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3165 fi
3166 fi
3167
3168 # test whether we have cygpath
3169 if test -z "$CYGPATH_W"; then
3170 if (cygpath --version) >/dev/null 2>/dev/null; then
3171 CYGPATH_W='cygpath -w'
3172 else
3173 CYGPATH_W=echo
3174 fi
3175 fi
3176
3177
3178 # Define the identity of the package.
3179 PACKAGE='lcmaps-plugins-jobrep'
3180 VERSION='1.5.8'
3181
3182
3183 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3184
3185
3186 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3187
3188 # Some tools Automake needs.
3189
3190 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3191
3192
3193 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3194
3195
3196 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3197
3198
3199 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3200
3201
3202 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3203
3204 # For better backward compatibility. To be removed once Automake 1.9.x
3205 # dies out for good. For more background, see:
3206 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3207 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3208 mkdir_p='$(MKDIR_P)'
3209
3210 # We need awk for the "check" target (and possibly the TAP driver). The
3211 # system "awk" is bad on some platforms.
3212 # Always define AMTAR for backward compatibility. Yes, it's still used
3213 # in the wild :-( We should find a proper way to deprecate it ...
3214 AMTAR='$${TAR-tar}'
3215
3216
3217 # We'll loop over all known methods to create a tar archive until one works.
3218 _am_tools='gnutar pax cpio none'
3219
3220 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3221
3222
3223
3224
3225
3226 # Variables for tags utilities; see am/tags.am
3227 if test -z "$CTAGS"; then
3228 CTAGS=ctags
3229 fi
3230
3231 if test -z "$ETAGS"; then
3232 ETAGS=etags
3233 fi
3234
3235 if test -z "$CSCOPE"; then
3236 CSCOPE=cscope
3237 fi
3238
3239
3240
3241 # POSIX will say in a future version that running "rm -f" with no argument
3242 # is OK; and we want to be able to make that assumption in our Makefile
3243 # recipes. So use an aggressive probe to check that the usage we want is
3244 # actually supported "in the wild" to an acceptable degree.
3245 # See automake bug#10828.
3246 # To make any issue more visible, cause the running configure to be aborted
3247 # by default if the 'rm' program in use doesn't match our expectations; the
3248 # user can still override this though.
3249 if rm -f && rm -fr && rm -rf; then : OK; else
3250 cat >&2 <<'END'
3251 Oops!
3252
3253 Your 'rm' program seems unable to run without file operands specified
3254 on the command line, even when the '-f' option is present. This is contrary
3255 to the behaviour of most rm programs out there, and not conforming with
3256 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3257
3258 Please tell [email protected] about your system, including the value
3259 of your $PATH and any error possibly output before this message. This
3260 can help us improve future automake versions.
3261
3262 END
3263 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3264 echo 'Configuration will proceed anyway, since you have set the' >&2
3265 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3266 echo >&2
3267 else
3268 cat >&2 <<'END'
3269 Aborting the configuration process, to ensure you take notice of the issue.
3270
3271 You can download and install GNU coreutils to get an 'rm' implementation
3272 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3273
3274 If you want to complete the configuration process using your problematic
3275 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3276 to "yes", and re-run configure.
3277
3278 END
3279 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3280 fi
3281 fi
3282
3283
3284
3285 # Notices.
3286
3287
3288
3289 #Environment.
3290 WORKDIR=`pwd`
3291
3292
3293 DISTBIN=$WORKDIR/../../dist
3294
3295
3296 # Checks for programs.
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306 ac_ext=c
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311 if test -n "$ac_tool_prefix"; then
3312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3313 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 printf %s "checking for $ac_word... " >&6; }
3316 if test ${ac_cv_prog_CC+y}
3317 then :
3318 printf %s "(cached) " >&6
3319 else $as_nop
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 case $as_dir in #(((
3328 '') as_dir=./ ;;
3329 */) ;;
3330 *) as_dir=$as_dir/ ;;
3331 esac
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 CC=$ac_cv_prog_CC
3345 if test -n "$CC"; then
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 printf "%s\n" "$CC" >&6; }
3348 else
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 printf "%s\n" "no" >&6; }
3351 fi
3352
3353
3354 fi
3355 if test -z "$ac_cv_prog_CC"; then
3356 ac_ct_CC=$CC
3357 # Extract the first word of "gcc", so it can be a program name with args.
3358 set dummy gcc; ac_word=$2
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 printf %s "checking for $ac_word... " >&6; }
3361 if test ${ac_cv_prog_ac_ct_CC+y}
3362 then :
3363 printf %s "(cached) " >&6
3364 else $as_nop
3365 if test -n "$ac_ct_CC"; then
3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371 IFS=$as_save_IFS
3372 case $as_dir in #(((
3373 '') as_dir=./ ;;
3374 */) ;;
3375 *) as_dir=$as_dir/ ;;
3376 esac
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_ac_ct_CC="gcc"
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390 if test -n "$ac_ct_CC"; then
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392 printf "%s\n" "$ac_ct_CC" >&6; }
3393 else
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 printf "%s\n" "no" >&6; }
3396 fi
3397
3398 if test "x$ac_ct_CC" = x; then
3399 CC=""
3400 else
3401 case $cross_compiling:$ac_tool_warned in
3402 yes:)
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3405 ac_tool_warned=yes ;;
3406 esac
3407 CC=$ac_ct_CC
3408 fi
3409 else
3410 CC="$ac_cv_prog_CC"
3411 fi
3412
3413 if test -z "$CC"; then
3414 if test -n "$ac_tool_prefix"; then
3415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3416 set dummy ${ac_tool_prefix}cc; ac_word=$2
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 printf %s "checking for $ac_word... " >&6; }
3419 if test ${ac_cv_prog_CC+y}
3420 then :
3421 printf %s "(cached) " >&6
3422 else $as_nop
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 case $as_dir in #(((
3431 '') as_dir=./ ;;
3432 */) ;;
3433 *) as_dir=$as_dir/ ;;
3434 esac
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 printf "%s\n" "$CC" >&6; }
3451 else
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 printf "%s\n" "no" >&6; }
3454 fi
3455
3456
3457 fi
3458 fi
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 printf %s "checking for $ac_word... " >&6; }
3464 if test ${ac_cv_prog_CC+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else $as_nop
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 ac_prog_rejected=no
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 case $as_dir in #(((
3477 '') as_dir=./ ;;
3478 */) ;;
3479 *) as_dir=$as_dir/ ;;
3480 esac
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3483 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3484 ac_prog_rejected=yes
3485 continue
3486 fi
3487 ac_cv_prog_CC="cc"
3488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491 done
3492 done
3493 IFS=$as_save_IFS
3494
3495 if test $ac_prog_rejected = yes; then
3496 # We found a bogon in the path, so make sure we never use it.
3497 set dummy $ac_cv_prog_CC
3498 shift
3499 if test $# != 0; then
3500 # We chose a different compiler from the bogus one.
3501 # However, it has the same basename, so the bogon will be chosen
3502 # first if we set CC to just the basename; use the full file name.
3503 shift
3504 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3505 fi
3506 fi
3507 fi
3508 fi
3509 CC=$ac_cv_prog_CC
3510 if test -n "$CC"; then
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 printf "%s\n" "$CC" >&6; }
3513 else
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 printf "%s\n" "no" >&6; }
3516 fi
3517
3518
3519 fi
3520 if test -z "$CC"; then
3521 if test -n "$ac_tool_prefix"; then
3522 for ac_prog in cl.exe
3523 do
3524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 printf %s "checking for $ac_word... " >&6; }
3528 if test ${ac_cv_prog_CC+y}
3529 then :
3530 printf %s "(cached) " >&6
3531 else $as_nop
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 case $as_dir in #(((
3540 '') as_dir=./ ;;
3541 */) ;;
3542 *) as_dir=$as_dir/ ;;
3543 esac
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 fi
3555 fi
3556 CC=$ac_cv_prog_CC
3557 if test -n "$CC"; then
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559 printf "%s\n" "$CC" >&6; }
3560 else
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 printf "%s\n" "no" >&6; }
3563 fi
3564
3565
3566 test -n "$CC" && break
3567 done
3568 fi
3569 if test -z "$CC"; then
3570 ac_ct_CC=$CC
3571 for ac_prog in cl.exe
3572 do
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 printf %s "checking for $ac_word... " >&6; }
3577 if test ${ac_cv_prog_ac_ct_CC+y}
3578 then :
3579 printf %s "(cached) " >&6
3580 else $as_nop
3581 if test -n "$ac_ct_CC"; then
3582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587 IFS=$as_save_IFS
3588 case $as_dir in #(((
3589 '') as_dir=./ ;;
3590 */) ;;
3591 *) as_dir=$as_dir/ ;;
3592 esac
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_ac_ct_CC="$ac_prog"
3596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3597 break 2
3598 fi
3599 done
3600 done
3601 IFS=$as_save_IFS
3602
3603 fi
3604 fi
3605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3606 if test -n "$ac_ct_CC"; then
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608 printf "%s\n" "$ac_ct_CC" >&6; }
3609 else
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 printf "%s\n" "no" >&6; }
3612 fi
3613
3614
3615 test -n "$ac_ct_CC" && break
3616 done
3617
3618 if test "x$ac_ct_CC" = x; then
3619 CC=""
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627 CC=$ac_ct_CC
3628 fi
3629 fi
3630
3631 fi
3632 if test -z "$CC"; then
3633 if test -n "$ac_tool_prefix"; then
3634 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3635 set dummy ${ac_tool_prefix}clang; ac_word=$2
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 printf %s "checking for $ac_word... " >&6; }
3638 if test ${ac_cv_prog_CC+y}
3639 then :
3640 printf %s "(cached) " >&6
3641 else $as_nop
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648 IFS=$as_save_IFS
3649 case $as_dir in #(((
3650 '') as_dir=./ ;;
3651 */) ;;
3652 *) as_dir=$as_dir/ ;;
3653 esac
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_CC="${ac_tool_prefix}clang"
3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660 done
3661 done
3662 IFS=$as_save_IFS
3663
3664 fi
3665 fi
3666 CC=$ac_cv_prog_CC
3667 if test -n "$CC"; then
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669 printf "%s\n" "$CC" >&6; }
3670 else
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 printf "%s\n" "no" >&6; }
3673 fi
3674
3675
3676 fi
3677 if test -z "$ac_cv_prog_CC"; then
3678 ac_ct_CC=$CC
3679 # Extract the first word of "clang", so it can be a program name with args.
3680 set dummy clang; ac_word=$2
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 printf %s "checking for $ac_word... " >&6; }
3683 if test ${ac_cv_prog_ac_ct_CC+y}
3684 then :
3685 printf %s "(cached) " >&6
3686 else $as_nop
3687 if test -n "$ac_ct_CC"; then
3688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693 IFS=$as_save_IFS
3694 case $as_dir in #(((
3695 '') as_dir=./ ;;
3696 */) ;;
3697 *) as_dir=$as_dir/ ;;
3698 esac
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_CC="clang"
3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705 done
3706 done
3707 IFS=$as_save_IFS
3708
3709 fi
3710 fi
3711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3712 if test -n "$ac_ct_CC"; then
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3714 printf "%s\n" "$ac_ct_CC" >&6; }
3715 else
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 printf "%s\n" "no" >&6; }
3718 fi
3719
3720 if test "x$ac_ct_CC" = x; then
3721 CC=""
3722 else
3723 case $cross_compiling:$ac_tool_warned in
3724 yes:)
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned=yes ;;
3728 esac
3729 CC=$ac_ct_CC
3730 fi
3731 else
3732 CC="$ac_cv_prog_CC"
3733 fi
3734
3735 fi
3736
3737
3738 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3739 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3740 as_fn_error $? "no acceptable C compiler found in \$PATH
3741 See \`config.log' for more details" "$LINENO" 5; }
3742
3743 # Provide some information about the compiler.
3744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3745 set X $ac_compile
3746 ac_compiler=$2
3747 for ac_option in --version -v -V -qversion -version; do
3748 { { ac_try="$ac_compiler $ac_option >&5"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 printf "%s\n" "$ac_try_echo"; } >&5
3755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3756 ac_status=$?
3757 if test -s conftest.err; then
3758 sed '10a\
3759 ... rest of stderr output deleted ...
3760 10q' conftest.err >conftest.er1
3761 cat conftest.er1 >&5
3762 fi
3763 rm -f conftest.er1 conftest.err
3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }
3766 done
3767
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770
3771 int
3772 main (void)
3773 {
3774
3775 ;
3776 return 0;
3777 }
3778 _ACEOF
3779 ac_clean_files_save=$ac_clean_files
3780 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3781 # Try to create an executable without -o first, disregard a.out.
3782 # It will help us diagnose broken compilers, and finding out an intuition
3783 # of exeext.
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3785 printf %s "checking whether the C compiler works... " >&6; }
3786 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3787
3788 # The possible output files:
3789 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3790
3791 ac_rmfiles=
3792 for ac_file in $ac_files
3793 do
3794 case $ac_file in
3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3796 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3797 esac
3798 done
3799 rm -f $ac_rmfiles
3800
3801 if { { ac_try="$ac_link_default"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 printf "%s\n" "$ac_try_echo"; } >&5
3808 (eval "$ac_link_default") 2>&5
3809 ac_status=$?
3810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3812 then :
3813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3816 # so that the user can short-circuit this test for compilers unknown to
3817 # Autoconf.
3818 for ac_file in $ac_files ''
3819 do
3820 test -f "$ac_file" || continue
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3823 ;;
3824 [ab].out )
3825 # We found the default executable, but exeext='' is most
3826 # certainly right.
3827 break;;
3828 *.* )
3829 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3830 then :; else
3831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3832 fi
3833 # We set ac_cv_exeext here because the later test for it is not
3834 # safe: cross compilers may not add the suffix if given an `-o'
3835 # argument, so we may need to know it at that point already.
3836 # Even if this section looks crufty: it has the advantage of
3837 # actually working.
3838 break;;
3839 * )
3840 break;;
3841 esac
3842 done
3843 test "$ac_cv_exeext" = no && ac_cv_exeext=
3844
3845 else $as_nop
3846 ac_file=''
3847 fi
3848 if test -z "$ac_file"
3849 then :
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 printf "%s\n" "no" >&6; }
3852 printf "%s\n" "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error 77 "C compiler cannot create executables
3858 See \`config.log' for more details" "$LINENO" 5; }
3859 else $as_nop
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3861 printf "%s\n" "yes" >&6; }
3862 fi
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3864 printf %s "checking for C compiler default output file name... " >&6; }
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3866 printf "%s\n" "$ac_file" >&6; }
3867 ac_exeext=$ac_cv_exeext
3868
3869 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3870 ac_clean_files=$ac_clean_files_save
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3872 printf %s "checking for suffix of executables... " >&6; }
3873 if { { ac_try="$ac_link"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 printf "%s\n" "$ac_try_echo"; } >&5
3880 (eval "$ac_link") 2>&5
3881 ac_status=$?
3882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }
3884 then :
3885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3887 # work properly (i.e., refer to `conftest.exe'), while it won't with
3888 # `rm'.
3889 for ac_file in conftest.exe conftest conftest.*; do
3890 test -f "$ac_file" || continue
3891 case $ac_file in
3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 break;;
3895 * ) break;;
3896 esac
3897 done
3898 else $as_nop
3899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3902 See \`config.log' for more details" "$LINENO" 5; }
3903 fi
3904 rm -f conftest conftest$ac_cv_exeext
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3906 printf "%s\n" "$ac_cv_exeext" >&6; }
3907
3908 rm -f conftest.$ac_ext
3909 EXEEXT=$ac_cv_exeext
3910 ac_exeext=$EXEEXT
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913 #include <stdio.h>
3914 int
3915 main (void)
3916 {
3917 FILE *f = fopen ("conftest.out", "w");
3918 return ferror (f) || fclose (f) != 0;
3919
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 ac_clean_files="$ac_clean_files conftest.out"
3925 # Check that the compiler produces executables we can run. If not, either
3926 # the compiler is broken, or we cross compile.
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3928 printf %s "checking whether we are cross compiling... " >&6; }
3929 if test "$cross_compiling" != yes; then
3930 { { ac_try="$ac_link"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 printf "%s\n" "$ac_try_echo"; } >&5
3937 (eval "$ac_link") 2>&5
3938 ac_status=$?
3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }
3941 if { ac_try='./conftest$ac_cv_exeext'
3942 { { case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 printf "%s\n" "$ac_try_echo"; } >&5
3948 (eval "$ac_try") 2>&5
3949 ac_status=$?
3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }; }; then
3952 cross_compiling=no
3953 else
3954 if test "$cross_compiling" = maybe; then
3955 cross_compiling=yes
3956 else
3957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error 77 "cannot run C compiled programs.
3960 If you meant to cross compile, use \`--host'.
3961 See \`config.log' for more details" "$LINENO" 5; }
3962 fi
3963 fi
3964 fi
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3966 printf "%s\n" "$cross_compiling" >&6; }
3967
3968 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3969 ac_clean_files=$ac_clean_files_save
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3971 printf %s "checking for suffix of object files... " >&6; }
3972 if test ${ac_cv_objext+y}
3973 then :
3974 printf %s "(cached) " >&6
3975 else $as_nop
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978
3979 int
3980 main (void)
3981 {
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 rm -f conftest.o conftest.obj
3988 if { { ac_try="$ac_compile"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 printf "%s\n" "$ac_try_echo"; } >&5
3995 (eval "$ac_compile") 2>&5
3996 ac_status=$?
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 then :
4000 for ac_file in conftest.o conftest.obj conftest.*; do
4001 test -f "$ac_file" || continue;
4002 case $ac_file in
4003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4005 break;;
4006 esac
4007 done
4008 else $as_nop
4009 printf "%s\n" "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error $? "cannot compute suffix of object files: cannot compile
4015 See \`config.log' for more details" "$LINENO" 5; }
4016 fi
4017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4018 fi
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4020 printf "%s\n" "$ac_cv_objext" >&6; }
4021 OBJEXT=$ac_cv_objext
4022 ac_objext=$OBJEXT
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4024 printf %s "checking whether the compiler supports GNU C... " >&6; }
4025 if test ${ac_cv_c_compiler_gnu+y}
4026 then :
4027 printf %s "(cached) " >&6
4028 else $as_nop
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031
4032 int
4033 main (void)
4034 {
4035 #ifndef __GNUC__
4036 choke me
4037 #endif
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 if ac_fn_c_try_compile "$LINENO"
4044 then :
4045 ac_compiler_gnu=yes
4046 else $as_nop
4047 ac_compiler_gnu=no
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4051
4052 fi
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4054 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056
4057 if test $ac_compiler_gnu = yes; then
4058 GCC=yes
4059 else
4060 GCC=
4061 fi
4062 ac_test_CFLAGS=${CFLAGS+y}
4063 ac_save_CFLAGS=$CFLAGS
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4065 printf %s "checking whether $CC accepts -g... " >&6; }
4066 if test ${ac_cv_prog_cc_g+y}
4067 then :
4068 printf %s "(cached) " >&6
4069 else $as_nop
4070 ac_save_c_werror_flag=$ac_c_werror_flag
4071 ac_c_werror_flag=yes
4072 ac_cv_prog_cc_g=no
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main (void)
4079 {
4080
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"
4086 then :
4087 ac_cv_prog_cc_g=yes
4088 else $as_nop
4089 CFLAGS=""
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092
4093 int
4094 main (void)
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"
4102 then :
4103
4104 else $as_nop
4105 ac_c_werror_flag=$ac_save_c_werror_flag
4106 CFLAGS="-g"
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109
4110 int
4111 main (void)
4112 {
4113
4114 ;
4115 return 0;
4116 }
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"
4119 then :
4120 ac_cv_prog_cc_g=yes
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4128 fi
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4131 if test $ac_test_CFLAGS; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4135 CFLAGS="-g -O2"
4136 else
4137 CFLAGS="-g"
4138 fi
4139 else
4140 if test "$GCC" = yes; then
4141 CFLAGS="-O2"
4142 else
4143 CFLAGS=
4144 fi
4145 fi
4146 ac_prog_cc_stdc=no
4147 if test x$ac_prog_cc_stdc = xno
4148 then :
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4150 printf %s "checking for $CC option to enable C11 features... " >&6; }
4151 if test ${ac_cv_prog_cc_c11+y}
4152 then :
4153 printf %s "(cached) " >&6
4154 else $as_nop
4155 ac_cv_prog_cc_c11=no
4156 ac_save_CC=$CC
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 $ac_c_conftest_c11_program
4160 _ACEOF
4161 for ac_arg in '' -std=gnu11
4162 do
4163 CC="$ac_save_CC $ac_arg"
4164 if ac_fn_c_try_compile "$LINENO"
4165 then :
4166 ac_cv_prog_cc_c11=$ac_arg
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext conftest.beam
4169 test "x$ac_cv_prog_cc_c11" != "xno" && break
4170 done
4171 rm -f conftest.$ac_ext
4172 CC=$ac_save_CC
4173 fi
4174
4175 if test "x$ac_cv_prog_cc_c11" = xno
4176 then :
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4178 printf "%s\n" "unsupported" >&6; }
4179 else $as_nop
4180 if test "x$ac_cv_prog_cc_c11" = x
4181 then :
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183 printf "%s\n" "none needed" >&6; }
4184 else $as_nop
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4186 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4187 CC="$CC $ac_cv_prog_cc_c11"
4188 fi
4189 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4190 ac_prog_cc_stdc=c11
4191 fi
4192 fi
4193 if test x$ac_prog_cc_stdc = xno
4194 then :
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4196 printf %s "checking for $CC option to enable C99 features... " >&6; }
4197 if test ${ac_cv_prog_cc_c99+y}
4198 then :
4199 printf %s "(cached) " >&6
4200 else $as_nop
4201 ac_cv_prog_cc_c99=no
4202 ac_save_CC=$CC
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 $ac_c_conftest_c99_program
4206 _ACEOF
4207 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4208 do
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"
4211 then :
4212 ac_cv_prog_cc_c99=$ac_arg
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.beam
4215 test "x$ac_cv_prog_cc_c99" != "xno" && break
4216 done
4217 rm -f conftest.$ac_ext
4218 CC=$ac_save_CC
4219 fi
4220
4221 if test "x$ac_cv_prog_cc_c99" = xno
4222 then :
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 printf "%s\n" "unsupported" >&6; }
4225 else $as_nop
4226 if test "x$ac_cv_prog_cc_c99" = x
4227 then :
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229 printf "%s\n" "none needed" >&6; }
4230 else $as_nop
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4232 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4233 CC="$CC $ac_cv_prog_cc_c99"
4234 fi
4235 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4236 ac_prog_cc_stdc=c99
4237 fi
4238 fi
4239 if test x$ac_prog_cc_stdc = xno
4240 then :
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4242 printf %s "checking for $CC option to enable C89 features... " >&6; }
4243 if test ${ac_cv_prog_cc_c89+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else $as_nop
4247 ac_cv_prog_cc_c89=no
4248 ac_save_CC=$CC
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 $ac_c_conftest_c89_program
4252 _ACEOF
4253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4254 do
4255 CC="$ac_save_CC $ac_arg"
4256 if ac_fn_c_try_compile "$LINENO"
4257 then :
4258 ac_cv_prog_cc_c89=$ac_arg
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.beam
4261 test "x$ac_cv_prog_cc_c89" != "xno" && break
4262 done
4263 rm -f conftest.$ac_ext
4264 CC=$ac_save_CC
4265 fi
4266
4267 if test "x$ac_cv_prog_cc_c89" = xno
4268 then :
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 printf "%s\n" "unsupported" >&6; }
4271 else $as_nop
4272 if test "x$ac_cv_prog_cc_c89" = x
4273 then :
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 printf "%s\n" "none needed" >&6; }
4276 else $as_nop
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4279 CC="$CC $ac_cv_prog_cc_c89"
4280 fi
4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4282 ac_prog_cc_stdc=c89
4283 fi
4284 fi
4285
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4299 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4300 if test ${am_cv_prog_cc_c_o+y}
4301 then :
4302 printf %s "(cached) " >&6
4303 else $as_nop
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306
4307 int
4308 main (void)
4309 {
4310
4311 ;
4312 return 0;
4313 }
4314 _ACEOF
4315 # Make sure it works both with $CC and with simple cc.
4316 # Following AC_PROG_CC_C_O, we do the test twice because some
4317 # compilers refuse to overwrite an existing .o file with -o,
4318 # though they will create one.
4319 am_cv_prog_cc_c_o=yes
4320 for am_i in 1 2; do
4321 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4322 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } \
4326 && test -f conftest2.$ac_objext; then
4327 : OK
4328 else
4329 am_cv_prog_cc_c_o=no
4330 break
4331 fi
4332 done
4333 rm -f core conftest*
4334 unset am_i
4335 fi
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4337 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4338 if test "$am_cv_prog_cc_c_o" != yes; then
4339 # Losing compiler, so override with the script.
4340 # FIXME: It is wrong to rewrite CC.
4341 # But if we don't then we get into trouble of one sort or another.
4342 # A longer-term fix would be to have automake use am__CC in this case,
4343 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4344 CC="$am_aux_dir/compile $CC"
4345 fi
4346 ac_ext=c
4347 ac_cpp='$CPP $CPPFLAGS'
4348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351
4352 DEPDIR="${am__leading_dot}deps"
4353
4354 ac_config_commands="$ac_config_commands depfiles"
4355
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4357 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4358 cat > confinc.mk << 'END'
4359 am__doit:
4360 @echo this is the am__doit target >confinc.out
4361 .PHONY: am__doit
4362 END
4363 am__include="#"
4364 am__quote=
4365 # BSD make does it like this.
4366 echo '.include "confinc.mk" # ignored' > confmf.BSD
4367 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4368 echo 'include confinc.mk # ignored' > confmf.GNU
4369 _am_result=no
4370 for s in GNU BSD; do
4371 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4372 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }
4376 case $?:`cat confinc.out 2>/dev/null` in #(
4377 '0:this is the am__doit target') :
4378 case $s in #(
4379 BSD) :
4380 am__include='.include' am__quote='"' ;; #(
4381 *) :
4382 am__include='include' am__quote='' ;;
4383 esac ;; #(
4384 *) :
4385 ;;
4386 esac
4387 if test "$am__include" != "#"; then
4388 _am_result="yes ($s style)"
4389 break
4390 fi
4391 done
4392 rm -f confinc.* confmf.*
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4394 printf "%s\n" "${_am_result}" >&6; }
4395
4396 # Check whether --enable-dependency-tracking was given.
4397 if test ${enable_dependency_tracking+y}
4398 then :
4399 enableval=$enable_dependency_tracking;
4400 fi
4401
4402 if test "x$enable_dependency_tracking" != xno; then
4403 am_depcomp="$ac_aux_dir/depcomp"
4404 AMDEPBACKSLASH='\'
4405 am__nodep='_no'
4406 fi
4407 if test "x$enable_dependency_tracking" != xno; then
4408 AMDEP_TRUE=
4409 AMDEP_FALSE='#'
4410 else
4411 AMDEP_TRUE='#'
4412 AMDEP_FALSE=
4413 fi
4414
4415
4416
4417 depcc="$CC" am_compiler_list=
4418
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4420 printf %s "checking dependency style of $depcc... " >&6; }
4421 if test ${am_cv_CC_dependencies_compiler_type+y}
4422 then :
4423 printf %s "(cached) " >&6
4424 else $as_nop
4425 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4426 # We make a subdir and do the tests there. Otherwise we can end up
4427 # making bogus files that we don't know about and never remove. For
4428 # instance it was reported that on HP-UX the gcc test will end up
4429 # making a dummy file named 'D' -- because '-MD' means "put the output
4430 # in D".
4431 rm -rf conftest.dir
4432 mkdir conftest.dir
4433 # Copy depcomp to subdir because otherwise we won't find it if we're
4434 # using a relative directory.
4435 cp "$am_depcomp" conftest.dir
4436 cd conftest.dir
4437 # We will build objects and dependencies in a subdirectory because
4438 # it helps to detect inapplicable dependency modes. For instance
4439 # both Tru64's cc and ICC support -MD to output dependencies as a
4440 # side effect of compilation, but ICC will put the dependencies in
4441 # the current directory while Tru64 will put them in the object
4442 # directory.
4443 mkdir sub
4444
4445 am_cv_CC_dependencies_compiler_type=none
4446 if test "$am_compiler_list" = ""; then
4447 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4448 fi
4449 am__universal=false
4450 case " $depcc " in #(
4451 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4452 esac
4453
4454 for depmode in $am_compiler_list; do
4455 # Setup a source with many dependencies, because some compilers
4456 # like to wrap large dependency lists on column 80 (with \), and
4457 # we should not choose a depcomp mode which is confused by this.
4458 #
4459 # We need to recreate these files for each test, as the compiler may
4460 # overwrite some of them when testing with obscure command lines.
4461 # This happens at least with the AIX C compiler.
4462 : > sub/conftest.c
4463 for i in 1 2 3 4 5 6; do
4464 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4465 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4466 # Solaris 10 /bin/sh.
4467 echo '/* dummy */' > sub/conftst$i.h
4468 done
4469 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4470
4471 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4472 # mode. It turns out that the SunPro C++ compiler does not properly
4473 # handle '-M -o', and we need to detect this. Also, some Intel
4474 # versions had trouble with output in subdirs.
4475 am__obj=sub/conftest.${OBJEXT-o}
4476 am__minus_obj="-o $am__obj"
4477 case $depmode in
4478 gcc)
4479 # This depmode causes a compiler race in universal mode.
4480 test "$am__universal" = false || continue
4481 ;;
4482 nosideeffect)
4483 # After this tag, mechanisms are not by side-effect, so they'll
4484 # only be used when explicitly requested.
4485 if test "x$enable_dependency_tracking" = xyes; then
4486 continue
4487 else
4488 break
4489 fi
4490 ;;
4491 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4492 # This compiler won't grok '-c -o', but also, the minuso test has
4493 # not run yet. These depmodes are late enough in the game, and
4494 # so weak that their functioning should not be impacted.
4495 am__obj=conftest.${OBJEXT-o}
4496 am__minus_obj=
4497 ;;
4498 none) break ;;
4499 esac
4500 if depmode=$depmode \
4501 source=sub/conftest.c object=$am__obj \
4502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4503 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4504 >/dev/null 2>conftest.err &&
4505 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4506 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4507 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4508 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4509 # icc doesn't choke on unknown options, it will just issue warnings
4510 # or remarks (even with -Werror). So we grep stderr for any message
4511 # that says an option was ignored or not supported.
4512 # When given -MP, icc 7.0 and 7.1 complain thusly:
4513 # icc: Command line warning: ignoring option '-M'; no argument required
4514 # The diagnosis changed in icc 8.0:
4515 # icc: Command line remark: option '-MP' not supported
4516 if (grep 'ignoring option' conftest.err ||
4517 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4518 am_cv_CC_dependencies_compiler_type=$depmode
4519 break
4520 fi
4521 fi
4522 done
4523
4524 cd ..
4525 rm -rf conftest.dir
4526 else
4527 am_cv_CC_dependencies_compiler_type=none
4528 fi
4529
4530 fi
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4532 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4533 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4534
4535 if
4536 test "x$enable_dependency_tracking" != xno \
4537 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4538 am__fastdepCC_TRUE=
4539 am__fastdepCC_FALSE='#'
4540 else
4541 am__fastdepCC_TRUE='#'
4542 am__fastdepCC_FALSE=
4543 fi
4544
4545
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4547 printf %s "checking whether ln -s works... " >&6; }
4548 LN_S=$as_ln_s
4549 if test "$LN_S" = "ln -s"; then
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551 printf "%s\n" "yes" >&6; }
4552 else
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4554 printf "%s\n" "no, using $LN_S" >&6; }
4555 fi
4556
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4558 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4559 set x ${MAKE-make}
4560 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4561 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4562 then :
4563 printf %s "(cached) " >&6
4564 else $as_nop
4565 cat >conftest.make <<\_ACEOF
4566 SHELL = /bin/sh
4567 all:
4568 @echo '@@@%%%=$(MAKE)=@@@%%%'
4569 _ACEOF
4570 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4571 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4572 *@@@%%%=?*=@@@%%%*)
4573 eval ac_cv_prog_make_${ac_make}_set=yes;;
4574 *)
4575 eval ac_cv_prog_make_${ac_make}_set=no;;
4576 esac
4577 rm -f conftest.make
4578 fi
4579 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4581 printf "%s\n" "yes" >&6; }
4582 SET_MAKE=
4583 else
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 printf "%s\n" "no" >&6; }
4586 SET_MAKE="MAKE=${MAKE-make}"
4587 fi
4588
4589 case `pwd` in
4590 *\ * | *\ *)
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4592 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4593 esac
4594
4595
4596
4597 macro_version='2.4.7'
4598 macro_revision='2.4.7'
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613 ltmain=$ac_aux_dir/ltmain.sh
4614
4615
4616
4617 # Make sure we can run config.sub.
4618 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4619 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4620
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4622 printf %s "checking build system type... " >&6; }
4623 if test ${ac_cv_build+y}
4624 then :
4625 printf %s "(cached) " >&6
4626 else $as_nop
4627 ac_build_alias=$build_alias
4628 test "x$ac_build_alias" = x &&
4629 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4630 test "x$ac_build_alias" = x &&
4631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4632 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4633 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4634
4635 fi
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4637 printf "%s\n" "$ac_cv_build" >&6; }
4638 case $ac_cv_build in
4639 *-*-*) ;;
4640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4641 esac
4642 build=$ac_cv_build
4643 ac_save_IFS=$IFS; IFS='-'
4644 set x $ac_cv_build
4645 shift
4646 build_cpu=$1
4647 build_vendor=$2
4648 shift; shift
4649 # Remember, the first character of IFS is used to create $*,
4650 # except with old shells:
4651 build_os=$*
4652 IFS=$ac_save_IFS
4653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4654
4655
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4657 printf %s "checking host system type... " >&6; }
4658 if test ${ac_cv_host+y}
4659 then :
4660 printf %s "(cached) " >&6
4661 else $as_nop
4662 if test "x$host_alias" = x; then
4663 ac_cv_host=$ac_cv_build
4664 else
4665 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4666 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4667 fi
4668
4669 fi
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4671 printf "%s\n" "$ac_cv_host" >&6; }
4672 case $ac_cv_host in
4673 *-*-*) ;;
4674 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4675 esac
4676 host=$ac_cv_host
4677 ac_save_IFS=$IFS; IFS='-'
4678 set x $ac_cv_host
4679 shift
4680 host_cpu=$1
4681 host_vendor=$2
4682 shift; shift
4683 # Remember, the first character of IFS is used to create $*,
4684 # except with old shells:
4685 host_os=$*
4686 IFS=$ac_save_IFS
4687 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4688
4689
4690 # Backslashify metacharacters that are still active within
4691 # double-quoted strings.
4692 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4693
4694 # Same as above, but do not quote variable references.
4695 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4696
4697 # Sed substitution to delay expansion of an escaped shell variable in a
4698 # double_quote_subst'ed string.
4699 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4700
4701 # Sed substitution to delay expansion of an escaped single quote.
4702 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4703
4704 # Sed substitution to avoid accidental globbing in evaled expressions
4705 no_glob_subst='s/\*/\\\*/g'
4706
4707 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4708 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4709 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4710
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4712 printf %s "checking how to print strings... " >&6; }
4713 # Test print first, because it will be a builtin if present.
4714 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4715 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4716 ECHO='print -r --'
4717 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4718 ECHO='printf %s\n'
4719 else
4720 # Use this function as a fallback that always works.
4721 func_fallback_echo ()
4722 {
4723 eval 'cat <<_LTECHO_EOF
4724 $1
4725 _LTECHO_EOF'
4726 }
4727 ECHO='func_fallback_echo'
4728 fi
4729
4730 # func_echo_all arg...
4731 # Invoke $ECHO with all args, space-separated.
4732 func_echo_all ()
4733 {
4734 $ECHO ""
4735 }
4736
4737 case $ECHO in
4738 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4739 printf "%s\n" "printf" >&6; } ;;
4740 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4741 printf "%s\n" "print -r" >&6; } ;;
4742 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4743 printf "%s\n" "cat" >&6; } ;;
4744 esac
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4760 printf %s "checking for a sed that does not truncate output... " >&6; }
4761 if test ${ac_cv_path_SED+y}
4762 then :
4763 printf %s "(cached) " >&6
4764 else $as_nop
4765 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4766 for ac_i in 1 2 3 4 5 6 7; do
4767 ac_script="$ac_script$as_nl$ac_script"
4768 done
4769 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4770 { ac_script=; unset ac_script;}
4771 if test -z "$SED"; then
4772 ac_path_SED_found=false
4773 # Loop through the user's path and test for each of PROGNAME-LIST
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777 IFS=$as_save_IFS
4778 case $as_dir in #(((
4779 '') as_dir=./ ;;
4780 */) ;;
4781 *) as_dir=$as_dir/ ;;
4782 esac
4783 for ac_prog in sed gsed
4784 do
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4787 as_fn_executable_p "$ac_path_SED" || continue
4788 # Check for GNU ac_path_SED and select it if it is found.
4789 # Check for GNU $ac_path_SED
4790 case `"$ac_path_SED" --version 2>&1` in
4791 *GNU*)
4792 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4793 *)
4794 ac_count=0
4795 printf %s 0123456789 >"conftest.in"
4796 while :
4797 do
4798 cat "conftest.in" "conftest.in" >"conftest.tmp"
4799 mv "conftest.tmp" "conftest.in"
4800 cp "conftest.in" "conftest.nl"
4801 printf "%s\n" '' >> "conftest.nl"
4802 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4804 as_fn_arith $ac_count + 1 && ac_count=$as_val
4805 if test $ac_count -gt ${ac_path_SED_max-0}; then
4806 # Best one so far, save it but keep looking for a better one
4807 ac_cv_path_SED="$ac_path_SED"
4808 ac_path_SED_max=$ac_count
4809 fi
4810 # 10*(2^10) chars as input seems more than enough
4811 test $ac_count -gt 10 && break
4812 done
4813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4814 esac
4815
4816 $ac_path_SED_found && break 3
4817 done
4818 done
4819 done
4820 IFS=$as_save_IFS
4821 if test -z "$ac_cv_path_SED"; then
4822 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4823 fi
4824 else
4825 ac_cv_path_SED=$SED
4826 fi
4827
4828 fi
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4830 printf "%s\n" "$ac_cv_path_SED" >&6; }
4831 SED="$ac_cv_path_SED"
4832 rm -f conftest.sed
4833
4834 test -z "$SED" && SED=sed
4835 Xsed="$SED -e 1s/^X//"
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4848 printf %s "checking for grep that handles long lines and -e... " >&6; }
4849 if test ${ac_cv_path_GREP+y}
4850 then :
4851 printf %s "(cached) " >&6
4852 else $as_nop
4853 if test -z "$GREP"; then
4854 ac_path_GREP_found=false
4855 # Loop through the user's path and test for each of PROGNAME-LIST
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4858 do
4859 IFS=$as_save_IFS
4860 case $as_dir in #(((
4861 '') as_dir=./ ;;
4862 */) ;;
4863 *) as_dir=$as_dir/ ;;
4864 esac
4865 for ac_prog in grep ggrep
4866 do
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4869 as_fn_executable_p "$ac_path_GREP" || continue
4870 # Check for GNU ac_path_GREP and select it if it is found.
4871 # Check for GNU $ac_path_GREP
4872 case `"$ac_path_GREP" --version 2>&1` in
4873 *GNU*)
4874 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4875 *)
4876 ac_count=0
4877 printf %s 0123456789 >"conftest.in"
4878 while :
4879 do
4880 cat "conftest.in" "conftest.in" >"conftest.tmp"
4881 mv "conftest.tmp" "conftest.in"
4882 cp "conftest.in" "conftest.nl"
4883 printf "%s\n" 'GREP' >> "conftest.nl"
4884 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4886 as_fn_arith $ac_count + 1 && ac_count=$as_val
4887 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4888 # Best one so far, save it but keep looking for a better one
4889 ac_cv_path_GREP="$ac_path_GREP"
4890 ac_path_GREP_max=$ac_count
4891 fi
4892 # 10*(2^10) chars as input seems more than enough
4893 test $ac_count -gt 10 && break
4894 done
4895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4896 esac
4897
4898 $ac_path_GREP_found && break 3
4899 done
4900 done
4901 done
4902 IFS=$as_save_IFS
4903 if test -z "$ac_cv_path_GREP"; then
4904 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4905 fi
4906 else
4907 ac_cv_path_GREP=$GREP
4908 fi
4909
4910 fi
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4912 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4913 GREP="$ac_cv_path_GREP"
4914
4915
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4917 printf %s "checking for egrep... " >&6; }
4918 if test ${ac_cv_path_EGREP+y}
4919 then :
4920 printf %s "(cached) " >&6
4921 else $as_nop
4922 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4923 then ac_cv_path_EGREP="$GREP -E"
4924 else
4925 if test -z "$EGREP"; then
4926 ac_path_EGREP_found=false
4927 # Loop through the user's path and test for each of PROGNAME-LIST
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4930 do
4931 IFS=$as_save_IFS
4932 case $as_dir in #(((
4933 '') as_dir=./ ;;
4934 */) ;;
4935 *) as_dir=$as_dir/ ;;
4936 esac
4937 for ac_prog in egrep
4938 do
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4941 as_fn_executable_p "$ac_path_EGREP" || continue
4942 # Check for GNU ac_path_EGREP and select it if it is found.
4943 # Check for GNU $ac_path_EGREP
4944 case `"$ac_path_EGREP" --version 2>&1` in
4945 *GNU*)
4946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4947 *)
4948 ac_count=0
4949 printf %s 0123456789 >"conftest.in"
4950 while :
4951 do
4952 cat "conftest.in" "conftest.in" >"conftest.tmp"
4953 mv "conftest.tmp" "conftest.in"
4954 cp "conftest.in" "conftest.nl"
4955 printf "%s\n" 'EGREP' >> "conftest.nl"
4956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958 as_fn_arith $ac_count + 1 && ac_count=$as_val
4959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4960 # Best one so far, save it but keep looking for a better one
4961 ac_cv_path_EGREP="$ac_path_EGREP"
4962 ac_path_EGREP_max=$ac_count
4963 fi
4964 # 10*(2^10) chars as input seems more than enough
4965 test $ac_count -gt 10 && break
4966 done
4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4968 esac
4969
4970 $ac_path_EGREP_found && break 3
4971 done
4972 done
4973 done
4974 IFS=$as_save_IFS
4975 if test -z "$ac_cv_path_EGREP"; then
4976 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4977 fi
4978 else
4979 ac_cv_path_EGREP=$EGREP
4980 fi
4981
4982 fi
4983 fi
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4985 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4986 EGREP="$ac_cv_path_EGREP"
4987
4988
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4990 printf %s "checking for fgrep... " >&6; }
4991 if test ${ac_cv_path_FGREP+y}
4992 then :
4993 printf %s "(cached) " >&6
4994 else $as_nop
4995 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4996 then ac_cv_path_FGREP="$GREP -F"
4997 else
4998 if test -z "$FGREP"; then
4999 ac_path_FGREP_found=false
5000 # Loop through the user's path and test for each of PROGNAME-LIST
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5003 do
5004 IFS=$as_save_IFS
5005 case $as_dir in #(((
5006 '') as_dir=./ ;;
5007 */) ;;
5008 *) as_dir=$as_dir/ ;;
5009 esac
5010 for ac_prog in fgrep
5011 do
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5014 as_fn_executable_p "$ac_path_FGREP" || continue
5015 # Check for GNU ac_path_FGREP and select it if it is found.
5016 # Check for GNU $ac_path_FGREP
5017 case `"$ac_path_FGREP" --version 2>&1` in
5018 *GNU*)
5019 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5020 *)
5021 ac_count=0
5022 printf %s 0123456789 >"conftest.in"
5023 while :
5024 do
5025 cat "conftest.in" "conftest.in" >"conftest.tmp"
5026 mv "conftest.tmp" "conftest.in"
5027 cp "conftest.in" "conftest.nl"
5028 printf "%s\n" 'FGREP' >> "conftest.nl"
5029 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031 as_fn_arith $ac_count + 1 && ac_count=$as_val
5032 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5033 # Best one so far, save it but keep looking for a better one
5034 ac_cv_path_FGREP="$ac_path_FGREP"
5035 ac_path_FGREP_max=$ac_count
5036 fi
5037 # 10*(2^10) chars as input seems more than enough
5038 test $ac_count -gt 10 && break
5039 done
5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 esac
5042
5043 $ac_path_FGREP_found && break 3
5044 done
5045 done
5046 done
5047 IFS=$as_save_IFS
5048 if test -z "$ac_cv_path_FGREP"; then
5049 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5050 fi
5051 else
5052 ac_cv_path_FGREP=$FGREP
5053 fi
5054
5055 fi
5056 fi
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5058 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5059 FGREP="$ac_cv_path_FGREP"
5060
5061
5062 test -z "$GREP" && GREP=grep
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082 # Check whether --with-gnu-ld was given.
5083 if test ${with_gnu_ld+y}
5084 then :
5085 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5086 else $as_nop
5087 with_gnu_ld=no
5088 fi
5089
5090 ac_prog=ld
5091 if test yes = "$GCC"; then
5092 # Check if gcc -print-prog-name=ld gives a path.
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5094 printf %s "checking for ld used by $CC... " >&6; }
5095 case $host in
5096 *-*-mingw*)
5097 # gcc leaves a trailing carriage return, which upsets mingw
5098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5099 *)
5100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5101 esac
5102 case $ac_prog in
5103 # Accept absolute paths.
5104 [\\/]* | ?:[\\/]*)
5105 re_direlt='/[^/][^/]*/\.\./'
5106 # Canonicalize the pathname of ld
5107 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5108 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5109 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5110 done
5111 test -z "$LD" && LD=$ac_prog
5112 ;;
5113 "")
5114 # If it fails, then pretend we aren't using GCC.
5115 ac_prog=ld
5116 ;;
5117 *)
5118 # If it is relative, then search for the first ld in PATH.
5119 with_gnu_ld=unknown
5120 ;;
5121 esac
5122 elif test yes = "$with_gnu_ld"; then
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5124 printf %s "checking for GNU ld... " >&6; }
5125 else
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5127 printf %s "checking for non-GNU ld... " >&6; }
5128 fi
5129 if test ${lt_cv_path_LD+y}
5130 then :
5131 printf %s "(cached) " >&6
5132 else $as_nop
5133 if test -z "$LD"; then
5134 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5135 for ac_dir in $PATH; do
5136 IFS=$lt_save_ifs
5137 test -z "$ac_dir" && ac_dir=.
5138 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5139 lt_cv_path_LD=$ac_dir/$ac_prog
5140 # Check to see if the program is GNU ld. I'd rather use --version,
5141 # but apparently some variants of GNU ld only accept -v.
5142 # Break only if it was the GNU/non-GNU ld that we prefer.
5143 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5144 *GNU* | *'with BFD'*)
5145 test no != "$with_gnu_ld" && break
5146 ;;
5147 *)
5148 test yes != "$with_gnu_ld" && break
5149 ;;
5150 esac
5151 fi
5152 done
5153 IFS=$lt_save_ifs
5154 else
5155 lt_cv_path_LD=$LD # Let the user override the test with a path.
5156 fi
5157 fi
5158
5159 LD=$lt_cv_path_LD
5160 if test -n "$LD"; then
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5162 printf "%s\n" "$LD" >&6; }
5163 else
5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 printf "%s\n" "no" >&6; }
5166 fi
5167 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5169 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5170 if test ${lt_cv_prog_gnu_ld+y}
5171 then :
5172 printf %s "(cached) " >&6
5173 else $as_nop
5174 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5175 case `$LD -v 2>&1 </dev/null` in
5176 *GNU* | *'with BFD'*)
5177 lt_cv_prog_gnu_ld=yes
5178 ;;
5179 *)
5180 lt_cv_prog_gnu_ld=no
5181 ;;
5182 esac
5183 fi
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5185 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5186 with_gnu_ld=$lt_cv_prog_gnu_ld
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5197 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5198 if test ${lt_cv_path_NM+y}
5199 then :
5200 printf %s "(cached) " >&6
5201 else $as_nop
5202 if test -n "$NM"; then
5203 # Let the user override the test.
5204 lt_cv_path_NM=$NM
5205 else
5206 lt_nm_to_check=${ac_tool_prefix}nm
5207 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5208 lt_nm_to_check="$lt_nm_to_check nm"
5209 fi
5210 for lt_tmp_nm in $lt_nm_to_check; do
5211 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5212 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5213 IFS=$lt_save_ifs
5214 test -z "$ac_dir" && ac_dir=.
5215 tmp_nm=$ac_dir/$lt_tmp_nm
5216 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5217 # Check to see if the nm accepts a BSD-compat flag.
5218 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5219 # nm: unknown option "B" ignored
5220 # Tru64's nm complains that /dev/null is an invalid object file
5221 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5222 case $build_os in
5223 mingw*) lt_bad_file=conftest.nm/nofile ;;
5224 *) lt_bad_file=/dev/null ;;
5225 esac
5226 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5227 *$lt_bad_file* | *'Invalid file or object type'*)
5228 lt_cv_path_NM="$tmp_nm -B"
5229 break 2
5230 ;;
5231 *)
5232 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5233 */dev/null*)
5234 lt_cv_path_NM="$tmp_nm -p"
5235 break 2
5236 ;;
5237 *)
5238 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5239 continue # so that we can try to find one that supports BSD flags
5240 ;;
5241 esac
5242 ;;
5243 esac
5244 fi
5245 done
5246 IFS=$lt_save_ifs
5247 done
5248 : ${lt_cv_path_NM=no}
5249 fi
5250 fi
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5252 printf "%s\n" "$lt_cv_path_NM" >&6; }
5253 if test no != "$lt_cv_path_NM"; then
5254 NM=$lt_cv_path_NM
5255 else
5256 # Didn't find any BSD compatible name lister, look for dumpbin.
5257 if test -n "$DUMPBIN"; then :
5258 # Let the user override the test.
5259 else
5260 if test -n "$ac_tool_prefix"; then
5261 for ac_prog in dumpbin "link -dump"
5262 do
5263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 printf %s "checking for $ac_word... " >&6; }
5267 if test ${ac_cv_prog_DUMPBIN+y}
5268 then :
5269 printf %s "(cached) " >&6
5270 else $as_nop
5271 if test -n "$DUMPBIN"; then
5272 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 case $as_dir in #(((
5279 '') as_dir=./ ;;
5280 */) ;;
5281 *) as_dir=$as_dir/ ;;
5282 esac
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289 done
5290 done
5291 IFS=$as_save_IFS
5292
5293 fi
5294 fi
5295 DUMPBIN=$ac_cv_prog_DUMPBIN
5296 if test -n "$DUMPBIN"; then
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5298 printf "%s\n" "$DUMPBIN" >&6; }
5299 else
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 printf "%s\n" "no" >&6; }
5302 fi
5303
5304
5305 test -n "$DUMPBIN" && break
5306 done
5307 fi
5308 if test -z "$DUMPBIN"; then
5309 ac_ct_DUMPBIN=$DUMPBIN
5310 for ac_prog in dumpbin "link -dump"
5311 do
5312 # Extract the first word of "$ac_prog", so it can be a program name with args.
5313 set dummy $ac_prog; ac_word=$2
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 printf %s "checking for $ac_word... " >&6; }
5316 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5317 then :
5318 printf %s "(cached) " >&6
5319 else $as_nop
5320 if test -n "$ac_ct_DUMPBIN"; then
5321 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 case $as_dir in #(((
5328 '') as_dir=./ ;;
5329 */) ;;
5330 *) as_dir=$as_dir/ ;;
5331 esac
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 fi
5343 fi
5344 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5345 if test -n "$ac_ct_DUMPBIN"; then
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5347 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5348 else
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 printf "%s\n" "no" >&6; }
5351 fi
5352
5353
5354 test -n "$ac_ct_DUMPBIN" && break
5355 done
5356
5357 if test "x$ac_ct_DUMPBIN" = x; then
5358 DUMPBIN=":"
5359 else
5360 case $cross_compiling:$ac_tool_warned in
5361 yes:)
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5363 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5364 ac_tool_warned=yes ;;
5365 esac
5366 DUMPBIN=$ac_ct_DUMPBIN
5367 fi
5368 fi
5369
5370 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5371 *COFF*)
5372 DUMPBIN="$DUMPBIN -symbols -headers"
5373 ;;
5374 *)
5375 DUMPBIN=:
5376 ;;
5377 esac
5378 fi
5379
5380 if test : != "$DUMPBIN"; then
5381 NM=$DUMPBIN
5382 fi
5383 fi
5384 test -z "$NM" && NM=nm
5385
5386
5387
5388
5389
5390
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5392 printf %s "checking the name lister ($NM) interface... " >&6; }
5393 if test ${lt_cv_nm_interface+y}
5394 then :
5395 printf %s "(cached) " >&6
5396 else $as_nop
5397 lt_cv_nm_interface="BSD nm"
5398 echo "int some_variable = 0;" > conftest.$ac_ext
5399 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5400 (eval "$ac_compile" 2>conftest.err)
5401 cat conftest.err >&5
5402 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5403 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5404 cat conftest.err >&5
5405 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5406 cat conftest.out >&5
5407 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5408 lt_cv_nm_interface="MS dumpbin"
5409 fi
5410 rm -f conftest*
5411 fi
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5413 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5414
5415 # find the maximum length of command line arguments
5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5417 printf %s "checking the maximum length of command line arguments... " >&6; }
5418 if test ${lt_cv_sys_max_cmd_len+y}
5419 then :
5420 printf %s "(cached) " >&6
5421 else $as_nop
5422 i=0
5423 teststring=ABCD
5424
5425 case $build_os in
5426 msdosdjgpp*)
5427 # On DJGPP, this test can blow up pretty badly due to problems in libc
5428 # (any single argument exceeding 2000 bytes causes a buffer overrun
5429 # during glob expansion). Even if it were fixed, the result of this
5430 # check would be larger than it should be.
5431 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5432 ;;
5433
5434 gnu*)
5435 # Under GNU Hurd, this test is not required because there is
5436 # no limit to the length of command line arguments.
5437 # Libtool will interpret -1 as no limit whatsoever
5438 lt_cv_sys_max_cmd_len=-1;
5439 ;;
5440
5441 cygwin* | mingw* | cegcc*)
5442 # On Win9x/ME, this test blows up -- it succeeds, but takes
5443 # about 5 minutes as the teststring grows exponentially.
5444 # Worse, since 9x/ME are not pre-emptively multitasking,
5445 # you end up with a "frozen" computer, even though with patience
5446 # the test eventually succeeds (with a max line length of 256k).
5447 # Instead, let's just punt: use the minimum linelength reported by
5448 # all of the supported platforms: 8192 (on NT/2K/XP).
5449 lt_cv_sys_max_cmd_len=8192;
5450 ;;
5451
5452 mint*)
5453 # On MiNT this can take a long time and run out of memory.
5454 lt_cv_sys_max_cmd_len=8192;
5455 ;;
5456
5457 amigaos*)
5458 # On AmigaOS with pdksh, this test takes hours, literally.
5459 # So we just punt and use a minimum line length of 8192.
5460 lt_cv_sys_max_cmd_len=8192;
5461 ;;
5462
5463 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5464 # This has been around since 386BSD, at least. Likely further.
5465 if test -x /sbin/sysctl; then
5466 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5467 elif test -x /usr/sbin/sysctl; then
5468 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5469 else
5470 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5471 fi
5472 # And add a safety zone
5473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5475 ;;
5476
5477 interix*)
5478 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5479 lt_cv_sys_max_cmd_len=196608
5480 ;;
5481
5482 os2*)
5483 # The test takes a long time on OS/2.
5484 lt_cv_sys_max_cmd_len=8192
5485 ;;
5486
5487 osf*)
5488 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5489 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5490 # nice to cause kernel panics so lets avoid the loop below.
5491 # First set a reasonable default.
5492 lt_cv_sys_max_cmd_len=16384
5493 #
5494 if test -x /sbin/sysconfig; then
5495 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5496 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5497 esac
5498 fi
5499 ;;
5500 sco3.2v5*)
5501 lt_cv_sys_max_cmd_len=102400
5502 ;;
5503 sysv5* | sco5v6* | sysv4.2uw2*)
5504 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5505 if test -n "$kargmax"; then
5506 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5507 else
5508 lt_cv_sys_max_cmd_len=32768
5509 fi
5510 ;;
5511 *)
5512 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5513 if test -n "$lt_cv_sys_max_cmd_len" && \
5514 test undefined != "$lt_cv_sys_max_cmd_len"; then
5515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5517 else
5518 # Make teststring a little bigger before we do anything with it.
5519 # a 1K string should be a reasonable start.
5520 for i in 1 2 3 4 5 6 7 8; do
5521 teststring=$teststring$teststring
5522 done
5523 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5524 # If test is not a shell built-in, we'll probably end up computing a
5525 # maximum length that is only half of the actual maximum length, but
5526 # we can't tell.
5527 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5528 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5529 test 17 != "$i" # 1/2 MB should be enough
5530 do
5531 i=`expr $i + 1`
5532 teststring=$teststring$teststring
5533 done
5534 # Only check the string length outside the loop.
5535 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5536 teststring=
5537 # Add a significant safety factor because C++ compilers can tack on
5538 # massive amounts of additional arguments before passing them to the
5539 # linker. It appears as though 1/2 is a usable value.
5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5541 fi
5542 ;;
5543 esac
5544
5545 fi
5546
5547 if test -n "$lt_cv_sys_max_cmd_len"; then
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5549 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5550 else
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5552 printf "%s\n" "none" >&6; }
5553 fi
5554 max_cmd_len=$lt_cv_sys_max_cmd_len
5555
5556
5557
5558
5559
5560
5561 : ${CP="cp -f"}
5562 : ${MV="mv -f"}
5563 : ${RM="rm -f"}
5564
5565 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5566 lt_unset=unset
5567 else
5568 lt_unset=false
5569 fi
5570
5571
5572
5573
5574
5575 # test EBCDIC or ASCII
5576 case `echo X|tr X '\101'` in
5577 A) # ASCII based system
5578 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5579 lt_SP2NL='tr \040 \012'
5580 lt_NL2SP='tr \015\012 \040\040'
5581 ;;
5582 *) # EBCDIC based system
5583 lt_SP2NL='tr \100 \n'
5584 lt_NL2SP='tr \r\n \100\100'
5585 ;;
5586 esac
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5597 printf %s "checking how to convert $build file names to $host format... " >&6; }
5598 if test ${lt_cv_to_host_file_cmd+y}
5599 then :
5600 printf %s "(cached) " >&6
5601 else $as_nop
5602 case $host in
5603 *-*-mingw* )
5604 case $build in
5605 *-*-mingw* ) # actually msys
5606 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5607 ;;
5608 *-*-cygwin* )
5609 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5610 ;;
5611 * ) # otherwise, assume *nix
5612 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5613 ;;
5614 esac
5615 ;;
5616 *-*-cygwin* )
5617 case $build in
5618 *-*-mingw* ) # actually msys
5619 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5620 ;;
5621 *-*-cygwin* )
5622 lt_cv_to_host_file_cmd=func_convert_file_noop
5623 ;;
5624 * ) # otherwise, assume *nix
5625 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5626 ;;
5627 esac
5628 ;;
5629 * ) # unhandled hosts (and "normal" native builds)
5630 lt_cv_to_host_file_cmd=func_convert_file_noop
5631 ;;
5632 esac
5633
5634 fi
5635
5636 to_host_file_cmd=$lt_cv_to_host_file_cmd
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5638 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5639
5640
5641
5642
5643
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5645 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5646 if test ${lt_cv_to_tool_file_cmd+y}
5647 then :
5648 printf %s "(cached) " >&6
5649 else $as_nop
5650 #assume ordinary cross tools, or native build.
5651 lt_cv_to_tool_file_cmd=func_convert_file_noop
5652 case $host in
5653 *-*-mingw* )
5654 case $build in
5655 *-*-mingw* ) # actually msys
5656 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5657 ;;
5658 esac
5659 ;;
5660 esac
5661
5662 fi
5663
5664 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5666 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5667
5668
5669
5670
5671
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5673 printf %s "checking for $LD option to reload object files... " >&6; }
5674 if test ${lt_cv_ld_reload_flag+y}
5675 then :
5676 printf %s "(cached) " >&6
5677 else $as_nop
5678 lt_cv_ld_reload_flag='-r'
5679 fi
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5681 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5682 reload_flag=$lt_cv_ld_reload_flag
5683 case $reload_flag in
5684 "" | " "*) ;;
5685 *) reload_flag=" $reload_flag" ;;
5686 esac
5687 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5688 case $host_os in
5689 cygwin* | mingw* | pw32* | cegcc*)
5690 if test yes != "$GCC"; then
5691 reload_cmds=false
5692 fi
5693 ;;
5694 darwin*)
5695 if test yes = "$GCC"; then
5696 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5697 else
5698 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5699 fi
5700 ;;
5701 esac
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711 if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}file; ac_word=$2
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 printf %s "checking for $ac_word... " >&6; }
5716 if test ${ac_cv_prog_FILECMD+y}
5717 then :
5718 printf %s "(cached) " >&6
5719 else $as_nop
5720 if test -n "$FILECMD"; then
5721 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726 IFS=$as_save_IFS
5727 case $as_dir in #(((
5728 '') as_dir=./ ;;
5729 */) ;;
5730 *) as_dir=$as_dir/ ;;
5731 esac
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 FILECMD=$ac_cv_prog_FILECMD
5745 if test -n "$FILECMD"; then
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5747 printf "%s\n" "$FILECMD" >&6; }
5748 else
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 printf "%s\n" "no" >&6; }
5751 fi
5752
5753
5754 fi
5755 if test -z "$ac_cv_prog_FILECMD"; then
5756 ac_ct_FILECMD=$FILECMD
5757 # Extract the first word of "file", so it can be a program name with args.
5758 set dummy file; ac_word=$2
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 printf %s "checking for $ac_word... " >&6; }
5761 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5762 then :
5763 printf %s "(cached) " >&6
5764 else $as_nop
5765 if test -n "$ac_ct_FILECMD"; then
5766 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771 IFS=$as_save_IFS
5772 case $as_dir in #(((
5773 '') as_dir=./ ;;
5774 */) ;;
5775 *) as_dir=$as_dir/ ;;
5776 esac
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_ac_ct_FILECMD="file"
5780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5790 if test -n "$ac_ct_FILECMD"; then
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5792 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5793 else
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 printf "%s\n" "no" >&6; }
5796 fi
5797
5798 if test "x$ac_ct_FILECMD" = x; then
5799 FILECMD=":"
5800 else
5801 case $cross_compiling:$ac_tool_warned in
5802 yes:)
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5804 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5805 ac_tool_warned=yes ;;
5806 esac
5807 FILECMD=$ac_ct_FILECMD
5808 fi
5809 else
5810 FILECMD="$ac_cv_prog_FILECMD"
5811 fi
5812
5813
5814
5815
5816
5817
5818
5819 if test -n "$ac_tool_prefix"; then
5820 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5821 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 printf %s "checking for $ac_word... " >&6; }
5824 if test ${ac_cv_prog_OBJDUMP+y}
5825 then :
5826 printf %s "(cached) " >&6
5827 else $as_nop
5828 if test -n "$OBJDUMP"; then
5829 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 case $as_dir in #(((
5836 '') as_dir=./ ;;
5837 */) ;;
5838 *) as_dir=$as_dir/ ;;
5839 esac
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846 done
5847 done
5848 IFS=$as_save_IFS
5849
5850 fi
5851 fi
5852 OBJDUMP=$ac_cv_prog_OBJDUMP
5853 if test -n "$OBJDUMP"; then
5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5855 printf "%s\n" "$OBJDUMP" >&6; }
5856 else
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 printf "%s\n" "no" >&6; }
5859 fi
5860
5861
5862 fi
5863 if test -z "$ac_cv_prog_OBJDUMP"; then
5864 ac_ct_OBJDUMP=$OBJDUMP
5865 # Extract the first word of "objdump", so it can be a program name with args.
5866 set dummy objdump; ac_word=$2
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 printf %s "checking for $ac_word... " >&6; }
5869 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5870 then :
5871 printf %s "(cached) " >&6
5872 else $as_nop
5873 if test -n "$ac_ct_OBJDUMP"; then
5874 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879 IFS=$as_save_IFS
5880 case $as_dir in #(((
5881 '') as_dir=./ ;;
5882 */) ;;
5883 *) as_dir=$as_dir/ ;;
5884 esac
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5887 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895 fi
5896 fi
5897 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5898 if test -n "$ac_ct_OBJDUMP"; then
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5900 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5901 else
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 printf "%s\n" "no" >&6; }
5904 fi
5905
5906 if test "x$ac_ct_OBJDUMP" = x; then
5907 OBJDUMP="false"
5908 else
5909 case $cross_compiling:$ac_tool_warned in
5910 yes:)
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5913 ac_tool_warned=yes ;;
5914 esac
5915 OBJDUMP=$ac_ct_OBJDUMP
5916 fi
5917 else
5918 OBJDUMP="$ac_cv_prog_OBJDUMP"
5919 fi
5920
5921 test -z "$OBJDUMP" && OBJDUMP=objdump
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5932 printf %s "checking how to recognize dependent libraries... " >&6; }
5933 if test ${lt_cv_deplibs_check_method+y}
5934 then :
5935 printf %s "(cached) " >&6
5936 else $as_nop
5937 lt_cv_file_magic_cmd='$MAGIC_CMD'
5938 lt_cv_file_magic_test_file=
5939 lt_cv_deplibs_check_method='unknown'
5940 # Need to set the preceding variable on all platforms that support
5941 # interlibrary dependencies.
5942 # 'none' -- dependencies not supported.
5943 # 'unknown' -- same as none, but documents that we really don't know.
5944 # 'pass_all' -- all dependencies passed with no checks.
5945 # 'test_compile' -- check by making test program.
5946 # 'file_magic [[regex]]' -- check by looking for files in library path
5947 # that responds to the $file_magic_cmd with a given extended regex.
5948 # If you have 'file' or equivalent on your system and you're not sure
5949 # whether 'pass_all' will *always* work, you probably want this one.
5950
5951 case $host_os in
5952 aix[4-9]*)
5953 lt_cv_deplibs_check_method=pass_all
5954 ;;
5955
5956 beos*)
5957 lt_cv_deplibs_check_method=pass_all
5958 ;;
5959
5960 bsdi[45]*)
5961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5962 lt_cv_file_magic_cmd='$FILECMD -L'
5963 lt_cv_file_magic_test_file=/shlib/libc.so
5964 ;;
5965
5966 cygwin*)
5967 # func_win32_libid is a shell function defined in ltmain.sh
5968 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5969 lt_cv_file_magic_cmd='func_win32_libid'
5970 ;;
5971
5972 mingw* | pw32*)
5973 # Base MSYS/MinGW do not provide the 'file' command needed by
5974 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5975 # unless we find 'file', for example because we are cross-compiling.
5976 if ( file / ) >/dev/null 2>&1; then
5977 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5978 lt_cv_file_magic_cmd='func_win32_libid'
5979 else
5980 # Keep this pattern in sync with the one in func_win32_libid.
5981 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5982 lt_cv_file_magic_cmd='$OBJDUMP -f'
5983 fi
5984 ;;
5985
5986 cegcc*)
5987 # use the weaker test based on 'objdump'. See mingw*.
5988 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5989 lt_cv_file_magic_cmd='$OBJDUMP -f'
5990 ;;
5991
5992 darwin* | rhapsody*)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995
5996 freebsd* | dragonfly* | midnightbsd*)
5997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5998 case $host_cpu in
5999 i*86 )
6000 # Not sure whether the presence of OpenBSD here was a mistake.
6001 # Let's accept both of them until this is cleared up.
6002 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6003 lt_cv_file_magic_cmd=$FILECMD
6004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6005 ;;
6006 esac
6007 else
6008 lt_cv_deplibs_check_method=pass_all
6009 fi
6010 ;;
6011
6012 haiku*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016 hpux10.20* | hpux11*)
6017 lt_cv_file_magic_cmd=$FILECMD
6018 case $host_cpu in
6019 ia64*)
6020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6021 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6022 ;;
6023 hppa*64*)
6024 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]'
6025 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6026 ;;
6027 *)
6028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6029 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6030 ;;
6031 esac
6032 ;;
6033
6034 interix[3-9]*)
6035 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6037 ;;
6038
6039 irix5* | irix6* | nonstopux*)
6040 case $LD in
6041 *-32|*"-32 ") libmagic=32-bit;;
6042 *-n32|*"-n32 ") libmagic=N32;;
6043 *-64|*"-64 ") libmagic=64-bit;;
6044 *) libmagic=never-match;;
6045 esac
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048
6049 # This must be glibc/ELF.
6050 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
6053
6054 netbsd*)
6055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6057 else
6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6059 fi
6060 ;;
6061
6062 newos6*)
6063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6064 lt_cv_file_magic_cmd=$FILECMD
6065 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6066 ;;
6067
6068 *nto* | *qnx*)
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071
6072 openbsd* | bitrig*)
6073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6075 else
6076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6077 fi
6078 ;;
6079
6080 osf3* | osf4* | osf5*)
6081 lt_cv_deplibs_check_method=pass_all
6082 ;;
6083
6084 rdos*)
6085 lt_cv_deplibs_check_method=pass_all
6086 ;;
6087
6088 solaris*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6093 lt_cv_deplibs_check_method=pass_all
6094 ;;
6095
6096 sysv4 | sysv4.3*)
6097 case $host_vendor in
6098 motorola)
6099 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]'
6100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6101 ;;
6102 ncr)
6103 lt_cv_deplibs_check_method=pass_all
6104 ;;
6105 sequent)
6106 lt_cv_file_magic_cmd='/bin/file'
6107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6108 ;;
6109 sni)
6110 lt_cv_file_magic_cmd='/bin/file'
6111 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6112 lt_cv_file_magic_test_file=/lib/libc.so
6113 ;;
6114 siemens)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117 pc)
6118 lt_cv_deplibs_check_method=pass_all
6119 ;;
6120 esac
6121 ;;
6122
6123 tpf*)
6124 lt_cv_deplibs_check_method=pass_all
6125 ;;
6126 os2*)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129 esac
6130
6131 fi
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6133 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6134
6135 file_magic_glob=
6136 want_nocaseglob=no
6137 if test "$build" = "$host"; then
6138 case $host_os in
6139 mingw* | pw32*)
6140 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6141 want_nocaseglob=yes
6142 else
6143 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6144 fi
6145 ;;
6146 esac
6147 fi
6148
6149 file_magic_cmd=$lt_cv_file_magic_cmd
6150 deplibs_check_method=$lt_cv_deplibs_check_method
6151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 if test -n "$ac_tool_prefix"; then
6175 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6176 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 printf %s "checking for $ac_word... " >&6; }
6179 if test ${ac_cv_prog_DLLTOOL+y}
6180 then :
6181 printf %s "(cached) " >&6
6182 else $as_nop
6183 if test -n "$DLLTOOL"; then
6184 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189 IFS=$as_save_IFS
6190 case $as_dir in #(((
6191 '') as_dir=./ ;;
6192 */) ;;
6193 *) as_dir=$as_dir/ ;;
6194 esac
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6197 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 DLLTOOL=$ac_cv_prog_DLLTOOL
6208 if test -n "$DLLTOOL"; then
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6210 printf "%s\n" "$DLLTOOL" >&6; }
6211 else
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 printf "%s\n" "no" >&6; }
6214 fi
6215
6216
6217 fi
6218 if test -z "$ac_cv_prog_DLLTOOL"; then
6219 ac_ct_DLLTOOL=$DLLTOOL
6220 # Extract the first word of "dlltool", so it can be a program name with args.
6221 set dummy dlltool; ac_word=$2
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 printf %s "checking for $ac_word... " >&6; }
6224 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6225 then :
6226 printf %s "(cached) " >&6
6227 else $as_nop
6228 if test -n "$ac_ct_DLLTOOL"; then
6229 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 case $as_dir in #(((
6236 '') as_dir=./ ;;
6237 */) ;;
6238 *) as_dir=$as_dir/ ;;
6239 esac
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6253 if test -n "$ac_ct_DLLTOOL"; then
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6255 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6256 else
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 printf "%s\n" "no" >&6; }
6259 fi
6260
6261 if test "x$ac_ct_DLLTOOL" = x; then
6262 DLLTOOL="false"
6263 else
6264 case $cross_compiling:$ac_tool_warned in
6265 yes:)
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268 ac_tool_warned=yes ;;
6269 esac
6270 DLLTOOL=$ac_ct_DLLTOOL
6271 fi
6272 else
6273 DLLTOOL="$ac_cv_prog_DLLTOOL"
6274 fi
6275
6276 test -z "$DLLTOOL" && DLLTOOL=dlltool
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6288 printf %s "checking how to associate runtime and link libraries... " >&6; }
6289 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6290 then :
6291 printf %s "(cached) " >&6
6292 else $as_nop
6293 lt_cv_sharedlib_from_linklib_cmd='unknown'
6294
6295 case $host_os in
6296 cygwin* | mingw* | pw32* | cegcc*)
6297 # two different shell functions defined in ltmain.sh;
6298 # decide which one to use based on capabilities of $DLLTOOL
6299 case `$DLLTOOL --help 2>&1` in
6300 *--identify-strict*)
6301 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6302 ;;
6303 *)
6304 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6305 ;;
6306 esac
6307 ;;
6308 *)
6309 # fallback: assume linklib IS sharedlib
6310 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6311 ;;
6312 esac
6313
6314 fi
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6316 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6317 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6318 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6319
6320
6321
6322
6323
6324
6325
6326
6327 if test -n "$ac_tool_prefix"; then
6328 for ac_prog in ar
6329 do
6330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 printf %s "checking for $ac_word... " >&6; }
6334 if test ${ac_cv_prog_AR+y}
6335 then :
6336 printf %s "(cached) " >&6
6337 else $as_nop
6338 if test -n "$AR"; then
6339 ac_cv_prog_AR="$AR" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344 IFS=$as_save_IFS
6345 case $as_dir in #(((
6346 '') as_dir=./ ;;
6347 */) ;;
6348 *) as_dir=$as_dir/ ;;
6349 esac
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6352 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356 done
6357 done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 AR=$ac_cv_prog_AR
6363 if test -n "$AR"; then
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6365 printf "%s\n" "$AR" >&6; }
6366 else
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 printf "%s\n" "no" >&6; }
6369 fi
6370
6371
6372 test -n "$AR" && break
6373 done
6374 fi
6375 if test -z "$AR"; then
6376 ac_ct_AR=$AR
6377 for ac_prog in ar
6378 do
6379 # Extract the first word of "$ac_prog", so it can be a program name with args.
6380 set dummy $ac_prog; ac_word=$2
6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 printf %s "checking for $ac_word... " >&6; }
6383 if test ${ac_cv_prog_ac_ct_AR+y}
6384 then :
6385 printf %s "(cached) " >&6
6386 else $as_nop
6387 if test -n "$ac_ct_AR"; then
6388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393 IFS=$as_save_IFS
6394 case $as_dir in #(((
6395 '') as_dir=./ ;;
6396 */) ;;
6397 *) as_dir=$as_dir/ ;;
6398 esac
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_ac_ct_AR="$ac_prog"
6402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6412 if test -n "$ac_ct_AR"; then
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6414 printf "%s\n" "$ac_ct_AR" >&6; }
6415 else
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 printf "%s\n" "no" >&6; }
6418 fi
6419
6420
6421 test -n "$ac_ct_AR" && break
6422 done
6423
6424 if test "x$ac_ct_AR" = x; then
6425 AR="false"
6426 else
6427 case $cross_compiling:$ac_tool_warned in
6428 yes:)
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431 ac_tool_warned=yes ;;
6432 esac
6433 AR=$ac_ct_AR
6434 fi
6435 fi
6436
6437 : ${AR=ar}
6438
6439
6440
6441
6442
6443
6444 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6445 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6446 # higher priority because thats what people were doing historically (setting
6447 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6448 # variable obsoleted/removed.
6449
6450 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6451 lt_ar_flags=$AR_FLAGS
6452
6453
6454
6455
6456
6457
6458 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6459 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6460
6461
6462
6463
6464
6465
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6467 printf %s "checking for archiver @FILE support... " >&6; }
6468 if test ${lt_cv_ar_at_file+y}
6469 then :
6470 printf %s "(cached) " >&6
6471 else $as_nop
6472 lt_cv_ar_at_file=no
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475
6476 int
6477 main (void)
6478 {
6479
6480 ;
6481 return 0;
6482 }
6483 _ACEOF
6484 if ac_fn_c_try_compile "$LINENO"
6485 then :
6486 echo conftest.$ac_objext > conftest.lst
6487 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6489 (eval $lt_ar_try) 2>&5
6490 ac_status=$?
6491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6492 test $ac_status = 0; }
6493 if test 0 -eq "$ac_status"; then
6494 # Ensure the archiver fails upon bogus file names.
6495 rm -f conftest.$ac_objext libconftest.a
6496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6497 (eval $lt_ar_try) 2>&5
6498 ac_status=$?
6499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500 test $ac_status = 0; }
6501 if test 0 -ne "$ac_status"; then
6502 lt_cv_ar_at_file=@
6503 fi
6504 fi
6505 rm -f conftest.* libconftest.a
6506
6507 fi
6508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6509
6510 fi
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6512 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6513
6514 if test no = "$lt_cv_ar_at_file"; then
6515 archiver_list_spec=
6516 else
6517 archiver_list_spec=$lt_cv_ar_at_file
6518 fi
6519
6520
6521
6522
6523
6524
6525
6526 if test -n "$ac_tool_prefix"; then
6527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6528 set dummy ${ac_tool_prefix}strip; ac_word=$2
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 printf %s "checking for $ac_word... " >&6; }
6531 if test ${ac_cv_prog_STRIP+y}
6532 then :
6533 printf %s "(cached) " >&6
6534 else $as_nop
6535 if test -n "$STRIP"; then
6536 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 case $as_dir in #(((
6543 '') as_dir=./ ;;
6544 */) ;;
6545 *) as_dir=$as_dir/ ;;
6546 esac
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 STRIP=$ac_cv_prog_STRIP
6560 if test -n "$STRIP"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6562 printf "%s\n" "$STRIP" >&6; }
6563 else
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 printf "%s\n" "no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$ac_cv_prog_STRIP"; then
6571 ac_ct_STRIP=$STRIP
6572 # Extract the first word of "strip", so it can be a program name with args.
6573 set dummy strip; ac_word=$2
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 printf %s "checking for $ac_word... " >&6; }
6576 if test ${ac_cv_prog_ac_ct_STRIP+y}
6577 then :
6578 printf %s "(cached) " >&6
6579 else $as_nop
6580 if test -n "$ac_ct_STRIP"; then
6581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586 IFS=$as_save_IFS
6587 case $as_dir in #(((
6588 '') as_dir=./ ;;
6589 */) ;;
6590 *) as_dir=$as_dir/ ;;
6591 esac
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6594 ac_cv_prog_ac_ct_STRIP="strip"
6595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602 fi
6603 fi
6604 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6605 if test -n "$ac_ct_STRIP"; then
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6607 printf "%s\n" "$ac_ct_STRIP" >&6; }
6608 else
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 printf "%s\n" "no" >&6; }
6611 fi
6612
6613 if test "x$ac_ct_STRIP" = x; then
6614 STRIP=":"
6615 else
6616 case $cross_compiling:$ac_tool_warned in
6617 yes:)
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6621 esac
6622 STRIP=$ac_ct_STRIP
6623 fi
6624 else
6625 STRIP="$ac_cv_prog_STRIP"
6626 fi
6627
6628 test -z "$STRIP" && STRIP=:
6629
6630
6631
6632
6633
6634
6635 if test -n "$ac_tool_prefix"; then
6636 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 printf %s "checking for $ac_word... " >&6; }
6640 if test ${ac_cv_prog_RANLIB+y}
6641 then :
6642 printf %s "(cached) " >&6
6643 else $as_nop
6644 if test -n "$RANLIB"; then
6645 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 case $as_dir in #(((
6652 '') as_dir=./ ;;
6653 */) ;;
6654 *) as_dir=$as_dir/ ;;
6655 esac
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 RANLIB=$ac_cv_prog_RANLIB
6669 if test -n "$RANLIB"; then
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6671 printf "%s\n" "$RANLIB" >&6; }
6672 else
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 printf "%s\n" "no" >&6; }
6675 fi
6676
6677
6678 fi
6679 if test -z "$ac_cv_prog_RANLIB"; then
6680 ac_ct_RANLIB=$RANLIB
6681 # Extract the first word of "ranlib", so it can be a program name with args.
6682 set dummy ranlib; ac_word=$2
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 printf %s "checking for $ac_word... " >&6; }
6685 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6686 then :
6687 printf %s "(cached) " >&6
6688 else $as_nop
6689 if test -n "$ac_ct_RANLIB"; then
6690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695 IFS=$as_save_IFS
6696 case $as_dir in #(((
6697 '') as_dir=./ ;;
6698 */) ;;
6699 *) as_dir=$as_dir/ ;;
6700 esac
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_ac_ct_RANLIB="ranlib"
6704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6714 if test -n "$ac_ct_RANLIB"; then
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6716 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6717 else
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 printf "%s\n" "no" >&6; }
6720 fi
6721
6722 if test "x$ac_ct_RANLIB" = x; then
6723 RANLIB=":"
6724 else
6725 case $cross_compiling:$ac_tool_warned in
6726 yes:)
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729 ac_tool_warned=yes ;;
6730 esac
6731 RANLIB=$ac_ct_RANLIB
6732 fi
6733 else
6734 RANLIB="$ac_cv_prog_RANLIB"
6735 fi
6736
6737 test -z "$RANLIB" && RANLIB=:
6738
6739
6740
6741
6742
6743
6744 # Determine commands to create old-style static archives.
6745 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6746 old_postinstall_cmds='chmod 644 $oldlib'
6747 old_postuninstall_cmds=
6748
6749 if test -n "$RANLIB"; then
6750 case $host_os in
6751 bitrig* | openbsd*)
6752 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6753 ;;
6754 *)
6755 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6756 ;;
6757 esac
6758 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6759 fi
6760
6761 case $host_os in
6762 darwin*)
6763 lock_old_archive_extraction=yes ;;
6764 *)
6765 lock_old_archive_extraction=no ;;
6766 esac
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806 # If no C compiler was specified, use CC.
6807 LTCC=${LTCC-"$CC"}
6808
6809 # If no C compiler flags were specified, use CFLAGS.
6810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6811
6812 # Allow CC to be a program name with arguments.
6813 compiler=$CC
6814
6815
6816 # Check for command to grab the raw symbol name followed by C symbol from nm.
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6818 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6819 if test ${lt_cv_sys_global_symbol_pipe+y}
6820 then :
6821 printf %s "(cached) " >&6
6822 else $as_nop
6823
6824 # These are sane defaults that work on at least a few old systems.
6825 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6826
6827 # Character class describing NM global symbol codes.
6828 symcode='[BCDEGRST]'
6829
6830 # Regexp to match symbols that can be accessed directly from C.
6831 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6832
6833 # Define system-specific variables.
6834 case $host_os in
6835 aix*)
6836 symcode='[BCDT]'
6837 ;;
6838 cygwin* | mingw* | pw32* | cegcc*)
6839 symcode='[ABCDGISTW]'
6840 ;;
6841 hpux*)
6842 if test ia64 = "$host_cpu"; then
6843 symcode='[ABCDEGRST]'
6844 fi
6845 ;;
6846 irix* | nonstopux*)
6847 symcode='[BCDEGRST]'
6848 ;;
6849 osf*)
6850 symcode='[BCDEGQRST]'
6851 ;;
6852 solaris*)
6853 symcode='[BDRT]'
6854 ;;
6855 sco3.2v5*)
6856 symcode='[DT]'
6857 ;;
6858 sysv4.2uw2*)
6859 symcode='[DT]'
6860 ;;
6861 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6862 symcode='[ABDT]'
6863 ;;
6864 sysv4)
6865 symcode='[DFNSTU]'
6866 ;;
6867 esac
6868
6869 # If we're using GNU nm, then use its standard symbol codes.
6870 case `$NM -V 2>&1` in
6871 *GNU* | *'with BFD'*)
6872 symcode='[ABCDGIRSTW]' ;;
6873 esac
6874
6875 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6876 # Gets list of data symbols to import.
6877 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6878 # Adjust the below global symbol transforms to fixup imported variables.
6879 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6880 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6881 lt_c_name_lib_hook="\
6882 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6883 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6884 else
6885 # Disable hooks by default.
6886 lt_cv_sys_global_symbol_to_import=
6887 lt_cdecl_hook=
6888 lt_c_name_hook=
6889 lt_c_name_lib_hook=
6890 fi
6891
6892 # Transform an extracted symbol line into a proper C declaration.
6893 # Some systems (esp. on ia64) link data and code symbols differently,
6894 # so use this general approach.
6895 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6896 $lt_cdecl_hook\
6897 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6898 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6899
6900 # Transform an extracted symbol line into symbol name and symbol address
6901 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6902 $lt_c_name_hook\
6903 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6904 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6905
6906 # Transform an extracted symbol line into symbol name with lib prefix and
6907 # symbol address.
6908 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6909 $lt_c_name_lib_hook\
6910 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6911 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6912 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6913
6914 # Handle CRLF in mingw tool chain
6915 opt_cr=
6916 case $build_os in
6917 mingw*)
6918 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6919 ;;
6920 esac
6921
6922 # Try without a prefix underscore, then with it.
6923 for ac_symprfx in "" "_"; do
6924
6925 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6926 symxfrm="\\1 $ac_symprfx\\2 \\2"
6927
6928 # Write the raw and C identifiers.
6929 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6930 # Fake it for dumpbin and say T for any non-static function,
6931 # D for any global variable and I for any imported variable.
6932 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6933 # which start with @ or ?.
6934 lt_cv_sys_global_symbol_pipe="$AWK '"\
6935 " {last_section=section; section=\$ 3};"\
6936 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6937 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6938 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6939 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6940 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6941 " \$ 0!~/External *\|/{next};"\
6942 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6943 " {if(hide[section]) next};"\
6944 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6945 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6946 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6947 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6948 " ' prfx=^$ac_symprfx"
6949 else
6950 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6951 fi
6952 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6953
6954 # Check to see that the pipe works correctly.
6955 pipe_works=no
6956
6957 rm -f conftest*
6958 cat > conftest.$ac_ext <<_LT_EOF
6959 #ifdef __cplusplus
6960 extern "C" {
6961 #endif
6962 char nm_test_var;
6963 void nm_test_func(void);
6964 void nm_test_func(void){}
6965 #ifdef __cplusplus
6966 }
6967 #endif
6968 int main(){nm_test_var='a';nm_test_func();return(0);}
6969 _LT_EOF
6970
6971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6972 (eval $ac_compile) 2>&5
6973 ac_status=$?
6974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6975 test $ac_status = 0; }; then
6976 # Now try to grab the symbols.
6977 nlist=conftest.nm
6978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6979 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6980 ac_status=$?
6981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6982 test $ac_status = 0; } && test -s "$nlist"; then
6983 # Try sorting and uniquifying the output.
6984 if sort "$nlist" | uniq > "$nlist"T; then
6985 mv -f "$nlist"T "$nlist"
6986 else
6987 rm -f "$nlist"T
6988 fi
6989
6990 # Make sure that we snagged all the symbols we need.
6991 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6992 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6993 cat <<_LT_EOF > conftest.$ac_ext
6994 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6995 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6996 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6997 relocations are performed -- see ld's documentation on pseudo-relocs. */
6998 # define LT_DLSYM_CONST
6999 #elif defined __osf__
7000 /* This system does not cope well with relocations in const data. */
7001 # define LT_DLSYM_CONST
7002 #else
7003 # define LT_DLSYM_CONST const
7004 #endif
7005
7006 #ifdef __cplusplus
7007 extern "C" {
7008 #endif
7009
7010 _LT_EOF
7011 # Now generate the symbol file.
7012 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7013
7014 cat <<_LT_EOF >> conftest.$ac_ext
7015
7016 /* The mapping between symbol names and symbols. */
7017 LT_DLSYM_CONST struct {
7018 const char *name;
7019 void *address;
7020 }
7021 lt__PROGRAM__LTX_preloaded_symbols[] =
7022 {
7023 { "@PROGRAM@", (void *) 0 },
7024 _LT_EOF
7025 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7026 cat <<\_LT_EOF >> conftest.$ac_ext
7027 {0, (void *) 0}
7028 };
7029
7030 /* This works around a problem in FreeBSD linker */
7031 #ifdef FREEBSD_WORKAROUND
7032 static const void *lt_preloaded_setup() {
7033 return lt__PROGRAM__LTX_preloaded_symbols;
7034 }
7035 #endif
7036
7037 #ifdef __cplusplus
7038 }
7039 #endif
7040 _LT_EOF
7041 # Now try linking the two files.
7042 mv conftest.$ac_objext conftstm.$ac_objext
7043 lt_globsym_save_LIBS=$LIBS
7044 lt_globsym_save_CFLAGS=$CFLAGS
7045 LIBS=conftstm.$ac_objext
7046 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7048 (eval $ac_link) 2>&5
7049 ac_status=$?
7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7052 pipe_works=yes
7053 fi
7054 LIBS=$lt_globsym_save_LIBS
7055 CFLAGS=$lt_globsym_save_CFLAGS
7056 else
7057 echo "cannot find nm_test_func in $nlist" >&5
7058 fi
7059 else
7060 echo "cannot find nm_test_var in $nlist" >&5
7061 fi
7062 else
7063 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7064 fi
7065 else
7066 echo "$progname: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7068 fi
7069 rm -rf conftest* conftst*
7070
7071 # Do not use the global_symbol_pipe unless it works.
7072 if test yes = "$pipe_works"; then
7073 break
7074 else
7075 lt_cv_sys_global_symbol_pipe=
7076 fi
7077 done
7078
7079 fi
7080
7081 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7082 lt_cv_sys_global_symbol_to_cdecl=
7083 fi
7084 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7086 printf "%s\n" "failed" >&6; }
7087 else
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7089 printf "%s\n" "ok" >&6; }
7090 fi
7091
7092 # Response file support.
7093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7094 nm_file_list_spec='@'
7095 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7096 nm_file_list_spec='@'
7097 fi
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7136 printf %s "checking for sysroot... " >&6; }
7137
7138 # Check whether --with-sysroot was given.
7139 if test ${with_sysroot+y}
7140 then :
7141 withval=$with_sysroot;
7142 else $as_nop
7143 with_sysroot=no
7144 fi
7145
7146
7147 lt_sysroot=
7148 case $with_sysroot in #(
7149 yes)
7150 if test yes = "$GCC"; then
7151 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7152 fi
7153 ;; #(
7154 /*)
7155 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7156 ;; #(
7157 no|'')
7158 ;; #(
7159 *)
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7161 printf "%s\n" "$with_sysroot" >&6; }
7162 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7163 ;;
7164 esac
7165
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7167 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7168
7169
7170
7171
7172
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7174 printf %s "checking for a working dd... " >&6; }
7175 if test ${ac_cv_path_lt_DD+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else $as_nop
7179 printf 0123456789abcdef0123456789abcdef >conftest.i
7180 cat conftest.i conftest.i >conftest2.i
7181 : ${lt_DD:=$DD}
7182 if test -z "$lt_DD"; then
7183 ac_path_lt_DD_found=false
7184 # Loop through the user's path and test for each of PROGNAME-LIST
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188 IFS=$as_save_IFS
7189 case $as_dir in #(((
7190 '') as_dir=./ ;;
7191 */) ;;
7192 *) as_dir=$as_dir/ ;;
7193 esac
7194 for ac_prog in dd
7195 do
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7198 as_fn_executable_p "$ac_path_lt_DD" || continue
7199 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7200 cmp -s conftest.i conftest.out \
7201 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7202 fi
7203 $ac_path_lt_DD_found && break 3
7204 done
7205 done
7206 done
7207 IFS=$as_save_IFS
7208 if test -z "$ac_cv_path_lt_DD"; then
7209 :
7210 fi
7211 else
7212 ac_cv_path_lt_DD=$lt_DD
7213 fi
7214
7215 rm -f conftest.i conftest2.i conftest.out
7216 fi
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7218 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7219
7220
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7222 printf %s "checking how to truncate binary pipes... " >&6; }
7223 if test ${lt_cv_truncate_bin+y}
7224 then :
7225 printf %s "(cached) " >&6
7226 else $as_nop
7227 printf 0123456789abcdef0123456789abcdef >conftest.i
7228 cat conftest.i conftest.i >conftest2.i
7229 lt_cv_truncate_bin=
7230 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7231 cmp -s conftest.i conftest.out \
7232 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7233 fi
7234 rm -f conftest.i conftest2.i conftest.out
7235 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7236 fi
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7238 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7239
7240
7241
7242
7243
7244
7245
7246 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7247 func_cc_basename ()
7248 {
7249 for cc_temp in $*""; do
7250 case $cc_temp in
7251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7253 \-*) ;;
7254 *) break;;
7255 esac
7256 done
7257 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7258 }
7259
7260 # Check whether --enable-libtool-lock was given.
7261 if test ${enable_libtool_lock+y}
7262 then :
7263 enableval=$enable_libtool_lock;
7264 fi
7265
7266 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7267
7268 # Some flags need to be propagated to the compiler or linker for good
7269 # libtool support.
7270 case $host in
7271 ia64-*-hpux*)
7272 # Find out what ABI is being produced by ac_compile, and set mode
7273 # options accordingly.
7274 echo 'int i;' > conftest.$ac_ext
7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7276 (eval $ac_compile) 2>&5
7277 ac_status=$?
7278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279 test $ac_status = 0; }; then
7280 case `$FILECMD conftest.$ac_objext` in
7281 *ELF-32*)
7282 HPUX_IA64_MODE=32
7283 ;;
7284 *ELF-64*)
7285 HPUX_IA64_MODE=64
7286 ;;
7287 esac
7288 fi
7289 rm -rf conftest*
7290 ;;
7291 *-*-irix6*)
7292 # Find out what ABI is being produced by ac_compile, and set linker
7293 # options accordingly.
7294 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7296 (eval $ac_compile) 2>&5
7297 ac_status=$?
7298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299 test $ac_status = 0; }; then
7300 if test yes = "$lt_cv_prog_gnu_ld"; then
7301 case `$FILECMD conftest.$ac_objext` in
7302 *32-bit*)
7303 LD="${LD-ld} -melf32bsmip"
7304 ;;
7305 *N32*)
7306 LD="${LD-ld} -melf32bmipn32"
7307 ;;
7308 *64-bit*)
7309 LD="${LD-ld} -melf64bmip"
7310 ;;
7311 esac
7312 else
7313 case `$FILECMD conftest.$ac_objext` in
7314 *32-bit*)
7315 LD="${LD-ld} -32"
7316 ;;
7317 *N32*)
7318 LD="${LD-ld} -n32"
7319 ;;
7320 *64-bit*)
7321 LD="${LD-ld} -64"
7322 ;;
7323 esac
7324 fi
7325 fi
7326 rm -rf conftest*
7327 ;;
7328
7329 mips64*-*linux*)
7330 # Find out what ABI is being produced by ac_compile, and set linker
7331 # options accordingly.
7332 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7334 (eval $ac_compile) 2>&5
7335 ac_status=$?
7336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337 test $ac_status = 0; }; then
7338 emul=elf
7339 case `$FILECMD conftest.$ac_objext` in
7340 *32-bit*)
7341 emul="${emul}32"
7342 ;;
7343 *64-bit*)
7344 emul="${emul}64"
7345 ;;
7346 esac
7347 case `$FILECMD conftest.$ac_objext` in
7348 *MSB*)
7349 emul="${emul}btsmip"
7350 ;;
7351 *LSB*)
7352 emul="${emul}ltsmip"
7353 ;;
7354 esac
7355 case `$FILECMD conftest.$ac_objext` in
7356 *N32*)
7357 emul="${emul}n32"
7358 ;;
7359 esac
7360 LD="${LD-ld} -m $emul"
7361 fi
7362 rm -rf conftest*
7363 ;;
7364
7365 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7366 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7367 # Find out what ABI is being produced by ac_compile, and set linker
7368 # options accordingly. Note that the listed cases only cover the
7369 # situations where additional linker options are needed (such as when
7370 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7371 # vice versa); the common cases where no linker options are needed do
7372 # not appear in the list.
7373 echo 'int i;' > conftest.$ac_ext
7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7375 (eval $ac_compile) 2>&5
7376 ac_status=$?
7377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7378 test $ac_status = 0; }; then
7379 case `$FILECMD conftest.o` in
7380 *32-bit*)
7381 case $host in
7382 x86_64-*kfreebsd*-gnu)
7383 LD="${LD-ld} -m elf_i386_fbsd"
7384 ;;
7385 x86_64-*linux*)
7386 case `$FILECMD conftest.o` in
7387 *x86-64*)
7388 LD="${LD-ld} -m elf32_x86_64"
7389 ;;
7390 *)
7391 LD="${LD-ld} -m elf_i386"
7392 ;;
7393 esac
7394 ;;
7395 powerpc64le-*linux*)
7396 LD="${LD-ld} -m elf32lppclinux"
7397 ;;
7398 powerpc64-*linux*)
7399 LD="${LD-ld} -m elf32ppclinux"
7400 ;;
7401 s390x-*linux*)
7402 LD="${LD-ld} -m elf_s390"
7403 ;;
7404 sparc64-*linux*)
7405 LD="${LD-ld} -m elf32_sparc"
7406 ;;
7407 esac
7408 ;;
7409 *64-bit*)
7410 case $host in
7411 x86_64-*kfreebsd*-gnu)
7412 LD="${LD-ld} -m elf_x86_64_fbsd"
7413 ;;
7414 x86_64-*linux*)
7415 LD="${LD-ld} -m elf_x86_64"
7416 ;;
7417 powerpcle-*linux*)
7418 LD="${LD-ld} -m elf64lppc"
7419 ;;
7420 powerpc-*linux*)
7421 LD="${LD-ld} -m elf64ppc"
7422 ;;
7423 s390*-*linux*|s390*-*tpf*)
7424 LD="${LD-ld} -m elf64_s390"
7425 ;;
7426 sparc*-*linux*)
7427 LD="${LD-ld} -m elf64_sparc"
7428 ;;
7429 esac
7430 ;;
7431 esac
7432 fi
7433 rm -rf conftest*
7434 ;;
7435
7436 *-*-sco3.2v5*)
7437 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7438 SAVE_CFLAGS=$CFLAGS
7439 CFLAGS="$CFLAGS -belf"
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7441 printf %s "checking whether the C compiler needs -belf... " >&6; }
7442 if test ${lt_cv_cc_needs_belf+y}
7443 then :
7444 printf %s "(cached) " >&6
7445 else $as_nop
7446 ac_ext=c
7447 ac_cpp='$CPP $CPPFLAGS'
7448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7451
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454
7455 int
7456 main (void)
7457 {
7458
7459 ;
7460 return 0;
7461 }
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"
7464 then :
7465 lt_cv_cc_needs_belf=yes
7466 else $as_nop
7467 lt_cv_cc_needs_belf=no
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7470 conftest$ac_exeext conftest.$ac_ext
7471 ac_ext=c
7472 ac_cpp='$CPP $CPPFLAGS'
7473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7476
7477 fi
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7479 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7480 if test yes != "$lt_cv_cc_needs_belf"; then
7481 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7482 CFLAGS=$SAVE_CFLAGS
7483 fi
7484 ;;
7485 *-*solaris*)
7486 # Find out what ABI is being produced by ac_compile, and set linker
7487 # options accordingly.
7488 echo 'int i;' > conftest.$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7491 ac_status=$?
7492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 case `$FILECMD conftest.o` in
7495 *64-bit*)
7496 case $lt_cv_prog_gnu_ld in
7497 yes*)
7498 case $host in
7499 i?86-*-solaris*|x86_64-*-solaris*)
7500 LD="${LD-ld} -m elf_x86_64"
7501 ;;
7502 sparc*-*-solaris*)
7503 LD="${LD-ld} -m elf64_sparc"
7504 ;;
7505 esac
7506 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7507 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7508 LD=${LD-ld}_sol2
7509 fi
7510 ;;
7511 *)
7512 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7513 LD="${LD-ld} -64"
7514 fi
7515 ;;
7516 esac
7517 ;;
7518 esac
7519 fi
7520 rm -rf conftest*
7521 ;;
7522 esac
7523
7524 need_locks=$enable_libtool_lock
7525
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}mt; ac_word=$2
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 printf %s "checking for $ac_word... " >&6; }
7531 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7532 then :
7533 printf %s "(cached) " >&6
7534 else $as_nop
7535 if test -n "$MANIFEST_TOOL"; then
7536 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541 IFS=$as_save_IFS
7542 case $as_dir in #(((
7543 '') as_dir=./ ;;
7544 */) ;;
7545 *) as_dir=$as_dir/ ;;
7546 esac
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7549 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7556
7557 fi
7558 fi
7559 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7560 if test -n "$MANIFEST_TOOL"; then
7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7562 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7563 else
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 printf "%s\n" "no" >&6; }
7566 fi
7567
7568
7569 fi
7570 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7571 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7572 # Extract the first word of "mt", so it can be a program name with args.
7573 set dummy mt; ac_word=$2
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 printf %s "checking for $ac_word... " >&6; }
7576 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7577 then :
7578 printf %s "(cached) " >&6
7579 else $as_nop
7580 if test -n "$ac_ct_MANIFEST_TOOL"; then
7581 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586 IFS=$as_save_IFS
7587 case $as_dir in #(((
7588 '') as_dir=./ ;;
7589 */) ;;
7590 *) as_dir=$as_dir/ ;;
7591 esac
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7605 if test -n "$ac_ct_MANIFEST_TOOL"; then
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7607 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7608 else
7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 printf "%s\n" "no" >&6; }
7611 fi
7612
7613 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7614 MANIFEST_TOOL=":"
7615 else
7616 case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7623 fi
7624 else
7625 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7626 fi
7627
7628 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7630 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7631 if test ${lt_cv_path_mainfest_tool+y}
7632 then :
7633 printf %s "(cached) " >&6
7634 else $as_nop
7635 lt_cv_path_mainfest_tool=no
7636 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7637 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7638 cat conftest.err >&5
7639 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7640 lt_cv_path_mainfest_tool=yes
7641 fi
7642 rm -f conftest*
7643 fi
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7645 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7646 if test yes != "$lt_cv_path_mainfest_tool"; then
7647 MANIFEST_TOOL=:
7648 fi
7649
7650
7651
7652
7653
7654
7655 case $host_os in
7656 rhapsody* | darwin*)
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 printf %s "checking for $ac_word... " >&6; }
7662 if test ${ac_cv_prog_DSYMUTIL+y}
7663 then :
7664 printf %s "(cached) " >&6
7665 else $as_nop
7666 if test -n "$DSYMUTIL"; then
7667 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672 IFS=$as_save_IFS
7673 case $as_dir in #(((
7674 '') as_dir=./ ;;
7675 */) ;;
7676 *) as_dir=$as_dir/ ;;
7677 esac
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7691 if test -n "$DSYMUTIL"; then
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7693 printf "%s\n" "$DSYMUTIL" >&6; }
7694 else
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 printf "%s\n" "no" >&6; }
7697 fi
7698
7699
7700 fi
7701 if test -z "$ac_cv_prog_DSYMUTIL"; then
7702 ac_ct_DSYMUTIL=$DSYMUTIL
7703 # Extract the first word of "dsymutil", so it can be a program name with args.
7704 set dummy dsymutil; ac_word=$2
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 printf %s "checking for $ac_word... " >&6; }
7707 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7708 then :
7709 printf %s "(cached) " >&6
7710 else $as_nop
7711 if test -n "$ac_ct_DSYMUTIL"; then
7712 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717 IFS=$as_save_IFS
7718 case $as_dir in #(((
7719 '') as_dir=./ ;;
7720 */) ;;
7721 *) as_dir=$as_dir/ ;;
7722 esac
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7727 break 2
7728 fi
7729 done
7730 done
7731 IFS=$as_save_IFS
7732
7733 fi
7734 fi
7735 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7736 if test -n "$ac_ct_DSYMUTIL"; then
7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7738 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7739 else
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 printf "%s\n" "no" >&6; }
7742 fi
7743
7744 if test "x$ac_ct_DSYMUTIL" = x; then
7745 DSYMUTIL=":"
7746 else
7747 case $cross_compiling:$ac_tool_warned in
7748 yes:)
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned=yes ;;
7752 esac
7753 DSYMUTIL=$ac_ct_DSYMUTIL
7754 fi
7755 else
7756 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7757 fi
7758
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7761 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 printf %s "checking for $ac_word... " >&6; }
7764 if test ${ac_cv_prog_NMEDIT+y}
7765 then :
7766 printf %s "(cached) " >&6
7767 else $as_nop
7768 if test -n "$NMEDIT"; then
7769 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 case $as_dir in #(((
7776 '') as_dir=./ ;;
7777 */) ;;
7778 *) as_dir=$as_dir/ ;;
7779 esac
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 NMEDIT=$ac_cv_prog_NMEDIT
7793 if test -n "$NMEDIT"; then
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7795 printf "%s\n" "$NMEDIT" >&6; }
7796 else
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 printf "%s\n" "no" >&6; }
7799 fi
7800
7801
7802 fi
7803 if test -z "$ac_cv_prog_NMEDIT"; then
7804 ac_ct_NMEDIT=$NMEDIT
7805 # Extract the first word of "nmedit", so it can be a program name with args.
7806 set dummy nmedit; ac_word=$2
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 printf %s "checking for $ac_word... " >&6; }
7809 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7810 then :
7811 printf %s "(cached) " >&6
7812 else $as_nop
7813 if test -n "$ac_ct_NMEDIT"; then
7814 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819 IFS=$as_save_IFS
7820 case $as_dir in #(((
7821 '') as_dir=./ ;;
7822 */) ;;
7823 *) as_dir=$as_dir/ ;;
7824 esac
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7838 if test -n "$ac_ct_NMEDIT"; then
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7840 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7841 else
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 printf "%s\n" "no" >&6; }
7844 fi
7845
7846 if test "x$ac_ct_NMEDIT" = x; then
7847 NMEDIT=":"
7848 else
7849 case $cross_compiling:$ac_tool_warned in
7850 yes:)
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7852 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7853 ac_tool_warned=yes ;;
7854 esac
7855 NMEDIT=$ac_ct_NMEDIT
7856 fi
7857 else
7858 NMEDIT="$ac_cv_prog_NMEDIT"
7859 fi
7860
7861 if test -n "$ac_tool_prefix"; then
7862 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7863 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 printf %s "checking for $ac_word... " >&6; }
7866 if test ${ac_cv_prog_LIPO+y}
7867 then :
7868 printf %s "(cached) " >&6
7869 else $as_nop
7870 if test -n "$LIPO"; then
7871 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 case $as_dir in #(((
7878 '') as_dir=./ ;;
7879 */) ;;
7880 *) as_dir=$as_dir/ ;;
7881 esac
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888 done
7889 done
7890 IFS=$as_save_IFS
7891
7892 fi
7893 fi
7894 LIPO=$ac_cv_prog_LIPO
7895 if test -n "$LIPO"; then
7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7897 printf "%s\n" "$LIPO" >&6; }
7898 else
7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 printf "%s\n" "no" >&6; }
7901 fi
7902
7903
7904 fi
7905 if test -z "$ac_cv_prog_LIPO"; then
7906 ac_ct_LIPO=$LIPO
7907 # Extract the first word of "lipo", so it can be a program name with args.
7908 set dummy lipo; ac_word=$2
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 printf %s "checking for $ac_word... " >&6; }
7911 if test ${ac_cv_prog_ac_ct_LIPO+y}
7912 then :
7913 printf %s "(cached) " >&6
7914 else $as_nop
7915 if test -n "$ac_ct_LIPO"; then
7916 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921 IFS=$as_save_IFS
7922 case $as_dir in #(((
7923 '') as_dir=./ ;;
7924 */) ;;
7925 *) as_dir=$as_dir/ ;;
7926 esac
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_ac_ct_LIPO="lipo"
7930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7940 if test -n "$ac_ct_LIPO"; then
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7942 printf "%s\n" "$ac_ct_LIPO" >&6; }
7943 else
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 printf "%s\n" "no" >&6; }
7946 fi
7947
7948 if test "x$ac_ct_LIPO" = x; then
7949 LIPO=":"
7950 else
7951 case $cross_compiling:$ac_tool_warned in
7952 yes:)
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7954 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7955 ac_tool_warned=yes ;;
7956 esac
7957 LIPO=$ac_ct_LIPO
7958 fi
7959 else
7960 LIPO="$ac_cv_prog_LIPO"
7961 fi
7962
7963 if test -n "$ac_tool_prefix"; then
7964 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7965 set dummy ${ac_tool_prefix}otool; ac_word=$2
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 printf %s "checking for $ac_word... " >&6; }
7968 if test ${ac_cv_prog_OTOOL+y}
7969 then :
7970 printf %s "(cached) " >&6
7971 else $as_nop
7972 if test -n "$OTOOL"; then
7973 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7974 else
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 for as_dir in $PATH
7977 do
7978 IFS=$as_save_IFS
7979 case $as_dir in #(((
7980 '') as_dir=./ ;;
7981 */) ;;
7982 *) as_dir=$as_dir/ ;;
7983 esac
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7988 break 2
7989 fi
7990 done
7991 done
7992 IFS=$as_save_IFS
7993
7994 fi
7995 fi
7996 OTOOL=$ac_cv_prog_OTOOL
7997 if test -n "$OTOOL"; then
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7999 printf "%s\n" "$OTOOL" >&6; }
8000 else
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 printf "%s\n" "no" >&6; }
8003 fi
8004
8005
8006 fi
8007 if test -z "$ac_cv_prog_OTOOL"; then
8008 ac_ct_OTOOL=$OTOOL
8009 # Extract the first word of "otool", so it can be a program name with args.
8010 set dummy otool; ac_word=$2
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 printf %s "checking for $ac_word... " >&6; }
8013 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8014 then :
8015 printf %s "(cached) " >&6
8016 else $as_nop
8017 if test -n "$ac_ct_OTOOL"; then
8018 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 case $as_dir in #(((
8025 '') as_dir=./ ;;
8026 */) ;;
8027 *) as_dir=$as_dir/ ;;
8028 esac
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_ac_ct_OTOOL="otool"
8032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035 done
8036 done
8037 IFS=$as_save_IFS
8038
8039 fi
8040 fi
8041 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8042 if test -n "$ac_ct_OTOOL"; then
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8044 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8045 else
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 printf "%s\n" "no" >&6; }
8048 fi
8049
8050 if test "x$ac_ct_OTOOL" = x; then
8051 OTOOL=":"
8052 else
8053 case $cross_compiling:$ac_tool_warned in
8054 yes:)
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8057 ac_tool_warned=yes ;;
8058 esac
8059 OTOOL=$ac_ct_OTOOL
8060 fi
8061 else
8062 OTOOL="$ac_cv_prog_OTOOL"
8063 fi
8064
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8067 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 printf %s "checking for $ac_word... " >&6; }
8070 if test ${ac_cv_prog_OTOOL64+y}
8071 then :
8072 printf %s "(cached) " >&6
8073 else $as_nop
8074 if test -n "$OTOOL64"; then
8075 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080 IFS=$as_save_IFS
8081 case $as_dir in #(((
8082 '') as_dir=./ ;;
8083 */) ;;
8084 *) as_dir=$as_dir/ ;;
8085 esac
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 OTOOL64=$ac_cv_prog_OTOOL64
8099 if test -n "$OTOOL64"; then
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8101 printf "%s\n" "$OTOOL64" >&6; }
8102 else
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 printf "%s\n" "no" >&6; }
8105 fi
8106
8107
8108 fi
8109 if test -z "$ac_cv_prog_OTOOL64"; then
8110 ac_ct_OTOOL64=$OTOOL64
8111 # Extract the first word of "otool64", so it can be a program name with args.
8112 set dummy otool64; ac_word=$2
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 printf %s "checking for $ac_word... " >&6; }
8115 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8116 then :
8117 printf %s "(cached) " >&6
8118 else $as_nop
8119 if test -n "$ac_ct_OTOOL64"; then
8120 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125 IFS=$as_save_IFS
8126 case $as_dir in #(((
8127 '') as_dir=./ ;;
8128 */) ;;
8129 *) as_dir=$as_dir/ ;;
8130 esac
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_ac_ct_OTOOL64="otool64"
8134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139 IFS=$as_save_IFS
8140
8141 fi
8142 fi
8143 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8144 if test -n "$ac_ct_OTOOL64"; then
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8146 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8147 else
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 printf "%s\n" "no" >&6; }
8150 fi
8151
8152 if test "x$ac_ct_OTOOL64" = x; then
8153 OTOOL64=":"
8154 else
8155 case $cross_compiling:$ac_tool_warned in
8156 yes:)
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8158 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8159 ac_tool_warned=yes ;;
8160 esac
8161 OTOOL64=$ac_ct_OTOOL64
8162 fi
8163 else
8164 OTOOL64="$ac_cv_prog_OTOOL64"
8165 fi
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8194 printf %s "checking for -single_module linker flag... " >&6; }
8195 if test ${lt_cv_apple_cc_single_mod+y}
8196 then :
8197 printf %s "(cached) " >&6
8198 else $as_nop
8199 lt_cv_apple_cc_single_mod=no
8200 if test -z "$LT_MULTI_MODULE"; then
8201 # By default we will add the -single_module flag. You can override
8202 # by either setting the environment variable LT_MULTI_MODULE
8203 # non-empty at configure time, or by adding -multi_module to the
8204 # link flags.
8205 rm -rf libconftest.dylib*
8206 echo "int foo(void){return 1;}" > conftest.c
8207 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8208 -dynamiclib -Wl,-single_module conftest.c" >&5
8209 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8210 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8211 _lt_result=$?
8212 # If there is a non-empty error log, and "single_module"
8213 # appears in it, assume the flag caused a linker warning
8214 if test -s conftest.err && $GREP single_module conftest.err; then
8215 cat conftest.err >&5
8216 # Otherwise, if the output was created with a 0 exit code from
8217 # the compiler, it worked.
8218 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8219 lt_cv_apple_cc_single_mod=yes
8220 else
8221 cat conftest.err >&5
8222 fi
8223 rm -rf libconftest.dylib*
8224 rm -f conftest.*
8225 fi
8226 fi
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8228 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8229
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8231 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8232 if test ${lt_cv_ld_exported_symbols_list+y}
8233 then :
8234 printf %s "(cached) " >&6
8235 else $as_nop
8236 lt_cv_ld_exported_symbols_list=no
8237 save_LDFLAGS=$LDFLAGS
8238 echo "_main" > conftest.sym
8239 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242
8243 int
8244 main (void)
8245 {
8246
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"
8252 then :
8253 lt_cv_ld_exported_symbols_list=yes
8254 else $as_nop
8255 lt_cv_ld_exported_symbols_list=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8258 conftest$ac_exeext conftest.$ac_ext
8259 LDFLAGS=$save_LDFLAGS
8260
8261 fi
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8263 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8264
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8266 printf %s "checking for -force_load linker flag... " >&6; }
8267 if test ${lt_cv_ld_force_load+y}
8268 then :
8269 printf %s "(cached) " >&6
8270 else $as_nop
8271 lt_cv_ld_force_load=no
8272 cat > conftest.c << _LT_EOF
8273 int forced_loaded() { return 2;}
8274 _LT_EOF
8275 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8276 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8277 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8278 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8279 echo "$RANLIB libconftest.a" >&5
8280 $RANLIB libconftest.a 2>&5
8281 cat > conftest.c << _LT_EOF
8282 int main() { return 0;}
8283 _LT_EOF
8284 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8285 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8286 _lt_result=$?
8287 if test -s conftest.err && $GREP force_load conftest.err; then
8288 cat conftest.err >&5
8289 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8290 lt_cv_ld_force_load=yes
8291 else
8292 cat conftest.err >&5
8293 fi
8294 rm -f conftest.err libconftest.a conftest conftest.c
8295 rm -rf conftest.dSYM
8296
8297 fi
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8299 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8300 case $host_os in
8301 rhapsody* | darwin1.[012])
8302 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8303 darwin1.*)
8304 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8305 darwin*)
8306 case $MACOSX_DEPLOYMENT_TARGET,$host in
8307 10.[012],*|,*powerpc*-darwin[5-8]*)
8308 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8309 *)
8310 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8311 esac
8312 ;;
8313 esac
8314 if test yes = "$lt_cv_apple_cc_single_mod"; then
8315 _lt_dar_single_mod='$single_module'
8316 fi
8317 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8318 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8319 else
8320 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8321 fi
8322 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8323 _lt_dsymutil='~$DSYMUTIL $lib || :'
8324 else
8325 _lt_dsymutil=
8326 fi
8327 ;;
8328 esac
8329
8330 # func_munge_path_list VARIABLE PATH
8331 # -----------------------------------
8332 # VARIABLE is name of variable containing _space_ separated list of
8333 # directories to be munged by the contents of PATH, which is string
8334 # having a format:
8335 # "DIR[:DIR]:"
8336 # string "DIR[ DIR]" will be prepended to VARIABLE
8337 # ":DIR[:DIR]"
8338 # string "DIR[ DIR]" will be appended to VARIABLE
8339 # "DIRP[:DIRP]::[DIRA:]DIRA"
8340 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8341 # "DIRA[ DIRA]" will be appended to VARIABLE
8342 # "DIR[:DIR]"
8343 # VARIABLE will be replaced by "DIR[ DIR]"
8344 func_munge_path_list ()
8345 {
8346 case x$2 in
8347 x)
8348 ;;
8349 *:)
8350 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8351 ;;
8352 x:*)
8353 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8354 ;;
8355 *::*)
8356 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8357 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8358 ;;
8359 *)
8360 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8361 ;;
8362 esac
8363 }
8364
8365 ac_header= ac_cache=
8366 for ac_item in $ac_header_c_list
8367 do
8368 if test $ac_cache; then
8369 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8370 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8371 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8372 fi
8373 ac_header= ac_cache=
8374 elif test $ac_header; then
8375 ac_cache=$ac_item
8376 else
8377 ac_header=$ac_item
8378 fi
8379 done
8380
8381
8382
8383
8384
8385
8386
8387
8388 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8389 then :
8390
8391 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8392
8393 fi
8394 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8395 "
8396 if test "x$ac_cv_header_dlfcn_h" = xyes
8397 then :
8398 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8399
8400 fi
8401
8402
8403
8404
8405
8406 # Set options
8407
8408
8409
8410 enable_dlopen=no
8411
8412
8413 enable_win32_dll=no
8414
8415
8416 # Check whether --enable-shared was given.
8417 if test ${enable_shared+y}
8418 then :
8419 enableval=$enable_shared; p=${PACKAGE-default}
8420 case $enableval in
8421 yes) enable_shared=yes ;;
8422 no) enable_shared=no ;;
8423 *)
8424 enable_shared=no
8425 # Look at the argument we got. We use all the common list separators.
8426 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8427 for pkg in $enableval; do
8428 IFS=$lt_save_ifs
8429 if test "X$pkg" = "X$p"; then
8430 enable_shared=yes
8431 fi
8432 done
8433 IFS=$lt_save_ifs
8434 ;;
8435 esac
8436 else $as_nop
8437 enable_shared=yes
8438 fi
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448 # Check whether --enable-static was given.
8449 if test ${enable_static+y}
8450 then :
8451 enableval=$enable_static; p=${PACKAGE-default}
8452 case $enableval in
8453 yes) enable_static=yes ;;
8454 no) enable_static=no ;;
8455 *)
8456 enable_static=no
8457 # Look at the argument we got. We use all the common list separators.
8458 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8459 for pkg in $enableval; do
8460 IFS=$lt_save_ifs
8461 if test "X$pkg" = "X$p"; then
8462 enable_static=yes
8463 fi
8464 done
8465 IFS=$lt_save_ifs
8466 ;;
8467 esac
8468 else $as_nop
8469 enable_static=yes
8470 fi
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 # Check whether --with-pic was given.
8482 if test ${with_pic+y}
8483 then :
8484 withval=$with_pic; lt_p=${PACKAGE-default}
8485 case $withval in
8486 yes|no) pic_mode=$withval ;;
8487 *)
8488 pic_mode=default
8489 # Look at the argument we got. We use all the common list separators.
8490 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8491 for lt_pkg in $withval; do
8492 IFS=$lt_save_ifs
8493 if test "X$lt_pkg" = "X$lt_p"; then
8494 pic_mode=yes
8495 fi
8496 done
8497 IFS=$lt_save_ifs
8498 ;;
8499 esac
8500 else $as_nop
8501 pic_mode=default
8502 fi
8503
8504
8505
8506
8507
8508
8509
8510
8511 # Check whether --enable-fast-install was given.
8512 if test ${enable_fast_install+y}
8513 then :
8514 enableval=$enable_fast_install; p=${PACKAGE-default}
8515 case $enableval in
8516 yes) enable_fast_install=yes ;;
8517 no) enable_fast_install=no ;;
8518 *)
8519 enable_fast_install=no
8520 # Look at the argument we got. We use all the common list separators.
8521 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8522 for pkg in $enableval; do
8523 IFS=$lt_save_ifs
8524 if test "X$pkg" = "X$p"; then
8525 enable_fast_install=yes
8526 fi
8527 done
8528 IFS=$lt_save_ifs
8529 ;;
8530 esac
8531 else $as_nop
8532 enable_fast_install=yes
8533 fi
8534
8535
8536
8537
8538
8539
8540
8541
8542 shared_archive_member_spec=
8543 case $host,$enable_shared in
8544 power*-*-aix[5-9]*,yes)
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8546 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8547
8548 # Check whether --with-aix-soname was given.
8549 if test ${with_aix_soname+y}
8550 then :
8551 withval=$with_aix_soname; case $withval in
8552 aix|svr4|both)
8553 ;;
8554 *)
8555 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8556 ;;
8557 esac
8558 lt_cv_with_aix_soname=$with_aix_soname
8559 else $as_nop
8560 if test ${lt_cv_with_aix_soname+y}
8561 then :
8562 printf %s "(cached) " >&6
8563 else $as_nop
8564 lt_cv_with_aix_soname=aix
8565 fi
8566
8567 with_aix_soname=$lt_cv_with_aix_soname
8568 fi
8569
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8571 printf "%s\n" "$with_aix_soname" >&6; }
8572 if test aix != "$with_aix_soname"; then
8573 # For the AIX way of multilib, we name the shared archive member
8574 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8575 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8576 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8577 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8578 if test 64 = "${OBJECT_MODE-32}"; then
8579 shared_archive_member_spec=shr_64
8580 else
8581 shared_archive_member_spec=shr
8582 fi
8583 fi
8584 ;;
8585 *)
8586 with_aix_soname=aix
8587 ;;
8588 esac
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 # This can be used to rebuild libtool when needed
8600 LIBTOOL_DEPS=$ltmain
8601
8602 # Always use our own libtool.
8603 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634 test -z "$LN_S" && LN_S="ln -s"
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649 if test -n "${ZSH_VERSION+set}"; then
8650 setopt NO_GLOB_SUBST
8651 fi
8652
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8654 printf %s "checking for objdir... " >&6; }
8655 if test ${lt_cv_objdir+y}
8656 then :
8657 printf %s "(cached) " >&6
8658 else $as_nop
8659 rm -f .libs 2>/dev/null
8660 mkdir .libs 2>/dev/null
8661 if test -d .libs; then
8662 lt_cv_objdir=.libs
8663 else
8664 # MS-DOS does not allow filenames that begin with a dot.
8665 lt_cv_objdir=_libs
8666 fi
8667 rmdir .libs 2>/dev/null
8668 fi
8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8670 printf "%s\n" "$lt_cv_objdir" >&6; }
8671 objdir=$lt_cv_objdir
8672
8673
8674
8675
8676
8677 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8678
8679
8680
8681
8682 case $host_os in
8683 aix3*)
8684 # AIX sometimes has problems with the GCC collect2 program. For some
8685 # reason, if we set the COLLECT_NAMES environment variable, the problems
8686 # vanish in a puff of smoke.
8687 if test set != "${COLLECT_NAMES+set}"; then
8688 COLLECT_NAMES=
8689 export COLLECT_NAMES
8690 fi
8691 ;;
8692 esac
8693
8694 # Global variables:
8695 ofile=libtool
8696 can_build_shared=yes
8697
8698 # All known linkers require a '.a' archive for static linking (except MSVC and
8699 # ICC, which need '.lib').
8700 libext=a
8701
8702 with_gnu_ld=$lt_cv_prog_gnu_ld
8703
8704 old_CC=$CC
8705 old_CFLAGS=$CFLAGS
8706
8707 # Set sane defaults for various variables
8708 test -z "$CC" && CC=cc
8709 test -z "$LTCC" && LTCC=$CC
8710 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8711 test -z "$LD" && LD=ld
8712 test -z "$ac_objext" && ac_objext=o
8713
8714 func_cc_basename $compiler
8715 cc_basename=$func_cc_basename_result
8716
8717
8718 # Only perform the check for file, if the check method requires it
8719 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8720 case $deplibs_check_method in
8721 file_magic*)
8722 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8724 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8725 if test ${lt_cv_path_MAGIC_CMD+y}
8726 then :
8727 printf %s "(cached) " >&6
8728 else $as_nop
8729 case $MAGIC_CMD in
8730 [\\/*] | ?:[\\/]*)
8731 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8732 ;;
8733 *)
8734 lt_save_MAGIC_CMD=$MAGIC_CMD
8735 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8737 for ac_dir in $ac_dummy; do
8738 IFS=$lt_save_ifs
8739 test -z "$ac_dir" && ac_dir=.
8740 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8741 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8742 if test -n "$file_magic_test_file"; then
8743 case $deplibs_check_method in
8744 "file_magic "*)
8745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8746 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8748 $EGREP "$file_magic_regex" > /dev/null; then
8749 :
8750 else
8751 cat <<_LT_EOF 1>&2
8752
8753 *** Warning: the command libtool uses to detect shared libraries,
8754 *** $file_magic_cmd, produces output that libtool cannot recognize.
8755 *** The result is that libtool may fail to recognize shared libraries
8756 *** as such. This will affect the creation of libtool libraries that
8757 *** depend on shared libraries, but programs linked with such libtool
8758 *** libraries will work regardless of this problem. Nevertheless, you
8759 *** may want to report the problem to your system manager and/or to
8760 *** [email protected]
8761
8762 _LT_EOF
8763 fi ;;
8764 esac
8765 fi
8766 break
8767 fi
8768 done
8769 IFS=$lt_save_ifs
8770 MAGIC_CMD=$lt_save_MAGIC_CMD
8771 ;;
8772 esac
8773 fi
8774
8775 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8776 if test -n "$MAGIC_CMD"; then
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8778 printf "%s\n" "$MAGIC_CMD" >&6; }
8779 else
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 printf "%s\n" "no" >&6; }
8782 fi
8783
8784
8785
8786
8787
8788 if test -z "$lt_cv_path_MAGIC_CMD"; then
8789 if test -n "$ac_tool_prefix"; then
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8791 printf %s "checking for file... " >&6; }
8792 if test ${lt_cv_path_MAGIC_CMD+y}
8793 then :
8794 printf %s "(cached) " >&6
8795 else $as_nop
8796 case $MAGIC_CMD in
8797 [\\/*] | ?:[\\/]*)
8798 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8799 ;;
8800 *)
8801 lt_save_MAGIC_CMD=$MAGIC_CMD
8802 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8804 for ac_dir in $ac_dummy; do
8805 IFS=$lt_save_ifs
8806 test -z "$ac_dir" && ac_dir=.
8807 if test -f "$ac_dir/file"; then
8808 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8809 if test -n "$file_magic_test_file"; then
8810 case $deplibs_check_method in
8811 "file_magic "*)
8812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8813 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8815 $EGREP "$file_magic_regex" > /dev/null; then
8816 :
8817 else
8818 cat <<_LT_EOF 1>&2
8819
8820 *** Warning: the command libtool uses to detect shared libraries,
8821 *** $file_magic_cmd, produces output that libtool cannot recognize.
8822 *** The result is that libtool may fail to recognize shared libraries
8823 *** as such. This will affect the creation of libtool libraries that
8824 *** depend on shared libraries, but programs linked with such libtool
8825 *** libraries will work regardless of this problem. Nevertheless, you
8826 *** may want to report the problem to your system manager and/or to
8827 *** [email protected]
8828
8829 _LT_EOF
8830 fi ;;
8831 esac
8832 fi
8833 break
8834 fi
8835 done
8836 IFS=$lt_save_ifs
8837 MAGIC_CMD=$lt_save_MAGIC_CMD
8838 ;;
8839 esac
8840 fi
8841
8842 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8843 if test -n "$MAGIC_CMD"; then
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8845 printf "%s\n" "$MAGIC_CMD" >&6; }
8846 else
8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 printf "%s\n" "no" >&6; }
8849 fi
8850
8851
8852 else
8853 MAGIC_CMD=:
8854 fi
8855 fi
8856
8857 fi
8858 ;;
8859 esac
8860
8861 # Use C for the default configuration in the libtool script
8862
8863 lt_save_CC=$CC
8864 ac_ext=c
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870
8871 # Source file extension for C test sources.
8872 ac_ext=c
8873
8874 # Object file extension for compiled C test sources.
8875 objext=o
8876 objext=$objext
8877
8878 # Code to be used in simple compile tests
8879 lt_simple_compile_test_code="int some_variable = 0;"
8880
8881 # Code to be used in simple link tests
8882 lt_simple_link_test_code='int main(){return(0);}'
8883
8884
8885
8886
8887
8888
8889
8890 # If no C compiler was specified, use CC.
8891 LTCC=${LTCC-"$CC"}
8892
8893 # If no C compiler flags were specified, use CFLAGS.
8894 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8895
8896 # Allow CC to be a program name with arguments.
8897 compiler=$CC
8898
8899 # Save the default compiler, since it gets overwritten when the other
8900 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8901 compiler_DEFAULT=$CC
8902
8903 # save warnings/boilerplate of simple test code
8904 ac_outfile=conftest.$ac_objext
8905 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8906 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8907 _lt_compiler_boilerplate=`cat conftest.err`
8908 $RM conftest*
8909
8910 ac_outfile=conftest.$ac_objext
8911 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8912 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8913 _lt_linker_boilerplate=`cat conftest.err`
8914 $RM -r conftest*
8915
8916
8917 ## CAVEAT EMPTOR:
8918 ## There is no encapsulation within the following macros, do not change
8919 ## the running order or otherwise move them around unless you know exactly
8920 ## what you are doing...
8921 if test -n "$compiler"; then
8922
8923 lt_prog_compiler_no_builtin_flag=
8924
8925 if test yes = "$GCC"; then
8926 case $cc_basename in
8927 nvcc*)
8928 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8929 *)
8930 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8931 esac
8932
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8934 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8935 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8936 then :
8937 printf %s "(cached) " >&6
8938 else $as_nop
8939 lt_cv_prog_compiler_rtti_exceptions=no
8940 ac_outfile=conftest.$ac_objext
8941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8942 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8943 # Insert the option either (1) after the last *FLAGS variable, or
8944 # (2) before a word containing "conftest.", or (3) at the end.
8945 # Note that $ac_compile itself does not contain backslashes and begins
8946 # with a dollar sign (not a hyphen), so the echo should work correctly.
8947 # The option is referenced via a variable to avoid confusing sed.
8948 lt_compile=`echo "$ac_compile" | $SED \
8949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8951 -e 's:$: $lt_compiler_flag:'`
8952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8953 (eval "$lt_compile" 2>conftest.err)
8954 ac_status=$?
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 if (exit $ac_status) && test -s "$ac_outfile"; then
8958 # The compiler can only warn and ignore the option if not recognized
8959 # So say no if there are warnings other than the usual output.
8960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8963 lt_cv_prog_compiler_rtti_exceptions=yes
8964 fi
8965 fi
8966 $RM conftest*
8967
8968 fi
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8970 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8971
8972 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8973 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8974 else
8975 :
8976 fi
8977
8978 fi
8979
8980
8981
8982
8983
8984
8985 lt_prog_compiler_wl=
8986 lt_prog_compiler_pic=
8987 lt_prog_compiler_static=
8988
8989
8990 if test yes = "$GCC"; then
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_static='-static'
8993
8994 case $host_os in
8995 aix*)
8996 # All AIX code is PIC.
8997 if test ia64 = "$host_cpu"; then
8998 # AIX 5 now supports IA64 processor
8999 lt_prog_compiler_static='-Bstatic'
9000 fi
9001 lt_prog_compiler_pic='-fPIC'
9002 ;;
9003
9004 amigaos*)
9005 case $host_cpu in
9006 powerpc)
9007 # see comment about AmigaOS4 .so support
9008 lt_prog_compiler_pic='-fPIC'
9009 ;;
9010 m68k)
9011 # FIXME: we need at least 68020 code to build shared libraries, but
9012 # adding the '-m68020' flag to GCC prevents building anything better,
9013 # like '-m68040'.
9014 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9015 ;;
9016 esac
9017 ;;
9018
9019 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9020 # PIC is the default for these OSes.
9021 ;;
9022
9023 mingw* | cygwin* | pw32* | os2* | cegcc*)
9024 # This hack is so that the source file can tell whether it is being
9025 # built for inclusion in a dll (and should export symbols for example).
9026 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9027 # (--disable-auto-import) libraries
9028 lt_prog_compiler_pic='-DDLL_EXPORT'
9029 case $host_os in
9030 os2*)
9031 lt_prog_compiler_static='$wl-static'
9032 ;;
9033 esac
9034 ;;
9035
9036 darwin* | rhapsody*)
9037 # PIC is the default on this platform
9038 # Common symbols not allowed in MH_DYLIB files
9039 lt_prog_compiler_pic='-fno-common'
9040 ;;
9041
9042 haiku*)
9043 # PIC is the default for Haiku.
9044 # The "-static" flag exists, but is broken.
9045 lt_prog_compiler_static=
9046 ;;
9047
9048 hpux*)
9049 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9050 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9051 # sets the default TLS model and affects inlining.
9052 case $host_cpu in
9053 hppa*64*)
9054 # +Z the default
9055 ;;
9056 *)
9057 lt_prog_compiler_pic='-fPIC'
9058 ;;
9059 esac
9060 ;;
9061
9062 interix[3-9]*)
9063 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9064 # Instead, we relocate shared libraries at runtime.
9065 ;;
9066
9067 msdosdjgpp*)
9068 # Just because we use GCC doesn't mean we suddenly get shared libraries
9069 # on systems that don't support them.
9070 lt_prog_compiler_can_build_shared=no
9071 enable_shared=no
9072 ;;
9073
9074 *nto* | *qnx*)
9075 # QNX uses GNU C++, but need to define -shared option too, otherwise
9076 # it will coredump.
9077 lt_prog_compiler_pic='-fPIC -shared'
9078 ;;
9079
9080 sysv4*MP*)
9081 if test -d /usr/nec; then
9082 lt_prog_compiler_pic=-Kconform_pic
9083 fi
9084 ;;
9085
9086 *)
9087 lt_prog_compiler_pic='-fPIC'
9088 ;;
9089 esac
9090
9091 case $cc_basename in
9092 nvcc*) # Cuda Compiler Driver 2.2
9093 lt_prog_compiler_wl='-Xlinker '
9094 if test -n "$lt_prog_compiler_pic"; then
9095 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9096 fi
9097 ;;
9098 esac
9099 else
9100 # PORTME Check for flag to pass linker flags through the system compiler.
9101 case $host_os in
9102 aix*)
9103 lt_prog_compiler_wl='-Wl,'
9104 if test ia64 = "$host_cpu"; then
9105 # AIX 5 now supports IA64 processor
9106 lt_prog_compiler_static='-Bstatic'
9107 else
9108 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9109 fi
9110 ;;
9111
9112 darwin* | rhapsody*)
9113 # PIC is the default on this platform
9114 # Common symbols not allowed in MH_DYLIB files
9115 lt_prog_compiler_pic='-fno-common'
9116 case $cc_basename in
9117 nagfor*)
9118 # NAG Fortran compiler
9119 lt_prog_compiler_wl='-Wl,-Wl,,'
9120 lt_prog_compiler_pic='-PIC'
9121 lt_prog_compiler_static='-Bstatic'
9122 ;;
9123 esac
9124 ;;
9125
9126 mingw* | cygwin* | pw32* | os2* | cegcc*)
9127 # This hack is so that the source file can tell whether it is being
9128 # built for inclusion in a dll (and should export symbols for example).
9129 lt_prog_compiler_pic='-DDLL_EXPORT'
9130 case $host_os in
9131 os2*)
9132 lt_prog_compiler_static='$wl-static'
9133 ;;
9134 esac
9135 ;;
9136
9137 hpux9* | hpux10* | hpux11*)
9138 lt_prog_compiler_wl='-Wl,'
9139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9140 # not for PA HP-UX.
9141 case $host_cpu in
9142 hppa*64*|ia64*)
9143 # +Z the default
9144 ;;
9145 *)
9146 lt_prog_compiler_pic='+Z'
9147 ;;
9148 esac
9149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9150 lt_prog_compiler_static='$wl-a ${wl}archive'
9151 ;;
9152
9153 irix5* | irix6* | nonstopux*)
9154 lt_prog_compiler_wl='-Wl,'
9155 # PIC (with -KPIC) is the default.
9156 lt_prog_compiler_static='-non_shared'
9157 ;;
9158
9159 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9160 case $cc_basename in
9161 # old Intel for x86_64, which still supported -KPIC.
9162 ecc*)
9163 lt_prog_compiler_wl='-Wl,'
9164 lt_prog_compiler_pic='-KPIC'
9165 lt_prog_compiler_static='-static'
9166 ;;
9167 # icc used to be incompatible with GCC.
9168 # ICC 10 doesn't accept -KPIC any more.
9169 icc* | ifort*)
9170 lt_prog_compiler_wl='-Wl,'
9171 lt_prog_compiler_pic='-fPIC'
9172 lt_prog_compiler_static='-static'
9173 ;;
9174 # Lahey Fortran 8.1.
9175 lf95*)
9176 lt_prog_compiler_wl='-Wl,'
9177 lt_prog_compiler_pic='--shared'
9178 lt_prog_compiler_static='--static'
9179 ;;
9180 nagfor*)
9181 # NAG Fortran compiler
9182 lt_prog_compiler_wl='-Wl,-Wl,,'
9183 lt_prog_compiler_pic='-PIC'
9184 lt_prog_compiler_static='-Bstatic'
9185 ;;
9186 tcc*)
9187 # Fabrice Bellard et al's Tiny C Compiler
9188 lt_prog_compiler_wl='-Wl,'
9189 lt_prog_compiler_pic='-fPIC'
9190 lt_prog_compiler_static='-static'
9191 ;;
9192 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9193 # Portland Group compilers (*not* the Pentium gcc compiler,
9194 # which looks to be a dead project)
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_pic='-fpic'
9197 lt_prog_compiler_static='-Bstatic'
9198 ;;
9199 ccc*)
9200 lt_prog_compiler_wl='-Wl,'
9201 # All Alpha code is PIC.
9202 lt_prog_compiler_static='-non_shared'
9203 ;;
9204 xl* | bgxl* | bgf* | mpixl*)
9205 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_pic='-qpic'
9208 lt_prog_compiler_static='-qstaticlink'
9209 ;;
9210 *)
9211 case `$CC -V 2>&1 | $SED 5q` in
9212 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9213 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9214 lt_prog_compiler_pic='-KPIC'
9215 lt_prog_compiler_static='-Bstatic'
9216 lt_prog_compiler_wl=''
9217 ;;
9218 *Sun\ F* | *Sun*Fortran*)
9219 lt_prog_compiler_pic='-KPIC'
9220 lt_prog_compiler_static='-Bstatic'
9221 lt_prog_compiler_wl='-Qoption ld '
9222 ;;
9223 *Sun\ C*)
9224 # Sun C 5.9
9225 lt_prog_compiler_pic='-KPIC'
9226 lt_prog_compiler_static='-Bstatic'
9227 lt_prog_compiler_wl='-Wl,'
9228 ;;
9229 *Intel*\ [CF]*Compiler*)
9230 lt_prog_compiler_wl='-Wl,'
9231 lt_prog_compiler_pic='-fPIC'
9232 lt_prog_compiler_static='-static'
9233 ;;
9234 *Portland\ Group*)
9235 lt_prog_compiler_wl='-Wl,'
9236 lt_prog_compiler_pic='-fpic'
9237 lt_prog_compiler_static='-Bstatic'
9238 ;;
9239 esac
9240 ;;
9241 esac
9242 ;;
9243
9244 newsos6)
9245 lt_prog_compiler_pic='-KPIC'
9246 lt_prog_compiler_static='-Bstatic'
9247 ;;
9248
9249 *nto* | *qnx*)
9250 # QNX uses GNU C++, but need to define -shared option too, otherwise
9251 # it will coredump.
9252 lt_prog_compiler_pic='-fPIC -shared'
9253 ;;
9254
9255 osf3* | osf4* | osf5*)
9256 lt_prog_compiler_wl='-Wl,'
9257 # All OSF/1 code is PIC.
9258 lt_prog_compiler_static='-non_shared'
9259 ;;
9260
9261 rdos*)
9262 lt_prog_compiler_static='-non_shared'
9263 ;;
9264
9265 solaris*)
9266 lt_prog_compiler_pic='-KPIC'
9267 lt_prog_compiler_static='-Bstatic'
9268 case $cc_basename in
9269 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9270 lt_prog_compiler_wl='-Qoption ld ';;
9271 *)
9272 lt_prog_compiler_wl='-Wl,';;
9273 esac
9274 ;;
9275
9276 sunos4*)
9277 lt_prog_compiler_wl='-Qoption ld '
9278 lt_prog_compiler_pic='-PIC'
9279 lt_prog_compiler_static='-Bstatic'
9280 ;;
9281
9282 sysv4 | sysv4.2uw2* | sysv4.3*)
9283 lt_prog_compiler_wl='-Wl,'
9284 lt_prog_compiler_pic='-KPIC'
9285 lt_prog_compiler_static='-Bstatic'
9286 ;;
9287
9288 sysv4*MP*)
9289 if test -d /usr/nec; then
9290 lt_prog_compiler_pic='-Kconform_pic'
9291 lt_prog_compiler_static='-Bstatic'
9292 fi
9293 ;;
9294
9295 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9296 lt_prog_compiler_wl='-Wl,'
9297 lt_prog_compiler_pic='-KPIC'
9298 lt_prog_compiler_static='-Bstatic'
9299 ;;
9300
9301 unicos*)
9302 lt_prog_compiler_wl='-Wl,'
9303 lt_prog_compiler_can_build_shared=no
9304 ;;
9305
9306 uts4*)
9307 lt_prog_compiler_pic='-pic'
9308 lt_prog_compiler_static='-Bstatic'
9309 ;;
9310
9311 *)
9312 lt_prog_compiler_can_build_shared=no
9313 ;;
9314 esac
9315 fi
9316
9317 case $host_os in
9318 # For platforms that do not support PIC, -DPIC is meaningless:
9319 *djgpp*)
9320 lt_prog_compiler_pic=
9321 ;;
9322 *)
9323 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9324 ;;
9325 esac
9326
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9328 printf %s "checking for $compiler option to produce PIC... " >&6; }
9329 if test ${lt_cv_prog_compiler_pic+y}
9330 then :
9331 printf %s "(cached) " >&6
9332 else $as_nop
9333 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9334 fi
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9336 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9337 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9338
9339 #
9340 # Check to make sure the PIC flag actually works.
9341 #
9342 if test -n "$lt_prog_compiler_pic"; then
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9344 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9345 if test ${lt_cv_prog_compiler_pic_works+y}
9346 then :
9347 printf %s "(cached) " >&6
9348 else $as_nop
9349 lt_cv_prog_compiler_pic_works=no
9350 ac_outfile=conftest.$ac_objext
9351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9352 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9353 # Insert the option either (1) after the last *FLAGS variable, or
9354 # (2) before a word containing "conftest.", or (3) at the end.
9355 # Note that $ac_compile itself does not contain backslashes and begins
9356 # with a dollar sign (not a hyphen), so the echo should work correctly.
9357 # The option is referenced via a variable to avoid confusing sed.
9358 lt_compile=`echo "$ac_compile" | $SED \
9359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9361 -e 's:$: $lt_compiler_flag:'`
9362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9363 (eval "$lt_compile" 2>conftest.err)
9364 ac_status=$?
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 if (exit $ac_status) && test -s "$ac_outfile"; then
9368 # The compiler can only warn and ignore the option if not recognized
9369 # So say no if there are warnings other than the usual output.
9370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9372 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9373 lt_cv_prog_compiler_pic_works=yes
9374 fi
9375 fi
9376 $RM conftest*
9377
9378 fi
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9380 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9381
9382 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9383 case $lt_prog_compiler_pic in
9384 "" | " "*) ;;
9385 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9386 esac
9387 else
9388 lt_prog_compiler_pic=
9389 lt_prog_compiler_can_build_shared=no
9390 fi
9391
9392 fi
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404 #
9405 # Check to make sure the static flag actually works.
9406 #
9407 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9409 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9410 if test ${lt_cv_prog_compiler_static_works+y}
9411 then :
9412 printf %s "(cached) " >&6
9413 else $as_nop
9414 lt_cv_prog_compiler_static_works=no
9415 save_LDFLAGS=$LDFLAGS
9416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9417 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9419 # The linker can only warn and ignore the option if not recognized
9420 # So say no if there are warnings
9421 if test -s conftest.err; then
9422 # Append any errors to the config.log.
9423 cat conftest.err 1>&5
9424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9426 if diff conftest.exp conftest.er2 >/dev/null; then
9427 lt_cv_prog_compiler_static_works=yes
9428 fi
9429 else
9430 lt_cv_prog_compiler_static_works=yes
9431 fi
9432 fi
9433 $RM -r conftest*
9434 LDFLAGS=$save_LDFLAGS
9435
9436 fi
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9438 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9439
9440 if test yes = "$lt_cv_prog_compiler_static_works"; then
9441 :
9442 else
9443 lt_prog_compiler_static=
9444 fi
9445
9446
9447
9448
9449
9450
9451
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9453 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9454 if test ${lt_cv_prog_compiler_c_o+y}
9455 then :
9456 printf %s "(cached) " >&6
9457 else $as_nop
9458 lt_cv_prog_compiler_c_o=no
9459 $RM -r conftest 2>/dev/null
9460 mkdir conftest
9461 cd conftest
9462 mkdir out
9463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9464
9465 lt_compiler_flag="-o out/conftest2.$ac_objext"
9466 # Insert the option either (1) after the last *FLAGS variable, or
9467 # (2) before a word containing "conftest.", or (3) at the end.
9468 # Note that $ac_compile itself does not contain backslashes and begins
9469 # with a dollar sign (not a hyphen), so the echo should work correctly.
9470 lt_compile=`echo "$ac_compile" | $SED \
9471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9473 -e 's:$: $lt_compiler_flag:'`
9474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9475 (eval "$lt_compile" 2>out/conftest.err)
9476 ac_status=$?
9477 cat out/conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9480 then
9481 # The compiler can only warn and ignore the option if not recognized
9482 # So say no if there are warnings
9483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9484 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9485 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9486 lt_cv_prog_compiler_c_o=yes
9487 fi
9488 fi
9489 chmod u+w . 2>&5
9490 $RM conftest*
9491 # SGI C++ compiler will create directory out/ii_files/ for
9492 # template instantiation
9493 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9494 $RM out/* && rmdir out
9495 cd ..
9496 $RM -r conftest
9497 $RM conftest*
9498
9499 fi
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9501 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9502
9503
9504
9505
9506
9507
9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9509 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9510 if test ${lt_cv_prog_compiler_c_o+y}
9511 then :
9512 printf %s "(cached) " >&6
9513 else $as_nop
9514 lt_cv_prog_compiler_c_o=no
9515 $RM -r conftest 2>/dev/null
9516 mkdir conftest
9517 cd conftest
9518 mkdir out
9519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520
9521 lt_compiler_flag="-o out/conftest2.$ac_objext"
9522 # Insert the option either (1) after the last *FLAGS variable, or
9523 # (2) before a word containing "conftest.", or (3) at the end.
9524 # Note that $ac_compile itself does not contain backslashes and begins
9525 # with a dollar sign (not a hyphen), so the echo should work correctly.
9526 lt_compile=`echo "$ac_compile" | $SED \
9527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529 -e 's:$: $lt_compiler_flag:'`
9530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9531 (eval "$lt_compile" 2>out/conftest.err)
9532 ac_status=$?
9533 cat out/conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9536 then
9537 # The compiler can only warn and ignore the option if not recognized
9538 # So say no if there are warnings
9539 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9542 lt_cv_prog_compiler_c_o=yes
9543 fi
9544 fi
9545 chmod u+w . 2>&5
9546 $RM conftest*
9547 # SGI C++ compiler will create directory out/ii_files/ for
9548 # template instantiation
9549 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9550 $RM out/* && rmdir out
9551 cd ..
9552 $RM -r conftest
9553 $RM conftest*
9554
9555 fi
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9557 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9558
9559
9560
9561
9562 hard_links=nottested
9563 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9564 # do not overwrite the value of need_locks provided by the user
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9566 printf %s "checking if we can lock with hard links... " >&6; }
9567 hard_links=yes
9568 $RM conftest*
9569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9570 touch conftest.a
9571 ln conftest.a conftest.b 2>&5 || hard_links=no
9572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9574 printf "%s\n" "$hard_links" >&6; }
9575 if test no = "$hard_links"; then
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9577 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9578 need_locks=warn
9579 fi
9580 else
9581 need_locks=no
9582 fi
9583
9584
9585
9586
9587
9588
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9590 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9591
9592 runpath_var=
9593 allow_undefined_flag=
9594 always_export_symbols=no
9595 archive_cmds=
9596 archive_expsym_cmds=
9597 compiler_needs_object=no
9598 enable_shared_with_static_runtimes=no
9599 export_dynamic_flag_spec=
9600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9601 hardcode_automatic=no
9602 hardcode_direct=no
9603 hardcode_direct_absolute=no
9604 hardcode_libdir_flag_spec=
9605 hardcode_libdir_separator=
9606 hardcode_minus_L=no
9607 hardcode_shlibpath_var=unsupported
9608 inherit_rpath=no
9609 link_all_deplibs=unknown
9610 module_cmds=
9611 module_expsym_cmds=
9612 old_archive_from_new_cmds=
9613 old_archive_from_expsyms_cmds=
9614 thread_safe_flag_spec=
9615 whole_archive_flag_spec=
9616 # include_expsyms should be a list of space-separated symbols to be *always*
9617 # included in the symbol list
9618 include_expsyms=
9619 # exclude_expsyms can be an extended regexp of symbols to exclude
9620 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9621 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9622 # as well as any symbol that contains 'd'.
9623 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9624 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9625 # platforms (ab)use it in PIC code, but their linkers get confused if
9626 # the symbol is explicitly referenced. Since portable code cannot
9627 # rely on this symbol name, it's probably fine to never include it in
9628 # preloaded symbol tables.
9629 # Exclude shared library initialization/finalization symbols.
9630 extract_expsyms_cmds=
9631
9632 case $host_os in
9633 cygwin* | mingw* | pw32* | cegcc*)
9634 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9635 # When not using gcc, we currently assume that we are using
9636 # Microsoft Visual C++ or Intel C++ Compiler.
9637 if test yes != "$GCC"; then
9638 with_gnu_ld=no
9639 fi
9640 ;;
9641 interix*)
9642 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9643 with_gnu_ld=yes
9644 ;;
9645 openbsd* | bitrig*)
9646 with_gnu_ld=no
9647 ;;
9648 esac
9649
9650 ld_shlibs=yes
9651
9652 # On some targets, GNU ld is compatible enough with the native linker
9653 # that we're better off using the native interface for both.
9654 lt_use_gnu_ld_interface=no
9655 if test yes = "$with_gnu_ld"; then
9656 case $host_os in
9657 aix*)
9658 # The AIX port of GNU ld has always aspired to compatibility
9659 # with the native linker. However, as the warning in the GNU ld
9660 # block says, versions before 2.19.5* couldn't really create working
9661 # shared libraries, regardless of the interface used.
9662 case `$LD -v 2>&1` in
9663 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9664 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9665 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9666 *)
9667 lt_use_gnu_ld_interface=yes
9668 ;;
9669 esac
9670 ;;
9671 *)
9672 lt_use_gnu_ld_interface=yes
9673 ;;
9674 esac
9675 fi
9676
9677 if test yes = "$lt_use_gnu_ld_interface"; then
9678 # If archive_cmds runs LD, not CC, wlarc should be empty
9679 wlarc='$wl'
9680
9681 # Set some defaults for GNU ld with shared library support. These
9682 # are reset later if shared libraries are not supported. Putting them
9683 # here allows them to be overridden if necessary.
9684 runpath_var=LD_RUN_PATH
9685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9686 export_dynamic_flag_spec='$wl--export-dynamic'
9687 # ancient GNU ld didn't support --whole-archive et. al.
9688 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9689 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9690 else
9691 whole_archive_flag_spec=
9692 fi
9693 supports_anon_versioning=no
9694 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9695 *GNU\ gold*) supports_anon_versioning=yes ;;
9696 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9697 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9698 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9699 *\ 2.11.*) ;; # other 2.11 versions
9700 *) supports_anon_versioning=yes ;;
9701 esac
9702
9703 # See if GNU ld supports shared libraries.
9704 case $host_os in
9705 aix[3-9]*)
9706 # On AIX/PPC, the GNU linker is very broken
9707 if test ia64 != "$host_cpu"; then
9708 ld_shlibs=no
9709 cat <<_LT_EOF 1>&2
9710
9711 *** Warning: the GNU linker, at least up to release 2.19, is reported
9712 *** to be unable to reliably create shared libraries on AIX.
9713 *** Therefore, libtool is disabling shared libraries support. If you
9714 *** really care for shared libraries, you may want to install binutils
9715 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9716 *** You will then need to restart the configuration process.
9717
9718 _LT_EOF
9719 fi
9720 ;;
9721
9722 amigaos*)
9723 case $host_cpu in
9724 powerpc)
9725 # see comment about AmigaOS4 .so support
9726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9727 archive_expsym_cmds=''
9728 ;;
9729 m68k)
9730 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)'
9731 hardcode_libdir_flag_spec='-L$libdir'
9732 hardcode_minus_L=yes
9733 ;;
9734 esac
9735 ;;
9736
9737 beos*)
9738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9739 allow_undefined_flag=unsupported
9740 # Joseph Beckenbach <[email protected]> says some releases of gcc
9741 # support --undefined. This deserves some investigation. FIXME
9742 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9743 else
9744 ld_shlibs=no
9745 fi
9746 ;;
9747
9748 cygwin* | mingw* | pw32* | cegcc*)
9749 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9750 # as there is no search path for DLLs.
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 export_dynamic_flag_spec='$wl--export-all-symbols'
9753 allow_undefined_flag=unsupported
9754 always_export_symbols=no
9755 enable_shared_with_static_runtimes=yes
9756 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'
9757 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9758
9759 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9761 # If the export-symbols file already is a .def file, use it as
9762 # is; otherwise, prepend EXPORTS...
9763 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9764 cp $export_symbols $output_objdir/$soname.def;
9765 else
9766 echo EXPORTS > $output_objdir/$soname.def;
9767 cat $export_symbols >> $output_objdir/$soname.def;
9768 fi~
9769 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9770 else
9771 ld_shlibs=no
9772 fi
9773 ;;
9774
9775 haiku*)
9776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9777 link_all_deplibs=yes
9778 ;;
9779
9780 os2*)
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 hardcode_minus_L=yes
9783 allow_undefined_flag=unsupported
9784 shrext_cmds=.dll
9785 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9786 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9787 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9788 $ECHO EXPORTS >> $output_objdir/$libname.def~
9789 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9790 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9791 emximp -o $lib $output_objdir/$libname.def'
9792 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9793 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9794 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9795 $ECHO EXPORTS >> $output_objdir/$libname.def~
9796 prefix_cmds="$SED"~
9797 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9798 prefix_cmds="$prefix_cmds -e 1d";
9799 fi~
9800 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9801 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9802 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9803 emximp -o $lib $output_objdir/$libname.def'
9804 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9805 enable_shared_with_static_runtimes=yes
9806 file_list_spec='@'
9807 ;;
9808
9809 interix[3-9]*)
9810 hardcode_direct=no
9811 hardcode_shlibpath_var=no
9812 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9813 export_dynamic_flag_spec='$wl-E'
9814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9815 # Instead, shared libraries are loaded at an image base (0x10000000 by
9816 # default) and relocated if they conflict, which is a slow very memory
9817 # consuming and fragmenting process. To avoid this, we pick a random,
9818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9819 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9820 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9821 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'
9822 ;;
9823
9824 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9825 tmp_diet=no
9826 if test linux-dietlibc = "$host_os"; then
9827 case $cc_basename in
9828 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9829 esac
9830 fi
9831 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9832 && test no = "$tmp_diet"
9833 then
9834 tmp_addflag=' $pic_flag'
9835 tmp_sharedflag='-shared'
9836 case $cc_basename,$host_cpu in
9837 pgcc*) # Portland Group C compiler
9838 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'
9839 tmp_addflag=' $pic_flag'
9840 ;;
9841 pgf77* | pgf90* | pgf95* | pgfortran*)
9842 # Portland Group f77 and f90 compilers
9843 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'
9844 tmp_addflag=' $pic_flag -Mnomain' ;;
9845 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9846 tmp_addflag=' -i_dynamic' ;;
9847 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9848 tmp_addflag=' -i_dynamic -nofor_main' ;;
9849 ifc* | ifort*) # Intel Fortran compiler
9850 tmp_addflag=' -nofor_main' ;;
9851 lf95*) # Lahey Fortran 8.1
9852 whole_archive_flag_spec=
9853 tmp_sharedflag='--shared' ;;
9854 nagfor*) # NAGFOR 5.3
9855 tmp_sharedflag='-Wl,-shared' ;;
9856 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9857 tmp_sharedflag='-qmkshrobj'
9858 tmp_addflag= ;;
9859 nvcc*) # Cuda Compiler Driver 2.2
9860 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'
9861 compiler_needs_object=yes
9862 ;;
9863 esac
9864 case `$CC -V 2>&1 | $SED 5q` in
9865 *Sun\ C*) # Sun C 5.9
9866 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'
9867 compiler_needs_object=yes
9868 tmp_sharedflag='-G' ;;
9869 *Sun\ F*) # Sun Fortran 8.3
9870 tmp_sharedflag='-G' ;;
9871 esac
9872 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9873
9874 if test yes = "$supports_anon_versioning"; then
9875 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9876 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9877 echo "local: *; };" >> $output_objdir/$libname.ver~
9878 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9879 fi
9880
9881 case $cc_basename in
9882 tcc*)
9883 export_dynamic_flag_spec='-rdynamic'
9884 ;;
9885 xlf* | bgf* | bgxlf* | mpixlf*)
9886 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9887 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9888 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9889 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9890 if test yes = "$supports_anon_versioning"; then
9891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9892 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9893 echo "local: *; };" >> $output_objdir/$libname.ver~
9894 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9895 fi
9896 ;;
9897 esac
9898 else
9899 ld_shlibs=no
9900 fi
9901 ;;
9902
9903 netbsd*)
9904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9905 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9906 wlarc=
9907 else
9908 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9909 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9910 fi
9911 ;;
9912
9913 solaris*)
9914 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9915 ld_shlibs=no
9916 cat <<_LT_EOF 1>&2
9917
9918 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9919 *** create shared libraries on Solaris systems. Therefore, libtool
9920 *** is disabling shared libraries support. We urge you to upgrade GNU
9921 *** binutils to release 2.9.1 or newer. Another option is to modify
9922 *** your PATH or compiler configuration so that the native linker is
9923 *** used, and then restart.
9924
9925 _LT_EOF
9926 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9928 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9929 else
9930 ld_shlibs=no
9931 fi
9932 ;;
9933
9934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9935 case `$LD -v 2>&1` in
9936 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9937 ld_shlibs=no
9938 cat <<_LT_EOF 1>&2
9939
9940 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9941 *** reliably create shared libraries on SCO systems. Therefore, libtool
9942 *** is disabling shared libraries support. We urge you to upgrade GNU
9943 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9944 *** your PATH or compiler configuration so that the native linker is
9945 *** used, and then restart.
9946
9947 _LT_EOF
9948 ;;
9949 *)
9950 # For security reasons, it is highly recommended that you always
9951 # use absolute paths for naming shared libraries, and exclude the
9952 # DT_RUNPATH tag from executables and libraries. But doing so
9953 # requires that you compile everything twice, which is a pain.
9954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9955 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9958 else
9959 ld_shlibs=no
9960 fi
9961 ;;
9962 esac
9963 ;;
9964
9965 sunos4*)
9966 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9967 wlarc=
9968 hardcode_direct=yes
9969 hardcode_shlibpath_var=no
9970 ;;
9971
9972 *)
9973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9975 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9976 else
9977 ld_shlibs=no
9978 fi
9979 ;;
9980 esac
9981
9982 if test no = "$ld_shlibs"; then
9983 runpath_var=
9984 hardcode_libdir_flag_spec=
9985 export_dynamic_flag_spec=
9986 whole_archive_flag_spec=
9987 fi
9988 else
9989 # PORTME fill in a description of your system's linker (not GNU ld)
9990 case $host_os in
9991 aix3*)
9992 allow_undefined_flag=unsupported
9993 always_export_symbols=yes
9994 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'
9995 # Note: this linker hardcodes the directories in LIBPATH if there
9996 # are no directories specified by -L.
9997 hardcode_minus_L=yes
9998 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9999 # Neither direct hardcoding nor static linking is supported with a
10000 # broken collect2.
10001 hardcode_direct=unsupported
10002 fi
10003 ;;
10004
10005 aix[4-9]*)
10006 if test ia64 = "$host_cpu"; then
10007 # On IA64, the linker does run time linking by default, so we don't
10008 # have to do anything special.
10009 aix_use_runtimelinking=no
10010 exp_sym_flag='-Bexport'
10011 no_entry_flag=
10012 else
10013 # If we're using GNU nm, then we don't want the "-C" option.
10014 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10015 # Without the "-l" option, or with the "-B" option, AIX nm treats
10016 # weak defined symbols like other global defined symbols, whereas
10017 # GNU nm marks them as "W".
10018 # While the 'weak' keyword is ignored in the Export File, we need
10019 # it in the Import File for the 'aix-soname' feature, so we have
10020 # to replace the "-B" option with "-P" for AIX nm.
10021 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10022 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10023 else
10024 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10025 fi
10026 aix_use_runtimelinking=no
10027
10028 # Test if we are trying to use run time linking or normal
10029 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10030 # have runtime linking enabled, and use it for executables.
10031 # For shared libraries, we enable/disable runtime linking
10032 # depending on the kind of the shared library created -
10033 # when "with_aix_soname,aix_use_runtimelinking" is:
10034 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10035 # "aix,yes" lib.so shared, rtl:yes, for executables
10036 # lib.a static archive
10037 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10038 # lib.a(lib.so.V) shared, rtl:no, for executables
10039 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10040 # lib.a(lib.so.V) shared, rtl:no
10041 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10042 # lib.a static archive
10043 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10044 for ld_flag in $LDFLAGS; do
10045 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10046 aix_use_runtimelinking=yes
10047 break
10048 fi
10049 done
10050 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10051 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10052 # so we don't have lib.a shared libs to link our executables.
10053 # We have to force runtime linking in this case.
10054 aix_use_runtimelinking=yes
10055 LDFLAGS="$LDFLAGS -Wl,-brtl"
10056 fi
10057 ;;
10058 esac
10059
10060 exp_sym_flag='-bexport'
10061 no_entry_flag='-bnoentry'
10062 fi
10063
10064 # When large executables or shared objects are built, AIX ld can
10065 # have problems creating the table of contents. If linking a library
10066 # or program results in "error TOC overflow" add -mminimal-toc to
10067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10069
10070 archive_cmds=''
10071 hardcode_direct=yes
10072 hardcode_direct_absolute=yes
10073 hardcode_libdir_separator=':'
10074 link_all_deplibs=yes
10075 file_list_spec='$wl-f,'
10076 case $with_aix_soname,$aix_use_runtimelinking in
10077 aix,*) ;; # traditional, no import file
10078 svr4,* | *,yes) # use import file
10079 # The Import File defines what to hardcode.
10080 hardcode_direct=no
10081 hardcode_direct_absolute=no
10082 ;;
10083 esac
10084
10085 if test yes = "$GCC"; then
10086 case $host_os in aix4.[012]|aix4.[012].*)
10087 # We only want to do this on AIX 4.2 and lower, the check
10088 # below for broken collect2 doesn't work under 4.3+
10089 collect2name=`$CC -print-prog-name=collect2`
10090 if test -f "$collect2name" &&
10091 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10092 then
10093 # We have reworked collect2
10094 :
10095 else
10096 # We have old collect2
10097 hardcode_direct=unsupported
10098 # It fails to find uninstalled libraries when the uninstalled
10099 # path is not listed in the libpath. Setting hardcode_minus_L
10100 # to unsupported forces relinking
10101 hardcode_minus_L=yes
10102 hardcode_libdir_flag_spec='-L$libdir'
10103 hardcode_libdir_separator=
10104 fi
10105 ;;
10106 esac
10107 shared_flag='-shared'
10108 if test yes = "$aix_use_runtimelinking"; then
10109 shared_flag="$shared_flag "'$wl-G'
10110 fi
10111 # Need to ensure runtime linking is disabled for the traditional
10112 # shared library, or the linker may eventually find shared libraries
10113 # /with/ Import File - we do not want to mix them.
10114 shared_flag_aix='-shared'
10115 shared_flag_svr4='-shared $wl-G'
10116 else
10117 # not using gcc
10118 if test ia64 = "$host_cpu"; then
10119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10120 # chokes on -Wl,-G. The following line is correct:
10121 shared_flag='-G'
10122 else
10123 if test yes = "$aix_use_runtimelinking"; then
10124 shared_flag='$wl-G'
10125 else
10126 shared_flag='$wl-bM:SRE'
10127 fi
10128 shared_flag_aix='$wl-bM:SRE'
10129 shared_flag_svr4='$wl-G'
10130 fi
10131 fi
10132
10133 export_dynamic_flag_spec='$wl-bexpall'
10134 # It seems that -bexpall does not export symbols beginning with
10135 # underscore (_), so it is better to generate a list of symbols to export.
10136 always_export_symbols=yes
10137 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10138 # Warning - without using the other runtime loading flags (-brtl),
10139 # -berok will link without error, but may produce a broken library.
10140 allow_undefined_flag='-berok'
10141 # Determine the default libpath from the value encoded in an
10142 # empty executable.
10143 if test set = "${lt_cv_aix_libpath+set}"; then
10144 aix_libpath=$lt_cv_aix_libpath
10145 else
10146 if test ${lt_cv_aix_libpath_+y}
10147 then :
10148 printf %s "(cached) " >&6
10149 else $as_nop
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152
10153 int
10154 main (void)
10155 {
10156
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_link "$LINENO"
10162 then :
10163
10164 lt_aix_libpath_sed='
10165 /Import File Strings/,/^$/ {
10166 /^0/ {
10167 s/^0 *\([^ ]*\) *$/\1/
10168 p
10169 }
10170 }'
10171 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10172 # Check for a 64-bit object if we didn't find anything.
10173 if test -z "$lt_cv_aix_libpath_"; then
10174 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10175 fi
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10178 conftest$ac_exeext conftest.$ac_ext
10179 if test -z "$lt_cv_aix_libpath_"; then
10180 lt_cv_aix_libpath_=/usr/lib:/lib
10181 fi
10182
10183 fi
10184
10185 aix_libpath=$lt_cv_aix_libpath_
10186 fi
10187
10188 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10189 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10190 else
10191 if test ia64 = "$host_cpu"; then
10192 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10193 allow_undefined_flag="-z nodefs"
10194 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"
10195 else
10196 # Determine the default libpath from the value encoded in an
10197 # empty executable.
10198 if test set = "${lt_cv_aix_libpath+set}"; then
10199 aix_libpath=$lt_cv_aix_libpath
10200 else
10201 if test ${lt_cv_aix_libpath_+y}
10202 then :
10203 printf %s "(cached) " >&6
10204 else $as_nop
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10207
10208 int
10209 main (void)
10210 {
10211
10212 ;
10213 return 0;
10214 }
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"
10217 then :
10218
10219 lt_aix_libpath_sed='
10220 /Import File Strings/,/^$/ {
10221 /^0/ {
10222 s/^0 *\([^ ]*\) *$/\1/
10223 p
10224 }
10225 }'
10226 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10227 # Check for a 64-bit object if we didn't find anything.
10228 if test -z "$lt_cv_aix_libpath_"; then
10229 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10230 fi
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10233 conftest$ac_exeext conftest.$ac_ext
10234 if test -z "$lt_cv_aix_libpath_"; then
10235 lt_cv_aix_libpath_=/usr/lib:/lib
10236 fi
10237
10238 fi
10239
10240 aix_libpath=$lt_cv_aix_libpath_
10241 fi
10242
10243 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10244 # Warning - without using the other run time loading flags,
10245 # -berok will link without error, but may produce a broken library.
10246 no_undefined_flag=' $wl-bernotok'
10247 allow_undefined_flag=' $wl-berok'
10248 if test yes = "$with_gnu_ld"; then
10249 # We only use this code for GNU lds that support --whole-archive.
10250 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10251 else
10252 # Exported symbols can be pulled into shared objects from archives
10253 whole_archive_flag_spec='$convenience'
10254 fi
10255 archive_cmds_need_lc=yes
10256 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10257 # -brtl affects multiple linker settings, -berok does not and is overridden later
10258 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10259 if test svr4 != "$with_aix_soname"; then
10260 # This is similar to how AIX traditionally builds its shared libraries.
10261 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10262 fi
10263 if test aix != "$with_aix_soname"; then
10264 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10265 else
10266 # used by -dlpreopen to get the symbols
10267 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10268 fi
10269 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10270 fi
10271 fi
10272 ;;
10273
10274 amigaos*)
10275 case $host_cpu in
10276 powerpc)
10277 # see comment about AmigaOS4 .so support
10278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10279 archive_expsym_cmds=''
10280 ;;
10281 m68k)
10282 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)'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_minus_L=yes
10285 ;;
10286 esac
10287 ;;
10288
10289 bsdi[45]*)
10290 export_dynamic_flag_spec=-rdynamic
10291 ;;
10292
10293 cygwin* | mingw* | pw32* | cegcc*)
10294 # When not using gcc, we currently assume that we are using
10295 # Microsoft Visual C++ or Intel C++ Compiler.
10296 # hardcode_libdir_flag_spec is actually meaningless, as there is
10297 # no search path for DLLs.
10298 case $cc_basename in
10299 cl* | icl*)
10300 # Native MSVC or ICC
10301 hardcode_libdir_flag_spec=' '
10302 allow_undefined_flag=unsupported
10303 always_export_symbols=yes
10304 file_list_spec='@'
10305 # Tell ltmain to make .lib files, not .a files.
10306 libext=lib
10307 # Tell ltmain to make .dll files, not .so files.
10308 shrext_cmds=.dll
10309 # FIXME: Setting linknames here is a bad hack.
10310 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10311 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10312 cp "$export_symbols" "$output_objdir/$soname.def";
10313 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10314 else
10315 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10316 fi~
10317 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10318 linknames='
10319 # The linker will not automatically build a static lib if we build a DLL.
10320 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10321 enable_shared_with_static_runtimes=yes
10322 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10324 # Don't use ranlib
10325 old_postinstall_cmds='chmod 644 $oldlib'
10326 postlink_cmds='lt_outputfile="@OUTPUT@"~
10327 lt_tool_outputfile="@TOOL_OUTPUT@"~
10328 case $lt_outputfile in
10329 *.exe|*.EXE) ;;
10330 *)
10331 lt_outputfile=$lt_outputfile.exe
10332 lt_tool_outputfile=$lt_tool_outputfile.exe
10333 ;;
10334 esac~
10335 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10336 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10337 $RM "$lt_outputfile.manifest";
10338 fi'
10339 ;;
10340 *)
10341 # Assume MSVC and ICC wrapper
10342 hardcode_libdir_flag_spec=' '
10343 allow_undefined_flag=unsupported
10344 # Tell ltmain to make .lib files, not .a files.
10345 libext=lib
10346 # Tell ltmain to make .dll files, not .so files.
10347 shrext_cmds=.dll
10348 # FIXME: Setting linknames here is a bad hack.
10349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10350 # The linker will automatically build a .lib file if we build a DLL.
10351 old_archive_from_new_cmds='true'
10352 # FIXME: Should let the user specify the lib program.
10353 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10354 enable_shared_with_static_runtimes=yes
10355 ;;
10356 esac
10357 ;;
10358
10359 darwin* | rhapsody*)
10360
10361
10362 archive_cmds_need_lc=no
10363 hardcode_direct=no
10364 hardcode_automatic=yes
10365 hardcode_shlibpath_var=unsupported
10366 if test yes = "$lt_cv_ld_force_load"; then
10367 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\"`'
10368
10369 else
10370 whole_archive_flag_spec=''
10371 fi
10372 link_all_deplibs=yes
10373 allow_undefined_flag=$_lt_dar_allow_undefined
10374 case $cc_basename in
10375 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10376 *) _lt_dar_can_shared=$GCC ;;
10377 esac
10378 if test yes = "$_lt_dar_can_shared"; then
10379 output_verbose_link_cmd=func_echo_all
10380 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10381 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10382 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"
10383 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"
10384
10385 else
10386 ld_shlibs=no
10387 fi
10388
10389 ;;
10390
10391 dgux*)
10392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_libdir_flag_spec='-L$libdir'
10394 hardcode_shlibpath_var=no
10395 ;;
10396
10397 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10398 # support. Future versions do this automatically, but an explicit c++rt0.o
10399 # does not break anything, and helps significantly (at the cost of a little
10400 # extra space).
10401 freebsd2.2*)
10402 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10403 hardcode_libdir_flag_spec='-R$libdir'
10404 hardcode_direct=yes
10405 hardcode_shlibpath_var=no
10406 ;;
10407
10408 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10409 freebsd2.*)
10410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10411 hardcode_direct=yes
10412 hardcode_minus_L=yes
10413 hardcode_shlibpath_var=no
10414 ;;
10415
10416 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10417 freebsd* | dragonfly* | midnightbsd*)
10418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10419 hardcode_libdir_flag_spec='-R$libdir'
10420 hardcode_direct=yes
10421 hardcode_shlibpath_var=no
10422 ;;
10423
10424 hpux9*)
10425 if test yes = "$GCC"; then
10426 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10427 else
10428 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10429 fi
10430 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10431 hardcode_libdir_separator=:
10432 hardcode_direct=yes
10433
10434 # hardcode_minus_L: Not really in the search PATH,
10435 # but as the default location of the library.
10436 hardcode_minus_L=yes
10437 export_dynamic_flag_spec='$wl-E'
10438 ;;
10439
10440 hpux10*)
10441 if test yes,no = "$GCC,$with_gnu_ld"; then
10442 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10443 else
10444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10445 fi
10446 if test no = "$with_gnu_ld"; then
10447 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10448 hardcode_libdir_separator=:
10449 hardcode_direct=yes
10450 hardcode_direct_absolute=yes
10451 export_dynamic_flag_spec='$wl-E'
10452 # hardcode_minus_L: Not really in the search PATH,
10453 # but as the default location of the library.
10454 hardcode_minus_L=yes
10455 fi
10456 ;;
10457
10458 hpux11*)
10459 if test yes,no = "$GCC,$with_gnu_ld"; then
10460 case $host_cpu in
10461 hppa*64*)
10462 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 ;;
10464 ia64*)
10465 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10466 ;;
10467 *)
10468 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10469 ;;
10470 esac
10471 else
10472 case $host_cpu in
10473 hppa*64*)
10474 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 ;;
10476 ia64*)
10477 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10478 ;;
10479 *)
10480
10481 # Older versions of the 11.00 compiler do not understand -b yet
10482 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10484 printf %s "checking if $CC understands -b... " >&6; }
10485 if test ${lt_cv_prog_compiler__b+y}
10486 then :
10487 printf %s "(cached) " >&6
10488 else $as_nop
10489 lt_cv_prog_compiler__b=no
10490 save_LDFLAGS=$LDFLAGS
10491 LDFLAGS="$LDFLAGS -b"
10492 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10494 # The linker can only warn and ignore the option if not recognized
10495 # So say no if there are warnings
10496 if test -s conftest.err; then
10497 # Append any errors to the config.log.
10498 cat conftest.err 1>&5
10499 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10501 if diff conftest.exp conftest.er2 >/dev/null; then
10502 lt_cv_prog_compiler__b=yes
10503 fi
10504 else
10505 lt_cv_prog_compiler__b=yes
10506 fi
10507 fi
10508 $RM -r conftest*
10509 LDFLAGS=$save_LDFLAGS
10510
10511 fi
10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10513 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10514
10515 if test yes = "$lt_cv_prog_compiler__b"; then
10516 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10517 else
10518 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10519 fi
10520
10521 ;;
10522 esac
10523 fi
10524 if test no = "$with_gnu_ld"; then
10525 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10526 hardcode_libdir_separator=:
10527
10528 case $host_cpu in
10529 hppa*64*|ia64*)
10530 hardcode_direct=no
10531 hardcode_shlibpath_var=no
10532 ;;
10533 *)
10534 hardcode_direct=yes
10535 hardcode_direct_absolute=yes
10536 export_dynamic_flag_spec='$wl-E'
10537
10538 # hardcode_minus_L: Not really in the search PATH,
10539 # but as the default location of the library.
10540 hardcode_minus_L=yes
10541 ;;
10542 esac
10543 fi
10544 ;;
10545
10546 irix5* | irix6* | nonstopux*)
10547 if test yes = "$GCC"; then
10548 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'
10549 # Try to use the -exported_symbol ld option, if it does not
10550 # work, assume that -exports_file does not work either and
10551 # implicitly export all symbols.
10552 # This should be the same for all languages, so no per-tag cache variable.
10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10554 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10555 if test ${lt_cv_irix_exported_symbol+y}
10556 then :
10557 printf %s "(cached) " >&6
10558 else $as_nop
10559 save_LDFLAGS=$LDFLAGS
10560 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 int foo (void) { return 0; }
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"
10566 then :
10567 lt_cv_irix_exported_symbol=yes
10568 else $as_nop
10569 lt_cv_irix_exported_symbol=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LDFLAGS=$save_LDFLAGS
10574 fi
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10576 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10577 if test yes = "$lt_cv_irix_exported_symbol"; then
10578 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'
10579 fi
10580 else
10581 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'
10582 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'
10583 fi
10584 archive_cmds_need_lc='no'
10585 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10586 hardcode_libdir_separator=:
10587 inherit_rpath=yes
10588 link_all_deplibs=yes
10589 ;;
10590
10591 linux*)
10592 case $cc_basename in
10593 tcc*)
10594 # Fabrice Bellard et al's Tiny C Compiler
10595 ld_shlibs=yes
10596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10597 ;;
10598 esac
10599 ;;
10600
10601 netbsd*)
10602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10604 else
10605 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10606 fi
10607 hardcode_libdir_flag_spec='-R$libdir'
10608 hardcode_direct=yes
10609 hardcode_shlibpath_var=no
10610 ;;
10611
10612 newsos6)
10613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614 hardcode_direct=yes
10615 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10616 hardcode_libdir_separator=:
10617 hardcode_shlibpath_var=no
10618 ;;
10619
10620 *nto* | *qnx*)
10621 ;;
10622
10623 openbsd* | bitrig*)
10624 if test -f /usr/libexec/ld.so; then
10625 hardcode_direct=yes
10626 hardcode_shlibpath_var=no
10627 hardcode_direct_absolute=yes
10628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10630 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10631 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10632 export_dynamic_flag_spec='$wl-E'
10633 else
10634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10635 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10636 fi
10637 else
10638 ld_shlibs=no
10639 fi
10640 ;;
10641
10642 os2*)
10643 hardcode_libdir_flag_spec='-L$libdir'
10644 hardcode_minus_L=yes
10645 allow_undefined_flag=unsupported
10646 shrext_cmds=.dll
10647 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10648 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10649 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10650 $ECHO EXPORTS >> $output_objdir/$libname.def~
10651 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10652 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10653 emximp -o $lib $output_objdir/$libname.def'
10654 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10655 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10656 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10657 $ECHO EXPORTS >> $output_objdir/$libname.def~
10658 prefix_cmds="$SED"~
10659 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10660 prefix_cmds="$prefix_cmds -e 1d";
10661 fi~
10662 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10663 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10664 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10665 emximp -o $lib $output_objdir/$libname.def'
10666 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10667 enable_shared_with_static_runtimes=yes
10668 file_list_spec='@'
10669 ;;
10670
10671 osf3*)
10672 if test yes = "$GCC"; then
10673 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10674 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'
10675 else
10676 allow_undefined_flag=' -expect_unresolved \*'
10677 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'
10678 fi
10679 archive_cmds_need_lc='no'
10680 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10681 hardcode_libdir_separator=:
10682 ;;
10683
10684 osf4* | osf5*) # as osf3* with the addition of -msym flag
10685 if test yes = "$GCC"; then
10686 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10687 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'
10688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10689 else
10690 allow_undefined_flag=' -expect_unresolved \*'
10691 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'
10692 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~
10693 $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'
10694
10695 # Both c and cxx compiler support -rpath directly
10696 hardcode_libdir_flag_spec='-rpath $libdir'
10697 fi
10698 archive_cmds_need_lc='no'
10699 hardcode_libdir_separator=:
10700 ;;
10701
10702 solaris*)
10703 no_undefined_flag=' -z defs'
10704 if test yes = "$GCC"; then
10705 wlarc='$wl'
10706 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10708 $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'
10709 else
10710 case `$CC -V 2>&1` in
10711 *"Compilers 5.0"*)
10712 wlarc=''
10713 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10715 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10716 ;;
10717 *)
10718 wlarc='$wl'
10719 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10721 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10722 ;;
10723 esac
10724 fi
10725 hardcode_libdir_flag_spec='-R$libdir'
10726 hardcode_shlibpath_var=no
10727 case $host_os in
10728 solaris2.[0-5] | solaris2.[0-5].*) ;;
10729 *)
10730 # The compiler driver will combine and reorder linker options,
10731 # but understands '-z linker_flag'. GCC discards it without '$wl',
10732 # but is careful enough not to reorder.
10733 # Supported since Solaris 2.6 (maybe 2.5.1?)
10734 if test yes = "$GCC"; then
10735 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10736 else
10737 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10738 fi
10739 ;;
10740 esac
10741 link_all_deplibs=yes
10742 ;;
10743
10744 sunos4*)
10745 if test sequent = "$host_vendor"; then
10746 # Use $CC to link under sequent, because it throws in some extra .o
10747 # files that make .init and .fini sections work.
10748 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10749 else
10750 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10751 fi
10752 hardcode_libdir_flag_spec='-L$libdir'
10753 hardcode_direct=yes
10754 hardcode_minus_L=yes
10755 hardcode_shlibpath_var=no
10756 ;;
10757
10758 sysv4)
10759 case $host_vendor in
10760 sni)
10761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762 hardcode_direct=yes # is this really true???
10763 ;;
10764 siemens)
10765 ## LD is ld it makes a PLAMLIB
10766 ## CC just makes a GrossModule.
10767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10768 reload_cmds='$CC -r -o $output$reload_objs'
10769 hardcode_direct=no
10770 ;;
10771 motorola)
10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10774 ;;
10775 esac
10776 runpath_var='LD_RUN_PATH'
10777 hardcode_shlibpath_var=no
10778 ;;
10779
10780 sysv4.3*)
10781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782 hardcode_shlibpath_var=no
10783 export_dynamic_flag_spec='-Bexport'
10784 ;;
10785
10786 sysv4*MP*)
10787 if test -d /usr/nec; then
10788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10789 hardcode_shlibpath_var=no
10790 runpath_var=LD_RUN_PATH
10791 hardcode_runpath_var=yes
10792 ld_shlibs=yes
10793 fi
10794 ;;
10795
10796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10797 no_undefined_flag='$wl-z,text'
10798 archive_cmds_need_lc=no
10799 hardcode_shlibpath_var=no
10800 runpath_var='LD_RUN_PATH'
10801
10802 if test yes = "$GCC"; then
10803 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10805 else
10806 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10807 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10808 fi
10809 ;;
10810
10811 sysv5* | sco3.2v5* | sco5v6*)
10812 # Note: We CANNOT use -z defs as we might desire, because we do not
10813 # link with -lc, and that would cause any symbols used from libc to
10814 # always be unresolved, which means just about no library would
10815 # ever link correctly. If we're not using GNU ld we use -z text
10816 # though, which does catch some bad symbols but isn't as heavy-handed
10817 # as -z defs.
10818 no_undefined_flag='$wl-z,text'
10819 allow_undefined_flag='$wl-z,nodefs'
10820 archive_cmds_need_lc=no
10821 hardcode_shlibpath_var=no
10822 hardcode_libdir_flag_spec='$wl-R,$libdir'
10823 hardcode_libdir_separator=':'
10824 link_all_deplibs=yes
10825 export_dynamic_flag_spec='$wl-Bexport'
10826 runpath_var='LD_RUN_PATH'
10827
10828 if test yes = "$GCC"; then
10829 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10830 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10831 else
10832 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10833 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10834 fi
10835 ;;
10836
10837 uts4*)
10838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10839 hardcode_libdir_flag_spec='-L$libdir'
10840 hardcode_shlibpath_var=no
10841 ;;
10842
10843 *)
10844 ld_shlibs=no
10845 ;;
10846 esac
10847
10848 if test sni = "$host_vendor"; then
10849 case $host in
10850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10851 export_dynamic_flag_spec='$wl-Blargedynsym'
10852 ;;
10853 esac
10854 fi
10855 fi
10856
10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10858 printf "%s\n" "$ld_shlibs" >&6; }
10859 test no = "$ld_shlibs" && can_build_shared=no
10860
10861 with_gnu_ld=$with_gnu_ld
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877 #
10878 # Do we need to explicitly link libc?
10879 #
10880 case "x$archive_cmds_need_lc" in
10881 x|xyes)
10882 # Assume -lc should be added
10883 archive_cmds_need_lc=yes
10884
10885 if test yes,yes = "$GCC,$enable_shared"; then
10886 case $archive_cmds in
10887 *'~'*)
10888 # FIXME: we may have to deal with multi-command sequences.
10889 ;;
10890 '$CC '*)
10891 # Test whether the compiler implicitly links with -lc since on some
10892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10893 # to ld, don't add -lc before -lgcc.
10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10895 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10896 if test ${lt_cv_archive_cmds_need_lc+y}
10897 then :
10898 printf %s "(cached) " >&6
10899 else $as_nop
10900 $RM conftest*
10901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10902
10903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10904 (eval $ac_compile) 2>&5
10905 ac_status=$?
10906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10907 test $ac_status = 0; } 2>conftest.err; then
10908 soname=conftest
10909 lib=conftest
10910 libobjs=conftest.$ac_objext
10911 deplibs=
10912 wl=$lt_prog_compiler_wl
10913 pic_flag=$lt_prog_compiler_pic
10914 compiler_flags=-v
10915 linker_flags=-v
10916 verstring=
10917 output_objdir=.
10918 libname=conftest
10919 lt_save_allow_undefined_flag=$allow_undefined_flag
10920 allow_undefined_flag=
10921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10922 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10923 ac_status=$?
10924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10925 test $ac_status = 0; }
10926 then
10927 lt_cv_archive_cmds_need_lc=no
10928 else
10929 lt_cv_archive_cmds_need_lc=yes
10930 fi
10931 allow_undefined_flag=$lt_save_allow_undefined_flag
10932 else
10933 cat conftest.err 1>&5
10934 fi
10935 $RM conftest*
10936
10937 fi
10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10939 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10940 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10941 ;;
10942 esac
10943 fi
10944 ;;
10945 esac
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11099 printf %s "checking dynamic linker characteristics... " >&6; }
11100
11101 if test yes = "$GCC"; then
11102 case $host_os in
11103 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11104 *) lt_awk_arg='/^libraries:/' ;;
11105 esac
11106 case $host_os in
11107 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11108 *) lt_sed_strip_eq='s|=/|/|g' ;;
11109 esac
11110 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11111 case $lt_search_path_spec in
11112 *\;*)
11113 # if the path contains ";" then we assume it to be the separator
11114 # otherwise default to the standard path separator (i.e. ":") - it is
11115 # assumed that no part of a normal pathname contains ";" but that should
11116 # okay in the real world where ";" in dirpaths is itself problematic.
11117 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11118 ;;
11119 *)
11120 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11121 ;;
11122 esac
11123 # Ok, now we have the path, separated by spaces, we can step through it
11124 # and add multilib dir if necessary...
11125 lt_tmp_lt_search_path_spec=
11126 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11127 # ...but if some path component already ends with the multilib dir we assume
11128 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11129 case "$lt_multi_os_dir; $lt_search_path_spec " in
11130 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11131 lt_multi_os_dir=
11132 ;;
11133 esac
11134 for lt_sys_path in $lt_search_path_spec; do
11135 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11136 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11137 elif test -n "$lt_multi_os_dir"; then
11138 test -d "$lt_sys_path" && \
11139 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11140 fi
11141 done
11142 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11143 BEGIN {RS = " "; FS = "/|\n";} {
11144 lt_foo = "";
11145 lt_count = 0;
11146 for (lt_i = NF; lt_i > 0; lt_i--) {
11147 if ($lt_i != "" && $lt_i != ".") {
11148 if ($lt_i == "..") {
11149 lt_count++;
11150 } else {
11151 if (lt_count == 0) {
11152 lt_foo = "/" $lt_i lt_foo;
11153 } else {
11154 lt_count--;
11155 }
11156 }
11157 }
11158 }
11159 if (lt_foo != "") { lt_freq[lt_foo]++; }
11160 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11161 }'`
11162 # AWK program above erroneously prepends '/' to C:/dos/paths
11163 # for these hosts.
11164 case $host_os in
11165 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11166 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11167 esac
11168 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11169 else
11170 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11171 fi
11172 library_names_spec=
11173 libname_spec='lib$name'
11174 soname_spec=
11175 shrext_cmds=.so
11176 postinstall_cmds=
11177 postuninstall_cmds=
11178 finish_cmds=
11179 finish_eval=
11180 shlibpath_var=
11181 shlibpath_overrides_runpath=unknown
11182 version_type=none
11183 dynamic_linker="$host_os ld.so"
11184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11185 need_lib_prefix=unknown
11186 hardcode_into_libs=no
11187
11188 # when you set need_version to no, make sure it does not cause -set_version
11189 # flags to be left without arguments
11190 need_version=unknown
11191
11192
11193
11194 case $host_os in
11195 aix3*)
11196 version_type=linux # correct to gnu/linux during the next big refactor
11197 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11198 shlibpath_var=LIBPATH
11199
11200 # AIX 3 has no versioning support, so we append a major version to the name.
11201 soname_spec='$libname$release$shared_ext$major'
11202 ;;
11203
11204 aix[4-9]*)
11205 version_type=linux # correct to gnu/linux during the next big refactor
11206 need_lib_prefix=no
11207 need_version=no
11208 hardcode_into_libs=yes
11209 if test ia64 = "$host_cpu"; then
11210 # AIX 5 supports IA64
11211 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 else
11214 # With GCC up to 2.95.x, collect2 would create an import file
11215 # for dependence libraries. The import file would start with
11216 # the line '#! .'. This would cause the generated library to
11217 # depend on '.', always an invalid library. This was fixed in
11218 # development snapshots of GCC prior to 3.0.
11219 case $host_os in
11220 aix4 | aix4.[01] | aix4.[01].*)
11221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11222 echo ' yes '
11223 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11224 :
11225 else
11226 can_build_shared=no
11227 fi
11228 ;;
11229 esac
11230 # Using Import Files as archive members, it is possible to support
11231 # filename-based versioning of shared library archives on AIX. While
11232 # this would work for both with and without runtime linking, it will
11233 # prevent static linking of such archives. So we do filename-based
11234 # shared library versioning with .so extension only, which is used
11235 # when both runtime linking and shared linking is enabled.
11236 # Unfortunately, runtime linking may impact performance, so we do
11237 # not want this to be the default eventually. Also, we use the
11238 # versioned .so libs for executables only if there is the -brtl
11239 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11240 # To allow for filename-based versioning support, we need to create
11241 # libNAME.so.V as an archive file, containing:
11242 # *) an Import File, referring to the versioned filename of the
11243 # archive as well as the shared archive member, telling the
11244 # bitwidth (32 or 64) of that shared object, and providing the
11245 # list of exported symbols of that shared object, eventually
11246 # decorated with the 'weak' keyword
11247 # *) the shared object with the F_LOADONLY flag set, to really avoid
11248 # it being seen by the linker.
11249 # At run time we better use the real file rather than another symlink,
11250 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11251
11252 case $with_aix_soname,$aix_use_runtimelinking in
11253 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11254 # soname into executable. Probably we can add versioning support to
11255 # collect2, so additional links can be useful in future.
11256 aix,yes) # traditional libtool
11257 dynamic_linker='AIX unversionable lib.so'
11258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11259 # instead of lib<name>.a to let people know that these are not
11260 # typical AIX shared libraries.
11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262 ;;
11263 aix,no) # traditional AIX only
11264 dynamic_linker='AIX lib.a(lib.so.V)'
11265 # We preserve .a as extension for shared libraries through AIX4.2
11266 # and later when we are not doing run time linking.
11267 library_names_spec='$libname$release.a $libname.a'
11268 soname_spec='$libname$release$shared_ext$major'
11269 ;;
11270 svr4,*) # full svr4 only
11271 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11272 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11273 # We do not specify a path in Import Files, so LIBPATH fires.
11274 shlibpath_overrides_runpath=yes
11275 ;;
11276 *,yes) # both, prefer svr4
11277 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11278 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11279 # unpreferred sharedlib libNAME.a needs extra handling
11280 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11281 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11282 # We do not specify a path in Import Files, so LIBPATH fires.
11283 shlibpath_overrides_runpath=yes
11284 ;;
11285 *,no) # both, prefer aix
11286 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11287 library_names_spec='$libname$release.a $libname.a'
11288 soname_spec='$libname$release$shared_ext$major'
11289 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11290 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11291 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11292 ;;
11293 esac
11294 shlibpath_var=LIBPATH
11295 fi
11296 ;;
11297
11298 amigaos*)
11299 case $host_cpu in
11300 powerpc)
11301 # Since July 2007 AmigaOS4 officially supports .so libraries.
11302 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11304 ;;
11305 m68k)
11306 library_names_spec='$libname.ixlibrary $libname.a'
11307 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11308 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11309 ;;
11310 esac
11311 ;;
11312
11313 beos*)
11314 library_names_spec='$libname$shared_ext'
11315 dynamic_linker="$host_os ld.so"
11316 shlibpath_var=LIBRARY_PATH
11317 ;;
11318
11319 bsdi[45]*)
11320 version_type=linux # correct to gnu/linux during the next big refactor
11321 need_version=no
11322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11323 soname_spec='$libname$release$shared_ext$major'
11324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11328 # the default ld.so.conf also contains /usr/contrib/lib and
11329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11330 # libtool to hard-code these into programs
11331 ;;
11332
11333 cygwin* | mingw* | pw32* | cegcc*)
11334 version_type=windows
11335 shrext_cmds=.dll
11336 need_version=no
11337 need_lib_prefix=no
11338
11339 case $GCC,$cc_basename in
11340 yes,*)
11341 # gcc
11342 library_names_spec='$libname.dll.a'
11343 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11344 postinstall_cmds='base_file=`basename \$file`~
11345 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11346 dldir=$destdir/`dirname \$dlpath`~
11347 test -d \$dldir || mkdir -p \$dldir~
11348 $install_prog $dir/$dlname \$dldir/$dlname~
11349 chmod a+x \$dldir/$dlname~
11350 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11351 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11352 fi'
11353 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11354 dlpath=$dir/\$dldll~
11355 $RM \$dlpath'
11356 shlibpath_overrides_runpath=yes
11357
11358 case $host_os in
11359 cygwin*)
11360 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11361 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11362
11363 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11364 ;;
11365 mingw* | cegcc*)
11366 # MinGW DLLs use traditional 'lib' prefix
11367 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11368 ;;
11369 pw32*)
11370 # pw32 DLLs use 'pw' prefix rather than 'lib'
11371 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11372 ;;
11373 esac
11374 dynamic_linker='Win32 ld.exe'
11375 ;;
11376
11377 *,cl* | *,icl*)
11378 # Native MSVC or ICC
11379 libname_spec='$name'
11380 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11381 library_names_spec='$libname.dll.lib'
11382
11383 case $build_os in
11384 mingw*)
11385 sys_lib_search_path_spec=
11386 lt_save_ifs=$IFS
11387 IFS=';'
11388 for lt_path in $LIB
11389 do
11390 IFS=$lt_save_ifs
11391 # Let DOS variable expansion print the short 8.3 style file name.
11392 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11393 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11394 done
11395 IFS=$lt_save_ifs
11396 # Convert to MSYS style.
11397 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11398 ;;
11399 cygwin*)
11400 # Convert to unix form, then to dos form, then back to unix form
11401 # but this time dos style (no spaces!) so that the unix form looks
11402 # like /cygdrive/c/PROGRA~1:/cygdr...
11403 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11404 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11405 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11406 ;;
11407 *)
11408 sys_lib_search_path_spec=$LIB
11409 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11410 # It is most probably a Windows format PATH.
11411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11412 else
11413 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11414 fi
11415 # FIXME: find the short name or the path components, as spaces are
11416 # common. (e.g. "Program Files" -> "PROGRA~1")
11417 ;;
11418 esac
11419
11420 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11421 postinstall_cmds='base_file=`basename \$file`~
11422 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11423 dldir=$destdir/`dirname \$dlpath`~
11424 test -d \$dldir || mkdir -p \$dldir~
11425 $install_prog $dir/$dlname \$dldir/$dlname'
11426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11427 dlpath=$dir/\$dldll~
11428 $RM \$dlpath'
11429 shlibpath_overrides_runpath=yes
11430 dynamic_linker='Win32 link.exe'
11431 ;;
11432
11433 *)
11434 # Assume MSVC and ICC wrapper
11435 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11436 dynamic_linker='Win32 ld.exe'
11437 ;;
11438 esac
11439 # FIXME: first we should search . and the directory the executable is in
11440 shlibpath_var=PATH
11441 ;;
11442
11443 darwin* | rhapsody*)
11444 dynamic_linker="$host_os dyld"
11445 version_type=darwin
11446 need_lib_prefix=no
11447 need_version=no
11448 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11449 soname_spec='$libname$release$major$shared_ext'
11450 shlibpath_overrides_runpath=yes
11451 shlibpath_var=DYLD_LIBRARY_PATH
11452 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11453
11454 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11455 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11456 ;;
11457
11458 dgux*)
11459 version_type=linux # correct to gnu/linux during the next big refactor
11460 need_lib_prefix=no
11461 need_version=no
11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463 soname_spec='$libname$release$shared_ext$major'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 ;;
11466
11467 freebsd* | dragonfly* | midnightbsd*)
11468 # DragonFly does not have aout. When/if they implement a new
11469 # versioning mechanism, adjust this.
11470 if test -x /usr/bin/objformat; then
11471 objformat=`/usr/bin/objformat`
11472 else
11473 case $host_os in
11474 freebsd[23].*) objformat=aout ;;
11475 *) objformat=elf ;;
11476 esac
11477 fi
11478 version_type=freebsd-$objformat
11479 case $version_type in
11480 freebsd-elf*)
11481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11482 soname_spec='$libname$release$shared_ext$major'
11483 need_version=no
11484 need_lib_prefix=no
11485 ;;
11486 freebsd-*)
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11488 need_version=yes
11489 ;;
11490 esac
11491 shlibpath_var=LD_LIBRARY_PATH
11492 case $host_os in
11493 freebsd2.*)
11494 shlibpath_overrides_runpath=yes
11495 ;;
11496 freebsd3.[01]* | freebsdelf3.[01]*)
11497 shlibpath_overrides_runpath=yes
11498 hardcode_into_libs=yes
11499 ;;
11500 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11501 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11502 shlibpath_overrides_runpath=no
11503 hardcode_into_libs=yes
11504 ;;
11505 *) # from 4.6 on, and DragonFly
11506 shlibpath_overrides_runpath=yes
11507 hardcode_into_libs=yes
11508 ;;
11509 esac
11510 ;;
11511
11512 haiku*)
11513 version_type=linux # correct to gnu/linux during the next big refactor
11514 need_lib_prefix=no
11515 need_version=no
11516 dynamic_linker="$host_os runtime_loader"
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518 soname_spec='$libname$release$shared_ext$major'
11519 shlibpath_var=LIBRARY_PATH
11520 shlibpath_overrides_runpath=no
11521 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11522 hardcode_into_libs=yes
11523 ;;
11524
11525 hpux9* | hpux10* | hpux11*)
11526 # Give a soname corresponding to the major version so that dld.sl refuses to
11527 # link against other versions.
11528 version_type=sunos
11529 need_lib_prefix=no
11530 need_version=no
11531 case $host_cpu in
11532 ia64*)
11533 shrext_cmds='.so'
11534 hardcode_into_libs=yes
11535 dynamic_linker="$host_os dld.so"
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11539 soname_spec='$libname$release$shared_ext$major'
11540 if test 32 = "$HPUX_IA64_MODE"; then
11541 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11542 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11543 else
11544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11545 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11546 fi
11547 ;;
11548 hppa*64*)
11549 shrext_cmds='.sl'
11550 hardcode_into_libs=yes
11551 dynamic_linker="$host_os dld.sl"
11552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11555 soname_spec='$libname$release$shared_ext$major'
11556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11558 ;;
11559 *)
11560 shrext_cmds='.sl'
11561 dynamic_linker="$host_os dld.sl"
11562 shlibpath_var=SHLIB_PATH
11563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11565 soname_spec='$libname$release$shared_ext$major'
11566 ;;
11567 esac
11568 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11569 postinstall_cmds='chmod 555 $lib'
11570 # or fails outright, so override atomically:
11571 install_override_mode=555
11572 ;;
11573
11574 interix[3-9]*)
11575 version_type=linux # correct to gnu/linux during the next big refactor
11576 need_lib_prefix=no
11577 need_version=no
11578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11579 soname_spec='$libname$release$shared_ext$major'
11580 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 shlibpath_overrides_runpath=no
11583 hardcode_into_libs=yes
11584 ;;
11585
11586 irix5* | irix6* | nonstopux*)
11587 case $host_os in
11588 nonstopux*) version_type=nonstopux ;;
11589 *)
11590 if test yes = "$lt_cv_prog_gnu_ld"; then
11591 version_type=linux # correct to gnu/linux during the next big refactor
11592 else
11593 version_type=irix
11594 fi ;;
11595 esac
11596 need_lib_prefix=no
11597 need_version=no
11598 soname_spec='$libname$release$shared_ext$major'
11599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11600 case $host_os in
11601 irix5* | nonstopux*)
11602 libsuff= shlibsuff=
11603 ;;
11604 *)
11605 case $LD in # libtool.m4 will add one of these switches to LD
11606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11607 libsuff= shlibsuff= libmagic=32-bit;;
11608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11609 libsuff=32 shlibsuff=N32 libmagic=N32;;
11610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11612 *) libsuff= shlibsuff= libmagic=never-match;;
11613 esac
11614 ;;
11615 esac
11616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11617 shlibpath_overrides_runpath=no
11618 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11619 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11620 hardcode_into_libs=yes
11621 ;;
11622
11623 # No shared lib support for Linux oldld, aout, or coff.
11624 linux*oldld* | linux*aout* | linux*coff*)
11625 dynamic_linker=no
11626 ;;
11627
11628 linux*android*)
11629 version_type=none # Android doesn't support versioned libraries.
11630 need_lib_prefix=no
11631 need_version=no
11632 library_names_spec='$libname$release$shared_ext'
11633 soname_spec='$libname$release$shared_ext'
11634 finish_cmds=
11635 shlibpath_var=LD_LIBRARY_PATH
11636 shlibpath_overrides_runpath=yes
11637
11638 # This implies no fast_install, which is unacceptable.
11639 # Some rework will be needed to allow for fast_install
11640 # before this can be enabled.
11641 hardcode_into_libs=yes
11642
11643 dynamic_linker='Android linker'
11644 # Don't embed -rpath directories since the linker doesn't support them.
11645 hardcode_libdir_flag_spec='-L$libdir'
11646 ;;
11647
11648 # This must be glibc/ELF.
11649 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11650 version_type=linux # correct to gnu/linux during the next big refactor
11651 need_lib_prefix=no
11652 need_version=no
11653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11654 soname_spec='$libname$release$shared_ext$major'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath=no
11658
11659 # Some binutils ld are patched to set DT_RUNPATH
11660 if test ${lt_cv_shlibpath_overrides_runpath+y}
11661 then :
11662 printf %s "(cached) " >&6
11663 else $as_nop
11664 lt_cv_shlibpath_overrides_runpath=no
11665 save_LDFLAGS=$LDFLAGS
11666 save_libdir=$libdir
11667 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11668 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671
11672 int
11673 main (void)
11674 {
11675
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"
11681 then :
11682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11683 then :
11684 lt_cv_shlibpath_overrides_runpath=yes
11685 fi
11686 fi
11687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11688 conftest$ac_exeext conftest.$ac_ext
11689 LDFLAGS=$save_LDFLAGS
11690 libdir=$save_libdir
11691
11692 fi
11693
11694 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11695
11696 # This implies no fast_install, which is unacceptable.
11697 # Some rework will be needed to allow for fast_install
11698 # before this can be enabled.
11699 hardcode_into_libs=yes
11700
11701 # Add ABI-specific directories to the system library path.
11702 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11703
11704 # Ideally, we could use ldconfig to report *all* directores which are
11705 # searched for libraries, however this is still not possible. Aside from not
11706 # being certain /sbin/ldconfig is available, command
11707 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11708 # even though it is searched at run-time. Try to do the best guess by
11709 # appending ld.so.conf contents (and includes) to the search path.
11710 if test -f /etc/ld.so.conf; then
11711 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' ' '`
11712 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11713 fi
11714
11715 # We used to test for /lib/ld.so.1 and disable shared libraries on
11716 # powerpc, because MkLinux only supported shared libraries with the
11717 # GNU dynamic linker. Since this was broken with cross compilers,
11718 # most powerpc-linux boxes support dynamic linking these days and
11719 # people can always --disable-shared, the test was removed, and we
11720 # assume the GNU/Linux dynamic linker is in use.
11721 dynamic_linker='GNU/Linux ld.so'
11722 ;;
11723
11724 netbsd*)
11725 version_type=sunos
11726 need_lib_prefix=no
11727 need_version=no
11728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11729 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11731 dynamic_linker='NetBSD (a.out) ld.so'
11732 else
11733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11734 soname_spec='$libname$release$shared_ext$major'
11735 dynamic_linker='NetBSD ld.elf_so'
11736 fi
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=yes
11739 hardcode_into_libs=yes
11740 ;;
11741
11742 newsos6)
11743 version_type=linux # correct to gnu/linux during the next big refactor
11744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath=yes
11747 ;;
11748
11749 *nto* | *qnx*)
11750 version_type=qnx
11751 need_lib_prefix=no
11752 need_version=no
11753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11754 soname_spec='$libname$release$shared_ext$major'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 shlibpath_overrides_runpath=no
11757 hardcode_into_libs=yes
11758 dynamic_linker='ldqnx.so'
11759 ;;
11760
11761 openbsd* | bitrig*)
11762 version_type=sunos
11763 sys_lib_dlsearch_path_spec=/usr/lib
11764 need_lib_prefix=no
11765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11766 need_version=no
11767 else
11768 need_version=yes
11769 fi
11770 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=yes
11774 ;;
11775
11776 os2*)
11777 libname_spec='$name'
11778 version_type=windows
11779 shrext_cmds=.dll
11780 need_version=no
11781 need_lib_prefix=no
11782 # OS/2 can only load a DLL with a base name of 8 characters or less.
11783 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11784 v=$($ECHO $release$versuffix | tr -d .-);
11785 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11786 $ECHO $n$v`$shared_ext'
11787 library_names_spec='${libname}_dll.$libext'
11788 dynamic_linker='OS/2 ld.exe'
11789 shlibpath_var=BEGINLIBPATH
11790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11792 postinstall_cmds='base_file=`basename \$file`~
11793 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11794 dldir=$destdir/`dirname \$dlpath`~
11795 test -d \$dldir || mkdir -p \$dldir~
11796 $install_prog $dir/$dlname \$dldir/$dlname~
11797 chmod a+x \$dldir/$dlname~
11798 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11799 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11800 fi'
11801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11802 dlpath=$dir/\$dldll~
11803 $RM \$dlpath'
11804 ;;
11805
11806 osf3* | osf4* | osf5*)
11807 version_type=osf
11808 need_lib_prefix=no
11809 need_version=no
11810 soname_spec='$libname$release$shared_ext$major'
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11815 ;;
11816
11817 rdos*)
11818 dynamic_linker=no
11819 ;;
11820
11821 solaris*)
11822 version_type=linux # correct to gnu/linux during the next big refactor
11823 need_lib_prefix=no
11824 need_version=no
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11826 soname_spec='$libname$release$shared_ext$major'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=yes
11829 hardcode_into_libs=yes
11830 # ldd complains unless libraries are executable
11831 postinstall_cmds='chmod +x $lib'
11832 ;;
11833
11834 sunos4*)
11835 version_type=sunos
11836 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11837 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 shlibpath_overrides_runpath=yes
11840 if test yes = "$with_gnu_ld"; then
11841 need_lib_prefix=no
11842 fi
11843 need_version=yes
11844 ;;
11845
11846 sysv4 | sysv4.3*)
11847 version_type=linux # correct to gnu/linux during the next big refactor
11848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11849 soname_spec='$libname$release$shared_ext$major'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 case $host_vendor in
11852 sni)
11853 shlibpath_overrides_runpath=no
11854 need_lib_prefix=no
11855 runpath_var=LD_RUN_PATH
11856 ;;
11857 siemens)
11858 need_lib_prefix=no
11859 ;;
11860 motorola)
11861 need_lib_prefix=no
11862 need_version=no
11863 shlibpath_overrides_runpath=no
11864 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11865 ;;
11866 esac
11867 ;;
11868
11869 sysv4*MP*)
11870 if test -d /usr/nec; then
11871 version_type=linux # correct to gnu/linux during the next big refactor
11872 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11873 soname_spec='$libname$shared_ext.$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 fi
11876 ;;
11877
11878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11879 version_type=sco
11880 need_lib_prefix=no
11881 need_version=no
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11883 soname_spec='$libname$release$shared_ext$major'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=yes
11886 hardcode_into_libs=yes
11887 if test yes = "$with_gnu_ld"; then
11888 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11889 else
11890 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11891 case $host_os in
11892 sco3.2v5*)
11893 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11894 ;;
11895 esac
11896 fi
11897 sys_lib_dlsearch_path_spec='/usr/lib'
11898 ;;
11899
11900 tpf*)
11901 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11902 version_type=linux # correct to gnu/linux during the next big refactor
11903 need_lib_prefix=no
11904 need_version=no
11905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=no
11908 hardcode_into_libs=yes
11909 ;;
11910
11911 uts4*)
11912 version_type=linux # correct to gnu/linux during the next big refactor
11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11914 soname_spec='$libname$release$shared_ext$major'
11915 shlibpath_var=LD_LIBRARY_PATH
11916 ;;
11917
11918 *)
11919 dynamic_linker=no
11920 ;;
11921 esac
11922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11923 printf "%s\n" "$dynamic_linker" >&6; }
11924 test no = "$dynamic_linker" && can_build_shared=no
11925
11926 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11927 if test yes = "$GCC"; then
11928 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11929 fi
11930
11931 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11932 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11933 fi
11934
11935 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11936 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11937 fi
11938
11939 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11940 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11941
11942 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11943 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11944
11945 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11946 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12045 printf %s "checking how to hardcode library paths into programs... " >&6; }
12046 hardcode_action=
12047 if test -n "$hardcode_libdir_flag_spec" ||
12048 test -n "$runpath_var" ||
12049 test yes = "$hardcode_automatic"; then
12050
12051 # We can hardcode non-existent directories.
12052 if test no != "$hardcode_direct" &&
12053 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12054 # have to relink, otherwise we might link with an installed library
12055 # when we should be linking with a yet-to-be-installed one
12056 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12057 test no != "$hardcode_minus_L"; then
12058 # Linking always hardcodes the temporary library directory.
12059 hardcode_action=relink
12060 else
12061 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12062 hardcode_action=immediate
12063 fi
12064 else
12065 # We cannot hardcode anything, or else we can only hardcode existing
12066 # directories.
12067 hardcode_action=unsupported
12068 fi
12069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12070 printf "%s\n" "$hardcode_action" >&6; }
12071
12072 if test relink = "$hardcode_action" ||
12073 test yes = "$inherit_rpath"; then
12074 # Fast installation is not supported
12075 enable_fast_install=no
12076 elif test yes = "$shlibpath_overrides_runpath" ||
12077 test no = "$enable_shared"; then
12078 # Fast installation is not necessary
12079 enable_fast_install=needless
12080 fi
12081
12082
12083
12084
12085
12086
12087 if test yes != "$enable_dlopen"; then
12088 enable_dlopen=unknown
12089 enable_dlopen_self=unknown
12090 enable_dlopen_self_static=unknown
12091 else
12092 lt_cv_dlopen=no
12093 lt_cv_dlopen_libs=
12094
12095 case $host_os in
12096 beos*)
12097 lt_cv_dlopen=load_add_on
12098 lt_cv_dlopen_libs=
12099 lt_cv_dlopen_self=yes
12100 ;;
12101
12102 mingw* | pw32* | cegcc*)
12103 lt_cv_dlopen=LoadLibrary
12104 lt_cv_dlopen_libs=
12105 ;;
12106
12107 cygwin*)
12108 lt_cv_dlopen=dlopen
12109 lt_cv_dlopen_libs=
12110 ;;
12111
12112 darwin*)
12113 # if libdl is installed we need to link against it
12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12115 printf %s "checking for dlopen in -ldl... " >&6; }
12116 if test ${ac_cv_lib_dl_dlopen+y}
12117 then :
12118 printf %s "(cached) " >&6
12119 else $as_nop
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-ldl $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128 char dlopen ();
12129 int
12130 main (void)
12131 {
12132 return dlopen ();
12133 ;
12134 return 0;
12135 }
12136 _ACEOF
12137 if ac_fn_c_try_link "$LINENO"
12138 then :
12139 ac_cv_lib_dl_dlopen=yes
12140 else $as_nop
12141 ac_cv_lib_dl_dlopen=no
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12146 fi
12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12148 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12149 if test "x$ac_cv_lib_dl_dlopen" = xyes
12150 then :
12151 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12152 else $as_nop
12153
12154 lt_cv_dlopen=dyld
12155 lt_cv_dlopen_libs=
12156 lt_cv_dlopen_self=yes
12157
12158 fi
12159
12160 ;;
12161
12162 tpf*)
12163 # Don't try to run any link tests for TPF. We know it's impossible
12164 # because TPF is a cross-compiler, and we know how we open DSOs.
12165 lt_cv_dlopen=dlopen
12166 lt_cv_dlopen_libs=
12167 lt_cv_dlopen_self=no
12168 ;;
12169
12170 *)
12171 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12172 if test "x$ac_cv_func_shl_load" = xyes
12173 then :
12174 lt_cv_dlopen=shl_load
12175 else $as_nop
12176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12177 printf %s "checking for shl_load in -ldld... " >&6; }
12178 if test ${ac_cv_lib_dld_shl_load+y}
12179 then :
12180 printf %s "(cached) " >&6
12181 else $as_nop
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-ldld $LIBS"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12186
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 char shl_load ();
12191 int
12192 main (void)
12193 {
12194 return shl_load ();
12195 ;
12196 return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"
12200 then :
12201 ac_cv_lib_dld_shl_load=yes
12202 else $as_nop
12203 ac_cv_lib_dld_shl_load=no
12204 fi
12205 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12208 fi
12209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12210 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12211 if test "x$ac_cv_lib_dld_shl_load" = xyes
12212 then :
12213 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12214 else $as_nop
12215 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12216 if test "x$ac_cv_func_dlopen" = xyes
12217 then :
12218 lt_cv_dlopen=dlopen
12219 else $as_nop
12220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12221 printf %s "checking for dlopen in -ldl... " >&6; }
12222 if test ${ac_cv_lib_dl_dlopen+y}
12223 then :
12224 printf %s "(cached) " >&6
12225 else $as_nop
12226 ac_check_lib_save_LIBS=$LIBS
12227 LIBS="-ldl $LIBS"
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12230
12231 /* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12234 char dlopen ();
12235 int
12236 main (void)
12237 {
12238 return dlopen ();
12239 ;
12240 return 0;
12241 }
12242 _ACEOF
12243 if ac_fn_c_try_link "$LINENO"
12244 then :
12245 ac_cv_lib_dl_dlopen=yes
12246 else $as_nop
12247 ac_cv_lib_dl_dlopen=no
12248 fi
12249 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12250 conftest$ac_exeext conftest.$ac_ext
12251 LIBS=$ac_check_lib_save_LIBS
12252 fi
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12254 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12255 if test "x$ac_cv_lib_dl_dlopen" = xyes
12256 then :
12257 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12258 else $as_nop
12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12260 printf %s "checking for dlopen in -lsvld... " >&6; }
12261 if test ${ac_cv_lib_svld_dlopen+y}
12262 then :
12263 printf %s "(cached) " >&6
12264 else $as_nop
12265 ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-lsvld $LIBS"
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12269
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273 char dlopen ();
12274 int
12275 main (void)
12276 {
12277 return dlopen ();
12278 ;
12279 return 0;
12280 }
12281 _ACEOF
12282 if ac_fn_c_try_link "$LINENO"
12283 then :
12284 ac_cv_lib_svld_dlopen=yes
12285 else $as_nop
12286 ac_cv_lib_svld_dlopen=no
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12289 conftest$ac_exeext conftest.$ac_ext
12290 LIBS=$ac_check_lib_save_LIBS
12291 fi
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12293 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12294 if test "x$ac_cv_lib_svld_dlopen" = xyes
12295 then :
12296 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12297 else $as_nop
12298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12299 printf %s "checking for dld_link in -ldld... " >&6; }
12300 if test ${ac_cv_lib_dld_dld_link+y}
12301 then :
12302 printf %s "(cached) " >&6
12303 else $as_nop
12304 ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-ldld $LIBS"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312 char dld_link ();
12313 int
12314 main (void)
12315 {
12316 return dld_link ();
12317 ;
12318 return 0;
12319 }
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"
12322 then :
12323 ac_cv_lib_dld_dld_link=yes
12324 else $as_nop
12325 ac_cv_lib_dld_dld_link=no
12326 fi
12327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12330 fi
12331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12332 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12333 if test "x$ac_cv_lib_dld_dld_link" = xyes
12334 then :
12335 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12336 fi
12337
12338
12339 fi
12340
12341
12342 fi
12343
12344
12345 fi
12346
12347
12348 fi
12349
12350
12351 fi
12352
12353 ;;
12354 esac
12355
12356 if test no = "$lt_cv_dlopen"; then
12357 enable_dlopen=no
12358 else
12359 enable_dlopen=yes
12360 fi
12361
12362 case $lt_cv_dlopen in
12363 dlopen)
12364 save_CPPFLAGS=$CPPFLAGS
12365 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12366
12367 save_LDFLAGS=$LDFLAGS
12368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12369
12370 save_LIBS=$LIBS
12371 LIBS="$lt_cv_dlopen_libs $LIBS"
12372
12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12374 printf %s "checking whether a program can dlopen itself... " >&6; }
12375 if test ${lt_cv_dlopen_self+y}
12376 then :
12377 printf %s "(cached) " >&6
12378 else $as_nop
12379 if test yes = "$cross_compiling"; then :
12380 lt_cv_dlopen_self=cross
12381 else
12382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12383 lt_status=$lt_dlunknown
12384 cat > conftest.$ac_ext <<_LT_EOF
12385 #line $LINENO "configure"
12386 #include "confdefs.h"
12387
12388 #if HAVE_DLFCN_H
12389 #include <dlfcn.h>
12390 #endif
12391
12392 #include <stdio.h>
12393
12394 #ifdef RTLD_GLOBAL
12395 # define LT_DLGLOBAL RTLD_GLOBAL
12396 #else
12397 # ifdef DL_GLOBAL
12398 # define LT_DLGLOBAL DL_GLOBAL
12399 # else
12400 # define LT_DLGLOBAL 0
12401 # endif
12402 #endif
12403
12404 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12405 find out it does not work in some platform. */
12406 #ifndef LT_DLLAZY_OR_NOW
12407 # ifdef RTLD_LAZY
12408 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12409 # else
12410 # ifdef DL_LAZY
12411 # define LT_DLLAZY_OR_NOW DL_LAZY
12412 # else
12413 # ifdef RTLD_NOW
12414 # define LT_DLLAZY_OR_NOW RTLD_NOW
12415 # else
12416 # ifdef DL_NOW
12417 # define LT_DLLAZY_OR_NOW DL_NOW
12418 # else
12419 # define LT_DLLAZY_OR_NOW 0
12420 # endif
12421 # endif
12422 # endif
12423 # endif
12424 #endif
12425
12426 /* When -fvisibility=hidden is used, assume the code has been annotated
12427 correspondingly for the symbols needed. */
12428 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12429 int fnord () __attribute__((visibility("default")));
12430 #endif
12431
12432 int fnord () { return 42; }
12433 int main ()
12434 {
12435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12436 int status = $lt_dlunknown;
12437
12438 if (self)
12439 {
12440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12441 else
12442 {
12443 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12444 else puts (dlerror ());
12445 }
12446 /* dlclose (self); */
12447 }
12448 else
12449 puts (dlerror ());
12450
12451 return status;
12452 }
12453 _LT_EOF
12454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12455 (eval $ac_link) 2>&5
12456 ac_status=$?
12457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12458 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12459 (./conftest; exit; ) >&5 2>/dev/null
12460 lt_status=$?
12461 case x$lt_status in
12462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12464 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12465 esac
12466 else :
12467 # compilation failed
12468 lt_cv_dlopen_self=no
12469 fi
12470 fi
12471 rm -fr conftest*
12472
12473
12474 fi
12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12476 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12477
12478 if test yes = "$lt_cv_dlopen_self"; then
12479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12481 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12482 if test ${lt_cv_dlopen_self_static+y}
12483 then :
12484 printf %s "(cached) " >&6
12485 else $as_nop
12486 if test yes = "$cross_compiling"; then :
12487 lt_cv_dlopen_self_static=cross
12488 else
12489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12490 lt_status=$lt_dlunknown
12491 cat > conftest.$ac_ext <<_LT_EOF
12492 #line $LINENO "configure"
12493 #include "confdefs.h"
12494
12495 #if HAVE_DLFCN_H
12496 #include <dlfcn.h>
12497 #endif
12498
12499 #include <stdio.h>
12500
12501 #ifdef RTLD_GLOBAL
12502 # define LT_DLGLOBAL RTLD_GLOBAL
12503 #else
12504 # ifdef DL_GLOBAL
12505 # define LT_DLGLOBAL DL_GLOBAL
12506 # else
12507 # define LT_DLGLOBAL 0
12508 # endif
12509 #endif
12510
12511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12512 find out it does not work in some platform. */
12513 #ifndef LT_DLLAZY_OR_NOW
12514 # ifdef RTLD_LAZY
12515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12516 # else
12517 # ifdef DL_LAZY
12518 # define LT_DLLAZY_OR_NOW DL_LAZY
12519 # else
12520 # ifdef RTLD_NOW
12521 # define LT_DLLAZY_OR_NOW RTLD_NOW
12522 # else
12523 # ifdef DL_NOW
12524 # define LT_DLLAZY_OR_NOW DL_NOW
12525 # else
12526 # define LT_DLLAZY_OR_NOW 0
12527 # endif
12528 # endif
12529 # endif
12530 # endif
12531 #endif
12532
12533 /* When -fvisibility=hidden is used, assume the code has been annotated
12534 correspondingly for the symbols needed. */
12535 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12536 int fnord () __attribute__((visibility("default")));
12537 #endif
12538
12539 int fnord () { return 42; }
12540 int main ()
12541 {
12542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12543 int status = $lt_dlunknown;
12544
12545 if (self)
12546 {
12547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12548 else
12549 {
12550 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12551 else puts (dlerror ());
12552 }
12553 /* dlclose (self); */
12554 }
12555 else
12556 puts (dlerror ());
12557
12558 return status;
12559 }
12560 _LT_EOF
12561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12562 (eval $ac_link) 2>&5
12563 ac_status=$?
12564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12565 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12566 (./conftest; exit; ) >&5 2>/dev/null
12567 lt_status=$?
12568 case x$lt_status in
12569 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12570 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12571 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12572 esac
12573 else :
12574 # compilation failed
12575 lt_cv_dlopen_self_static=no
12576 fi
12577 fi
12578 rm -fr conftest*
12579
12580
12581 fi
12582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12583 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12584 fi
12585
12586 CPPFLAGS=$save_CPPFLAGS
12587 LDFLAGS=$save_LDFLAGS
12588 LIBS=$save_LIBS
12589 ;;
12590 esac
12591
12592 case $lt_cv_dlopen_self in
12593 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12594 *) enable_dlopen_self=unknown ;;
12595 esac
12596
12597 case $lt_cv_dlopen_self_static in
12598 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12599 *) enable_dlopen_self_static=unknown ;;
12600 esac
12601 fi
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619 striplib=
12620 old_striplib=
12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12622 printf %s "checking whether stripping libraries is possible... " >&6; }
12623 if test -z "$STRIP"; then
12624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 printf "%s\n" "no" >&6; }
12626 else
12627 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12628 old_striplib="$STRIP --strip-debug"
12629 striplib="$STRIP --strip-unneeded"
12630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12631 printf "%s\n" "yes" >&6; }
12632 else
12633 case $host_os in
12634 darwin*)
12635 # FIXME - insert some real tests, host_os isn't really good enough
12636 striplib="$STRIP -x"
12637 old_striplib="$STRIP -S"
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12639 printf "%s\n" "yes" >&6; }
12640 ;;
12641 freebsd*)
12642 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12643 old_striplib="$STRIP --strip-debug"
12644 striplib="$STRIP --strip-unneeded"
12645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646 printf "%s\n" "yes" >&6; }
12647 else
12648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 printf "%s\n" "no" >&6; }
12650 fi
12651 ;;
12652 *)
12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 printf "%s\n" "no" >&6; }
12655 ;;
12656 esac
12657 fi
12658 fi
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671 # Report what library types will actually be built
12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12673 printf %s "checking if libtool supports shared libraries... " >&6; }
12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12675 printf "%s\n" "$can_build_shared" >&6; }
12676
12677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12678 printf %s "checking whether to build shared libraries... " >&6; }
12679 test no = "$can_build_shared" && enable_shared=no
12680
12681 # On AIX, shared libraries and static libraries use the same namespace, and
12682 # are all built from PIC.
12683 case $host_os in
12684 aix3*)
12685 test yes = "$enable_shared" && enable_static=no
12686 if test -n "$RANLIB"; then
12687 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12688 postinstall_cmds='$RANLIB $lib'
12689 fi
12690 ;;
12691
12692 aix[4-9]*)
12693 if test ia64 != "$host_cpu"; then
12694 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12695 yes,aix,yes) ;; # shared object as lib.so file only
12696 yes,svr4,*) ;; # shared object as lib.so archive member only
12697 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12698 esac
12699 fi
12700 ;;
12701 esac
12702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12703 printf "%s\n" "$enable_shared" >&6; }
12704
12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12706 printf %s "checking whether to build static libraries... " >&6; }
12707 # Make sure either enable_shared or enable_static is yes.
12708 test yes = "$enable_shared" || enable_static=yes
12709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12710 printf "%s\n" "$enable_static" >&6; }
12711
12712
12713
12714
12715 fi
12716 ac_ext=c
12717 ac_cpp='$CPP $CPPFLAGS'
12718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12721
12722 CC=$lt_save_CC
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738 ac_config_commands="$ac_config_commands libtool"
12739
12740
12741
12742
12743 # Only expand once:
12744
12745
12746
12747
12748 # Checks for libraries.
12749 # openssl library
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5
12751 printf %s "checking for X509_free in -lcrypto... " >&6; }
12752 if test ${ac_cv_lib_crypto_X509_free+y}
12753 then :
12754 printf %s "(cached) " >&6
12755 else $as_nop
12756 ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-lcrypto $LIBS"
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12764 char X509_free ();
12765 int
12766 main (void)
12767 {
12768 return X509_free ();
12769 ;
12770 return 0;
12771 }
12772 _ACEOF
12773 if ac_fn_c_try_link "$LINENO"
12774 then :
12775 ac_cv_lib_crypto_X509_free=yes
12776 else $as_nop
12777 ac_cv_lib_crypto_X509_free=no
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12782 fi
12783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5
12784 printf "%s\n" "$ac_cv_lib_crypto_X509_free" >&6; }
12785 if test "x$ac_cv_lib_crypto_X509_free" = xyes
12786 then :
12787 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12788
12789 LIBS="-lcrypto $LIBS"
12790
12791 else $as_nop
12792 have_crypto=no
12793 fi
12794
12795 if test "x$have_crypto" = "xno" ; then
12796 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12797 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12798 as_fn_error $? "\"no libcrypto found\"
12799 See \`config.log' for more details" "$LINENO" 5; }
12800 fi
12801
12802 # Check for ODBC: use pkg-config first, if that fails, fall back to direct
12803 # library and headerfile checks
12804
12805
12806
12807
12808
12809
12810
12811 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12812 if test -n "$ac_tool_prefix"; then
12813 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12814 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 printf %s "checking for $ac_word... " >&6; }
12817 if test ${ac_cv_path_PKG_CONFIG+y}
12818 then :
12819 printf %s "(cached) " >&6
12820 else $as_nop
12821 case $PKG_CONFIG in
12822 [\\/]* | ?:[\\/]*)
12823 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12824 ;;
12825 *)
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12828 do
12829 IFS=$as_save_IFS
12830 case $as_dir in #(((
12831 '') as_dir=./ ;;
12832 */) ;;
12833 *) as_dir=$as_dir/ ;;
12834 esac
12835 for ac_exec_ext in '' $ac_executable_extensions; do
12836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12837 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12839 break 2
12840 fi
12841 done
12842 done
12843 IFS=$as_save_IFS
12844
12845 ;;
12846 esac
12847 fi
12848 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12849 if test -n "$PKG_CONFIG"; then
12850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12851 printf "%s\n" "$PKG_CONFIG" >&6; }
12852 else
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854 printf "%s\n" "no" >&6; }
12855 fi
12856
12857
12858 fi
12859 if test -z "$ac_cv_path_PKG_CONFIG"; then
12860 ac_pt_PKG_CONFIG=$PKG_CONFIG
12861 # Extract the first word of "pkg-config", so it can be a program name with args.
12862 set dummy pkg-config; ac_word=$2
12863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12864 printf %s "checking for $ac_word... " >&6; }
12865 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12866 then :
12867 printf %s "(cached) " >&6
12868 else $as_nop
12869 case $ac_pt_PKG_CONFIG in
12870 [\\/]* | ?:[\\/]*)
12871 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12872 ;;
12873 *)
12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877 IFS=$as_save_IFS
12878 case $as_dir in #(((
12879 '') as_dir=./ ;;
12880 */) ;;
12881 *) as_dir=$as_dir/ ;;
12882 esac
12883 for ac_exec_ext in '' $ac_executable_extensions; do
12884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12885 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12887 break 2
12888 fi
12889 done
12890 done
12891 IFS=$as_save_IFS
12892
12893 ;;
12894 esac
12895 fi
12896 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12897 if test -n "$ac_pt_PKG_CONFIG"; then
12898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12899 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12900 else
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 printf "%s\n" "no" >&6; }
12903 fi
12904
12905 if test "x$ac_pt_PKG_CONFIG" = x; then
12906 PKG_CONFIG=""
12907 else
12908 case $cross_compiling:$ac_tool_warned in
12909 yes:)
12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12911 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12912 ac_tool_warned=yes ;;
12913 esac
12914 PKG_CONFIG=$ac_pt_PKG_CONFIG
12915 fi
12916 else
12917 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12918 fi
12919
12920 fi
12921 if test -n "$PKG_CONFIG"; then
12922 _pkg_min_version=0.9.0
12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12924 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12925 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12927 printf "%s\n" "yes" >&6; }
12928 else
12929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 printf "%s\n" "no" >&6; }
12931 PKG_CONFIG=""
12932 fi
12933 fi
12934
12935 pkg_failed=no
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unixODBC" >&5
12937 printf %s "checking for unixODBC... " >&6; }
12938
12939 if test -n "$UNIXODBC_CFLAGS"; then
12940 pkg_cv_UNIXODBC_CFLAGS="$UNIXODBC_CFLAGS"
12941 elif test -n "$PKG_CONFIG"; then
12942 if test -n "$PKG_CONFIG" && \
12943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unixODBC\""; } >&5
12944 ($PKG_CONFIG --exists --print-errors "unixODBC") 2>&5
12945 ac_status=$?
12946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947 test $ac_status = 0; }; then
12948 pkg_cv_UNIXODBC_CFLAGS=`$PKG_CONFIG --cflags "unixODBC" 2>/dev/null`
12949 test "x$?" != "x0" && pkg_failed=yes
12950 else
12951 pkg_failed=yes
12952 fi
12953 else
12954 pkg_failed=untried
12955 fi
12956 if test -n "$UNIXODBC_LIBS"; then
12957 pkg_cv_UNIXODBC_LIBS="$UNIXODBC_LIBS"
12958 elif test -n "$PKG_CONFIG"; then
12959 if test -n "$PKG_CONFIG" && \
12960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unixODBC\""; } >&5
12961 ($PKG_CONFIG --exists --print-errors "unixODBC") 2>&5
12962 ac_status=$?
12963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12964 test $ac_status = 0; }; then
12965 pkg_cv_UNIXODBC_LIBS=`$PKG_CONFIG --libs "unixODBC" 2>/dev/null`
12966 test "x$?" != "x0" && pkg_failed=yes
12967 else
12968 pkg_failed=yes
12969 fi
12970 else
12971 pkg_failed=untried
12972 fi
12973
12974
12975
12976 if test $pkg_failed = yes; then
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 printf "%s\n" "no" >&6; }
12979
12980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12981 _pkg_short_errors_supported=yes
12982 else
12983 _pkg_short_errors_supported=no
12984 fi
12985 if test $_pkg_short_errors_supported = yes; then
12986 UNIXODBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unixODBC" 2>&1`
12987 else
12988 UNIXODBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unixODBC" 2>&1`
12989 fi
12990 # Put the nasty error message in config.log where it belongs
12991 echo "$UNIXODBC_PKG_ERRORS" >&5
12992
12993 # odbc library
12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
12995 printf %s "checking for SQLConnect in -lodbc... " >&6; }
12996 if test ${ac_cv_lib_odbc_SQLConnect+y}
12997 then :
12998 printf %s "(cached) " >&6
12999 else $as_nop
13000 ac_check_lib_save_LIBS=$LIBS
13001 LIBS="-lodbc $LIBS"
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004
13005 /* Override any GCC internal prototype to avoid an error.
13006 Use char because int might match the return type of a GCC
13007 builtin and then its argument prototype would still apply. */
13008 char SQLConnect ();
13009 int
13010 main (void)
13011 {
13012 return SQLConnect ();
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"
13018 then :
13019 ac_cv_lib_odbc_SQLConnect=yes
13020 else $as_nop
13021 ac_cv_lib_odbc_SQLConnect=no
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13024 conftest$ac_exeext conftest.$ac_ext
13025 LIBS=$ac_check_lib_save_LIBS
13026 fi
13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
13028 printf "%s\n" "$ac_cv_lib_odbc_SQLConnect" >&6; }
13029 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes
13030 then :
13031 printf "%s\n" "#define HAVE_LIBODBC 1" >>confdefs.h
13032
13033 LIBS="-lodbc $LIBS"
13034
13035 else $as_nop
13036 have_odbc=no
13037 fi
13038
13039 if test "x$have_odbc" = "xno" ; then
13040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13041 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13042 as_fn_error $? "\"no ODBC found\"
13043 See \`config.log' for more details" "$LINENO" 5; }
13044 fi
13045 # Checks for unixODBC sql header files, other headers follow below
13046 for ac_header in sql.h sqlext.h sqltypes.h
13047 do :
13048 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13049 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13050 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13051 then :
13052 cat >>confdefs.h <<_ACEOF
13053 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13054 _ACEOF
13055
13056 else $as_nop
13057 have_sqlheaders=no
13058 fi
13059
13060 done
13061 if test "x$have_sqlheaders" = "xno" ; then
13062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13063 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13064 as_fn_error $? "\"cannot find sql headers\"
13065 See \`config.log' for more details" "$LINENO" 5; }
13066 fi
13067
13068
13069 elif test $pkg_failed = untried; then
13070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 printf "%s\n" "no" >&6; }
13072 # odbc library
13073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
13074 printf %s "checking for SQLConnect in -lodbc... " >&6; }
13075 if test ${ac_cv_lib_odbc_SQLConnect+y}
13076 then :
13077 printf %s "(cached) " >&6
13078 else $as_nop
13079 ac_check_lib_save_LIBS=$LIBS
13080 LIBS="-lodbc $LIBS"
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13083
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13087 char SQLConnect ();
13088 int
13089 main (void)
13090 {
13091 return SQLConnect ();
13092 ;
13093 return 0;
13094 }
13095 _ACEOF
13096 if ac_fn_c_try_link "$LINENO"
13097 then :
13098 ac_cv_lib_odbc_SQLConnect=yes
13099 else $as_nop
13100 ac_cv_lib_odbc_SQLConnect=no
13101 fi
13102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13103 conftest$ac_exeext conftest.$ac_ext
13104 LIBS=$ac_check_lib_save_LIBS
13105 fi
13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
13107 printf "%s\n" "$ac_cv_lib_odbc_SQLConnect" >&6; }
13108 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes
13109 then :
13110 printf "%s\n" "#define HAVE_LIBODBC 1" >>confdefs.h
13111
13112 LIBS="-lodbc $LIBS"
13113
13114 else $as_nop
13115 have_odbc=no
13116 fi
13117
13118 if test "x$have_odbc" = "xno" ; then
13119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13120 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13121 as_fn_error $? "\"no ODBC found\"
13122 See \`config.log' for more details" "$LINENO" 5; }
13123 fi
13124 # Checks for unixODBC sql header files, other headers follow below
13125 for ac_header in sql.h sqlext.h sqltypes.h
13126 do :
13127 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13128 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13129 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13130 then :
13131 cat >>confdefs.h <<_ACEOF
13132 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13133 _ACEOF
13134
13135 else $as_nop
13136 have_sqlheaders=no
13137 fi
13138
13139 done
13140 if test "x$have_sqlheaders" = "xno" ; then
13141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13142 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13143 as_fn_error $? "\"cannot find sql headers\"
13144 See \`config.log' for more details" "$LINENO" 5; }
13145 fi
13146
13147
13148 else
13149 UNIXODBC_CFLAGS=$pkg_cv_UNIXODBC_CFLAGS
13150 UNIXODBC_LIBS=$pkg_cv_UNIXODBC_LIBS
13151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 printf "%s\n" "yes" >&6; }
13153
13154 fi
13155
13156 # Check LCMAPS location
13157
13158
13159 # Check whether --with-lcmaps-prefix was given.
13160 if test ${with_lcmaps_prefix+y}
13161 then :
13162 withval=$with_lcmaps_prefix; ac_lcmaps_prefix=$withval
13163 else $as_nop
13164 ac_lcmaps_prefix=/usr
13165 fi
13166
13167
13168
13169 # Check whether --with-lcmaps-includes was given.
13170 if test ${with_lcmaps_includes+y}
13171 then :
13172 withval=$with_lcmaps_includes; ac_lcmaps_includes=$withval
13173 else $as_nop
13174 ac_lcmaps_includes=$ac_lcmaps_prefix/include
13175 fi
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195 if test "x$with_lcmaps_prefix" = "x" -a "x$with_lcmaps_includes" = "x" ; then
13196
13197 pkg_failed=no
13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcmaps-basic-interface " >&5
13199 printf %s "checking for lcmaps-basic-interface ... " >&6; }
13200
13201 if test -n "$LCMAPS_BASIC_INTERFACE_CFLAGS"; then
13202 pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS="$LCMAPS_BASIC_INTERFACE_CFLAGS"
13203 elif test -n "$PKG_CONFIG"; then
13204 if test -n "$PKG_CONFIG" && \
13205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-basic-interface \""; } >&5
13206 ($PKG_CONFIG --exists --print-errors "lcmaps-basic-interface ") 2>&5
13207 ac_status=$?
13208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13209 test $ac_status = 0; }; then
13210 pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-basic-interface " 2>/dev/null`
13211 test "x$?" != "x0" && pkg_failed=yes
13212 else
13213 pkg_failed=yes
13214 fi
13215 else
13216 pkg_failed=untried
13217 fi
13218 if test -n "$LCMAPS_BASIC_INTERFACE_LIBS"; then
13219 pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS="$LCMAPS_BASIC_INTERFACE_LIBS"
13220 elif test -n "$PKG_CONFIG"; then
13221 if test -n "$PKG_CONFIG" && \
13222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-basic-interface \""; } >&5
13223 ($PKG_CONFIG --exists --print-errors "lcmaps-basic-interface ") 2>&5
13224 ac_status=$?
13225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13226 test $ac_status = 0; }; then
13227 pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-basic-interface " 2>/dev/null`
13228 test "x$?" != "x0" && pkg_failed=yes
13229 else
13230 pkg_failed=yes
13231 fi
13232 else
13233 pkg_failed=untried
13234 fi
13235
13236
13237
13238 if test $pkg_failed = yes; then
13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240 printf "%s\n" "no" >&6; }
13241
13242 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13243 _pkg_short_errors_supported=yes
13244 else
13245 _pkg_short_errors_supported=no
13246 fi
13247 if test $_pkg_short_errors_supported = yes; then
13248 LCMAPS_BASIC_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-basic-interface " 2>&1`
13249 else
13250 LCMAPS_BASIC_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-basic-interface " 2>&1`
13251 fi
13252 # Put the nasty error message in config.log where it belongs
13253 echo "$LCMAPS_BASIC_INTERFACE_PKG_ERRORS" >&5
13254
13255 have_lcmaps_basic_interface=no
13256 elif test $pkg_failed = untried; then
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 printf "%s\n" "no" >&6; }
13259 have_lcmaps_basic_interface=no
13260 else
13261 LCMAPS_BASIC_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS
13262 LCMAPS_BASIC_INTERFACE_LIBS=$pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS
13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13264 printf "%s\n" "yes" >&6; }
13265 have_lcmaps_basic_interface=yes
13266 fi
13267 if test "x$have_lcmaps_basic_interface" = "xno" ; then
13268
13269 ac_save_CFLAGS=$CFLAGS
13270
13271 if test "x$ac_lcmaps_includes" != "x" ; then
13272 ac_try_CFLAGS="-I$ac_lcmaps_includes"
13273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default and $ac_lcmaps_includes" >&5
13274 printf %s "checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default and $ac_lcmaps_includes... " >&6; }
13275 else
13276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default" >&5
13277 printf %s "checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default... " >&6; }
13278 fi
13279
13280 CFLAGS="$ac_try_CFLAGS $CFLAGS"
13281
13282
13283
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286 #include <lcmaps/lcmaps_basic.h>
13287 #ifndef LCMAPS_API_MAJOR_VERSION
13288 #error LCMAPS API version is undefined, this should not happen for new-style interface
13289 #endif
13290 #if (LCMAPS_API_MAJOR_VERSION) < (0) || \
13291 ( (LCMAPS_API_MAJOR_VERSION) == (0) && \
13292 ( (LCMAPS_API_MINOR_VERSION) < (0) || \
13293 ( (LCMAPS_API_MINOR_VERSION) == (0) && \
13294 (LCMAPS_API_PATCH_VERSION) < (0) ) ) )
13295 #error LCMAPS API version older than 0.0.0
13296 #endif
13297 int main(void) {return 0;}
13298 _ACEOF
13299 if ac_fn_c_try_compile "$LINENO"
13300 then :
13301 have_mod=yes
13302 else $as_nop
13303 have_mod=no
13304 fi
13305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
13307 printf "%s\n" "$have_mod" >&6; }
13308
13309
13310 if test "x$have_mod" = "xyes" ; then
13311 have_lcmaps_basic_interface=yes
13312 LCMAPS_BASIC_INTERFACE_CFLAGS=$ac_try_CFLAGS
13313 else
13314 have_lcmaps_basic_interface=no
13315 LCMAPS_BASIC_INTERFACE_CFLAGS=""
13316 fi
13317
13318 CFLAGS=$ac_save_CFLAGS
13319
13320
13321
13322 if test "x$have_lcmaps_basic_interface" = "xno" ; then
13323
13324 pkg_failed=no
13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcmaps-interface < 1.4.31" >&5
13326 printf %s "checking for lcmaps-interface < 1.4.31... " >&6; }
13327
13328 if test -n "$LCMAPS_INTERFACE_CFLAGS"; then
13329 pkg_cv_LCMAPS_INTERFACE_CFLAGS="$LCMAPS_INTERFACE_CFLAGS"
13330 elif test -n "$PKG_CONFIG"; then
13331 if test -n "$PKG_CONFIG" && \
13332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
13333 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
13334 ac_status=$?
13335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13336 test $ac_status = 0; }; then
13337 pkg_cv_LCMAPS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-interface < 1.4.31" 2>/dev/null`
13338 test "x$?" != "x0" && pkg_failed=yes
13339 else
13340 pkg_failed=yes
13341 fi
13342 else
13343 pkg_failed=untried
13344 fi
13345 if test -n "$LCMAPS_INTERFACE_LIBS"; then
13346 pkg_cv_LCMAPS_INTERFACE_LIBS="$LCMAPS_INTERFACE_LIBS"
13347 elif test -n "$PKG_CONFIG"; then
13348 if test -n "$PKG_CONFIG" && \
13349 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
13350 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
13351 ac_status=$?
13352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13353 test $ac_status = 0; }; then
13354 pkg_cv_LCMAPS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-interface < 1.4.31" 2>/dev/null`
13355 test "x$?" != "x0" && pkg_failed=yes
13356 else
13357 pkg_failed=yes
13358 fi
13359 else
13360 pkg_failed=untried
13361 fi
13362
13363
13364
13365 if test $pkg_failed = yes; then
13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 printf "%s\n" "no" >&6; }
13368
13369 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13370 _pkg_short_errors_supported=yes
13371 else
13372 _pkg_short_errors_supported=no
13373 fi
13374 if test $_pkg_short_errors_supported = yes; then
13375 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
13376 else
13377 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
13378 fi
13379 # Put the nasty error message in config.log where it belongs
13380 echo "$LCMAPS_INTERFACE_PKG_ERRORS" >&5
13381
13382 have_lcmaps_basic_interface=no
13383 elif test $pkg_failed = untried; then
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 printf "%s\n" "no" >&6; }
13386 have_lcmaps_basic_interface=no
13387 else
13388 LCMAPS_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_INTERFACE_CFLAGS
13389 LCMAPS_INTERFACE_LIBS=$pkg_cv_LCMAPS_INTERFACE_LIBS
13390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13391 printf "%s\n" "yes" >&6; }
13392 have_lcmaps_basic_interface=yes
13393 fi
13394 if test "x$have_lcmaps_basic_interface" = "xno" ; then
13395
13396 ac_save_CFLAGS=$CFLAGS
13397
13398 if test "x$ac_lcmaps_includes" != "x" ; then
13399 ac_try_CFLAGS="-I$ac_lcmaps_includes"
13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default and $ac_lcmaps_includes" >&5
13401 printf %s "checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default and $ac_lcmaps_includes... " >&6; }
13402 else
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default" >&5
13404 printf %s "checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default... " >&6; }
13405 fi
13406
13407 CFLAGS="$ac_try_CFLAGS $CFLAGS"
13408
13409
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 #include <lcmaps/lcmaps_version.h>
13413 int main(void) {return 0;}
13414 _ACEOF
13415 if ac_fn_c_try_compile "$LINENO"
13416 then :
13417 have_mod=no
13418
13419 else $as_nop
13420
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 #include <lcmaps/lcmaps_types.h>
13424 int main(void) {return 0;}
13425 _ACEOF
13426 if ac_fn_c_try_compile "$LINENO"
13427 then :
13428 have_mod=yes
13429 else $as_nop
13430 have_mod=no
13431 fi
13432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13433
13434 fi
13435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
13437 printf "%s\n" "$have_mod" >&6; }
13438
13439
13440 if test "x$have_mod" = "xyes" ; then
13441 have_lcmaps_basic_interface=yes
13442 LCMAPS_INTERFACE_CFLAGS=$ac_try_CFLAGS
13443 else
13444 have_lcmaps_basic_interface=no
13445 LCMAPS_INTERFACE_CFLAGS=""
13446 fi
13447
13448 CFLAGS=$ac_save_CFLAGS
13449
13450
13451 fi
13452 LCMAPS_BASIC_INTERFACE_CFLAGS=$LCMAPS_INTERFACE_CFLAGS
13453 fi
13454
13455 fi
13456 else
13457
13458 ac_save_CFLAGS=$CFLAGS
13459
13460 if test "x$ac_lcmaps_includes" != "x" ; then
13461 ac_try_CFLAGS="-I$ac_lcmaps_includes"
13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default and $ac_lcmaps_includes" >&5
13463 printf %s "checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default and $ac_lcmaps_includes... " >&6; }
13464 else
13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default" >&5
13466 printf %s "checking for LCMAPS_BASIC_INTERFACE (lcmaps_basic.h) at system default... " >&6; }
13467 fi
13468
13469 CFLAGS="$ac_try_CFLAGS $CFLAGS"
13470
13471
13472
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475 #include <lcmaps/lcmaps_basic.h>
13476 #ifndef LCMAPS_API_MAJOR_VERSION
13477 #error LCMAPS API version is undefined, this should not happen for new-style interface
13478 #endif
13479 #if (LCMAPS_API_MAJOR_VERSION) < (0) || \
13480 ( (LCMAPS_API_MAJOR_VERSION) == (0) && \
13481 ( (LCMAPS_API_MINOR_VERSION) < (0) || \
13482 ( (LCMAPS_API_MINOR_VERSION) == (0) && \
13483 (LCMAPS_API_PATCH_VERSION) < (0) ) ) )
13484 #error LCMAPS API version older than 0.0.0
13485 #endif
13486 int main(void) {return 0;}
13487 _ACEOF
13488 if ac_fn_c_try_compile "$LINENO"
13489 then :
13490 have_mod=yes
13491 else $as_nop
13492 have_mod=no
13493 fi
13494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
13496 printf "%s\n" "$have_mod" >&6; }
13497
13498
13499 if test "x$have_mod" = "xyes" ; then
13500 have_lcmaps_basic_interface=yes
13501 LCMAPS_BASIC_INTERFACE_CFLAGS=$ac_try_CFLAGS
13502 else
13503 have_lcmaps_basic_interface=no
13504 LCMAPS_BASIC_INTERFACE_CFLAGS=""
13505 fi
13506
13507 CFLAGS=$ac_save_CFLAGS
13508
13509
13510 if test "x$have_lcmaps_basic_interface" = "xno" ; then
13511
13512 pkg_failed=no
13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcmaps-basic-interface " >&5
13514 printf %s "checking for lcmaps-basic-interface ... " >&6; }
13515
13516 if test -n "$LCMAPS_BASIC_INTERFACE_CFLAGS"; then
13517 pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS="$LCMAPS_BASIC_INTERFACE_CFLAGS"
13518 elif test -n "$PKG_CONFIG"; then
13519 if test -n "$PKG_CONFIG" && \
13520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-basic-interface \""; } >&5
13521 ($PKG_CONFIG --exists --print-errors "lcmaps-basic-interface ") 2>&5
13522 ac_status=$?
13523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13524 test $ac_status = 0; }; then
13525 pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-basic-interface " 2>/dev/null`
13526 test "x$?" != "x0" && pkg_failed=yes
13527 else
13528 pkg_failed=yes
13529 fi
13530 else
13531 pkg_failed=untried
13532 fi
13533 if test -n "$LCMAPS_BASIC_INTERFACE_LIBS"; then
13534 pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS="$LCMAPS_BASIC_INTERFACE_LIBS"
13535 elif test -n "$PKG_CONFIG"; then
13536 if test -n "$PKG_CONFIG" && \
13537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-basic-interface \""; } >&5
13538 ($PKG_CONFIG --exists --print-errors "lcmaps-basic-interface ") 2>&5
13539 ac_status=$?
13540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13541 test $ac_status = 0; }; then
13542 pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-basic-interface " 2>/dev/null`
13543 test "x$?" != "x0" && pkg_failed=yes
13544 else
13545 pkg_failed=yes
13546 fi
13547 else
13548 pkg_failed=untried
13549 fi
13550
13551
13552
13553 if test $pkg_failed = yes; then
13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 printf "%s\n" "no" >&6; }
13556
13557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13558 _pkg_short_errors_supported=yes
13559 else
13560 _pkg_short_errors_supported=no
13561 fi
13562 if test $_pkg_short_errors_supported = yes; then
13563 LCMAPS_BASIC_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-basic-interface " 2>&1`
13564 else
13565 LCMAPS_BASIC_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-basic-interface " 2>&1`
13566 fi
13567 # Put the nasty error message in config.log where it belongs
13568 echo "$LCMAPS_BASIC_INTERFACE_PKG_ERRORS" >&5
13569
13570 have_lcmaps_basic_interface=no
13571 elif test $pkg_failed = untried; then
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 printf "%s\n" "no" >&6; }
13574 have_lcmaps_basic_interface=no
13575 else
13576 LCMAPS_BASIC_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_BASIC_INTERFACE_CFLAGS
13577 LCMAPS_BASIC_INTERFACE_LIBS=$pkg_cv_LCMAPS_BASIC_INTERFACE_LIBS
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13579 printf "%s\n" "yes" >&6; }
13580 have_lcmaps_basic_interface=yes
13581 fi
13582
13583 if test "x$have_lcmaps_basic_interface" = "xno" ; then
13584
13585 ac_save_CFLAGS=$CFLAGS
13586
13587 if test "x$ac_lcmaps_includes" != "x" ; then
13588 ac_try_CFLAGS="-I$ac_lcmaps_includes"
13589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default and $ac_lcmaps_includes" >&5
13590 printf %s "checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default and $ac_lcmaps_includes... " >&6; }
13591 else
13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default" >&5
13593 printf %s "checking for LCMAPS_INTERFACE (lcmaps_types.h) at system default... " >&6; }
13594 fi
13595
13596 CFLAGS="$ac_try_CFLAGS $CFLAGS"
13597
13598
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #include <lcmaps/lcmaps_version.h>
13602 int main(void) {return 0;}
13603 _ACEOF
13604 if ac_fn_c_try_compile "$LINENO"
13605 then :
13606 have_mod=no
13607
13608 else $as_nop
13609
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612 #include <lcmaps/lcmaps_types.h>
13613 int main(void) {return 0;}
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"
13616 then :
13617 have_mod=yes
13618 else $as_nop
13619 have_mod=no
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13622
13623 fi
13624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
13626 printf "%s\n" "$have_mod" >&6; }
13627
13628
13629 if test "x$have_mod" = "xyes" ; then
13630 have_lcmaps_basic_interface=yes
13631 LCMAPS_INTERFACE_CFLAGS=$ac_try_CFLAGS
13632 else
13633 have_lcmaps_basic_interface=no
13634 LCMAPS_INTERFACE_CFLAGS=""
13635 fi
13636
13637 CFLAGS=$ac_save_CFLAGS
13638
13639
13640 if test "x$have_lcmaps_basic_interface" = "xno" ; then
13641
13642 pkg_failed=no
13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcmaps-interface < 1.4.31" >&5
13644 printf %s "checking for lcmaps-interface < 1.4.31... " >&6; }
13645
13646 if test -n "$LCMAPS_INTERFACE_CFLAGS"; then
13647 pkg_cv_LCMAPS_INTERFACE_CFLAGS="$LCMAPS_INTERFACE_CFLAGS"
13648 elif test -n "$PKG_CONFIG"; then
13649 if test -n "$PKG_CONFIG" && \
13650 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
13651 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
13652 ac_status=$?
13653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13654 test $ac_status = 0; }; then
13655 pkg_cv_LCMAPS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-interface < 1.4.31" 2>/dev/null`
13656 test "x$?" != "x0" && pkg_failed=yes
13657 else
13658 pkg_failed=yes
13659 fi
13660 else
13661 pkg_failed=untried
13662 fi
13663 if test -n "$LCMAPS_INTERFACE_LIBS"; then
13664 pkg_cv_LCMAPS_INTERFACE_LIBS="$LCMAPS_INTERFACE_LIBS"
13665 elif test -n "$PKG_CONFIG"; then
13666 if test -n "$PKG_CONFIG" && \
13667 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
13668 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
13669 ac_status=$?
13670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13671 test $ac_status = 0; }; then
13672 pkg_cv_LCMAPS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-interface < 1.4.31" 2>/dev/null`
13673 test "x$?" != "x0" && pkg_failed=yes
13674 else
13675 pkg_failed=yes
13676 fi
13677 else
13678 pkg_failed=untried
13679 fi
13680
13681
13682
13683 if test $pkg_failed = yes; then
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685 printf "%s\n" "no" >&6; }
13686
13687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13688 _pkg_short_errors_supported=yes
13689 else
13690 _pkg_short_errors_supported=no
13691 fi
13692 if test $_pkg_short_errors_supported = yes; then
13693 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
13694 else
13695 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
13696 fi
13697 # Put the nasty error message in config.log where it belongs
13698 echo "$LCMAPS_INTERFACE_PKG_ERRORS" >&5
13699
13700 have_lcmaps_basic_interface=no
13701 elif test $pkg_failed = untried; then
13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 printf "%s\n" "no" >&6; }
13704 have_lcmaps_basic_interface=no
13705 else
13706 LCMAPS_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_INTERFACE_CFLAGS
13707 LCMAPS_INTERFACE_LIBS=$pkg_cv_LCMAPS_INTERFACE_LIBS
13708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13709 printf "%s\n" "yes" >&6; }
13710 have_lcmaps_basic_interface=yes
13711 fi
13712 fi
13713 LCMAPS_BASIC_INTERFACE_CFLAGS=$LCMAPS_INTERFACE_CFLAGS
13714 fi
13715
13716 fi
13717 fi
13718 LCMAPS_CFLAGS=$LCMAPS_BASIC_INTERFACE_CFLAGS
13719
13720
13721
13722
13723
13724 if test "x$have_lcmaps_basic_interface" = "xno" ; then
13725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13726 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13727 as_fn_error $? "\"no LCMAPS basic interface found\"
13728 See \`config.log' for more details" "$LINENO" 5; }
13729 fi
13730
13731 # Checks for LCMAPS plugin prototype using LCMAPS CFLAGS
13732 SAVED_CPPFLAGS=$CPPFLAGS
13733 CPPFLAGS=$LCMAPS_CFLAGS
13734 ac_fn_c_check_header_compile "$LINENO" "lcmaps/lcmaps_plugin_prototypes.h" "ac_cv_header_lcmaps_lcmaps_plugin_prototypes_h" "$ac_includes_default"
13735 if test "x$ac_cv_header_lcmaps_lcmaps_plugin_prototypes_h" = xyes
13736 then :
13737 printf "%s\n" "#define HAVE_LCMAPS_LCMAPS_PLUGIN_PROTOTYPES_H 1" >>confdefs.h
13738
13739 fi
13740
13741 CPPFLAGS=$SAVED_CPPFLAGS
13742
13743 # Checks for generic header files.
13744 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13745 if test "x$ac_cv_header_stdlib_h" = xyes
13746 then :
13747 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
13748
13749 fi
13750 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
13751 if test "x$ac_cv_header_string_h" = xyes
13752 then :
13753 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
13754
13755 fi
13756
13757
13758 # Checks for typedefs, structures, and compiler characteristics.
13759 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13760 if test "x$ac_cv_type_size_t" = xyes
13761 then :
13762
13763 else $as_nop
13764
13765 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13766
13767 fi
13768
13769
13770 # Checks for library functions.
13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13772 printf %s "checking for GNU libc compatible malloc... " >&6; }
13773 if test ${ac_cv_func_malloc_0_nonnull+y}
13774 then :
13775 printf %s "(cached) " >&6
13776 else $as_nop
13777 if test "$cross_compiling" = yes
13778 then :
13779 case "$host_os" in # ((
13780 # Guess yes on platforms where we know the result.
13781 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
13782 | hpux* | solaris* | cygwin* | mingw* | msys* )
13783 ac_cv_func_malloc_0_nonnull=yes ;;
13784 # If we don't know, assume the worst.
13785 *) ac_cv_func_malloc_0_nonnull=no ;;
13786 esac
13787 else $as_nop
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790 #include <stdlib.h>
13791
13792 int
13793 main (void)
13794 {
13795 void *p = malloc (0);
13796 int result = !p;
13797 free (p);
13798 return result;
13799 ;
13800 return 0;
13801 }
13802 _ACEOF
13803 if ac_fn_c_try_run "$LINENO"
13804 then :
13805 ac_cv_func_malloc_0_nonnull=yes
13806 else $as_nop
13807 ac_cv_func_malloc_0_nonnull=no
13808 fi
13809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13810 conftest.$ac_objext conftest.beam conftest.$ac_ext
13811 fi
13812
13813 fi
13814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13815 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
13816 if test $ac_cv_func_malloc_0_nonnull = yes
13817 then :
13818
13819 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
13820
13821 else $as_nop
13822 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
13823
13824 case " $LIBOBJS " in
13825 *" malloc.$ac_objext "* ) ;;
13826 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13827 ;;
13828 esac
13829
13830
13831 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
13832
13833 fi
13834
13835
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
13837 printf %s "checking for GNU libc compatible realloc... " >&6; }
13838 if test ${ac_cv_func_realloc_0_nonnull+y}
13839 then :
13840 printf %s "(cached) " >&6
13841 else $as_nop
13842 if test "$cross_compiling" = yes
13843 then :
13844 case "$host_os" in # ((
13845 # Guess yes on platforms where we know the result.
13846 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
13847 | hpux* | solaris* | cygwin* | mingw* | msys* )
13848 ac_cv_func_realloc_0_nonnull=yes ;;
13849 # If we don't know, assume the worst.
13850 *) ac_cv_func_realloc_0_nonnull=no ;;
13851 esac
13852 else $as_nop
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855 #include <stdlib.h>
13856
13857 int
13858 main (void)
13859 {
13860 void *p = realloc (0, 0);
13861 int result = !p;
13862 free (p);
13863 return result;
13864 ;
13865 return 0;
13866 }
13867 _ACEOF
13868 if ac_fn_c_try_run "$LINENO"
13869 then :
13870 ac_cv_func_realloc_0_nonnull=yes
13871 else $as_nop
13872 ac_cv_func_realloc_0_nonnull=no
13873 fi
13874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13875 conftest.$ac_objext conftest.beam conftest.$ac_ext
13876 fi
13877
13878 fi
13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
13880 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
13881 if test $ac_cv_func_realloc_0_nonnull = yes
13882 then :
13883
13884 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
13885
13886 else $as_nop
13887 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
13888
13889 case " $LIBOBJS " in
13890 *" realloc.$ac_objext "* ) ;;
13891 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13892 ;;
13893 esac
13894
13895
13896 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
13897
13898 fi
13899
13900
13901 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
13902 if test "x$ac_cv_func_setenv" = xyes
13903 then :
13904 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
13905
13906 fi
13907 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13908 if test "x$ac_cv_func_strdup" = xyes
13909 then :
13910 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13911
13912 fi
13913
13914
13915
13916 # Check whether --with-moduledir was given.
13917 if test ${with_moduledir+y}
13918 then :
13919 withval=$with_moduledir;
13920 MODULEDIR=$withval
13921
13922
13923 else $as_nop
13924
13925 MODULEDIR='${libdir}/lcmaps'
13926
13927
13928 fi
13929
13930
13931 # Find proper shared library extension
13932 eval SHREXT=$shrext_cmds
13933
13934
13935 # Configuration items
13936 ac_config_headers="$ac_config_headers src/lcmaps_jobrep_config.h"
13937
13938 ac_config_files="$ac_config_files Makefile"
13939
13940 ac_config_files="$ac_config_files src/Makefile"
13941
13942 ac_config_files="$ac_config_files src/jobrep/Makefile"
13943
13944 ac_config_files="$ac_config_files utils/Makefile"
13945
13946 ac_config_files="$ac_config_files doc/Makefile"
13947
13948 ac_config_files="$ac_config_files doc/lcmaps_jobrep.mod.8"
13949
13950 ac_config_files="$ac_config_files doc/jobrep-admin.8"
13951
13952
13953 cat >confcache <<\_ACEOF
13954 # This file is a shell script that caches the results of configure
13955 # tests run on this system so they can be shared between configure
13956 # scripts and configure runs, see configure's option --config-cache.
13957 # It is not useful on other systems. If it contains results you don't
13958 # want to keep, you may remove or edit it.
13959 #
13960 # config.status only pays attention to the cache file if you give it
13961 # the --recheck option to rerun configure.
13962 #
13963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13965 # following values.
13966
13967 _ACEOF
13968
13969 # The following way of writing the cache mishandles newlines in values,
13970 # but we know of no workaround that is simple, portable, and efficient.
13971 # So, we kill variables containing newlines.
13972 # Ultrix sh set writes to stderr and can't be redirected directly,
13973 # and sets the high bit in the cache file unless we assign to the vars.
13974 (
13975 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13976 eval ac_val=\$$ac_var
13977 case $ac_val in #(
13978 *${as_nl}*)
13979 case $ac_var in #(
13980 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13981 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13982 esac
13983 case $ac_var in #(
13984 _ | IFS | as_nl) ;; #(
13985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13986 *) { eval $ac_var=; unset $ac_var;} ;;
13987 esac ;;
13988 esac
13989 done
13990
13991 (set) 2>&1 |
13992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13993 *${as_nl}ac_space=\ *)
13994 # `set' does not quote correctly, so add quotes: double-quote
13995 # substitution turns \\\\ into \\, and sed turns \\ into \.
13996 sed -n \
13997 "s/'/'\\\\''/g;
13998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13999 ;; #(
14000 *)
14001 # `set' quotes correctly as required by POSIX, so do not add quotes.
14002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14003 ;;
14004 esac |
14005 sort
14006 ) |
14007 sed '
14008 /^ac_cv_env_/b end
14009 t clear
14010 :clear
14011 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14012 t end
14013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14014 :end' >>confcache
14015 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14016 if test -w "$cache_file"; then
14017 if test "x$cache_file" != "x/dev/null"; then
14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14019 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14020 if test ! -f "$cache_file" || test -h "$cache_file"; then
14021 cat confcache >"$cache_file"
14022 else
14023 case $cache_file in #(
14024 */* | ?:*)
14025 mv -f confcache "$cache_file"$$ &&
14026 mv -f "$cache_file"$$ "$cache_file" ;; #(
14027 *)
14028 mv -f confcache "$cache_file" ;;
14029 esac
14030 fi
14031 fi
14032 else
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14034 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14035 fi
14036 fi
14037 rm -f confcache
14038
14039 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14040 # Let make expand exec_prefix.
14041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14042
14043 DEFS=-DHAVE_CONFIG_H
14044
14045 ac_libobjs=
14046 ac_ltlibobjs=
14047 U=
14048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14049 # 1. Remove the extension, and $U if already installed.
14050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14051 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14053 # will be set to the directory where LIBOBJS objects are built.
14054 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14055 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14056 done
14057 LIBOBJS=$ac_libobjs
14058
14059 LTLIBOBJS=$ac_ltlibobjs
14060
14061
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14063 printf %s "checking that generated files are newer than configure... " >&6; }
14064 if test -n "$am_sleep_pid"; then
14065 # Hide warnings about reused PIDs.
14066 wait $am_sleep_pid 2>/dev/null
14067 fi
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14069 printf "%s\n" "done" >&6; }
14070 if test -n "$EXEEXT"; then
14071 am__EXEEXT_TRUE=
14072 am__EXEEXT_FALSE='#'
14073 else
14074 am__EXEEXT_TRUE='#'
14075 am__EXEEXT_FALSE=
14076 fi
14077
14078 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14079 as_fn_error $? "conditional \"AMDEP\" was never defined.
14080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14081 fi
14082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14083 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14085 fi
14086
14087 : "${CONFIG_STATUS=./config.status}"
14088 ac_write_fail=0
14089 ac_clean_files_save=$ac_clean_files
14090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14092 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14093 as_write_fail=0
14094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14095 #! $SHELL
14096 # Generated by $as_me.
14097 # Run this file to recreate the current configuration.
14098 # Compiler output produced by configure, useful for debugging
14099 # configure, is in config.log if it exists.
14100
14101 debug=false
14102 ac_cs_recheck=false
14103 ac_cs_silent=false
14104
14105 SHELL=\${CONFIG_SHELL-$SHELL}
14106 export SHELL
14107 _ASEOF
14108 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14109 ## -------------------- ##
14110 ## M4sh Initialization. ##
14111 ## -------------------- ##
14112
14113 # Be more Bourne compatible
14114 DUALCASE=1; export DUALCASE # for MKS sh
14115 as_nop=:
14116 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14117 then :
14118 emulate sh
14119 NULLCMD=:
14120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14121 # is contrary to our usage. Disable this feature.
14122 alias -g '${1+"$@"}'='"$@"'
14123 setopt NO_GLOB_SUBST
14124 else $as_nop
14125 case `(set -o) 2>/dev/null` in #(
14126 *posix*) :
14127 set -o posix ;; #(
14128 *) :
14129 ;;
14130 esac
14131 fi
14132
14133
14134
14135 # Reset variables that may have inherited troublesome values from
14136 # the environment.
14137
14138 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14139 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14140 # side effect of setting IFS to empty, thus disabling word splitting.)
14141 # Quoting is to prevent editors from complaining about space-tab.
14142 as_nl='
14143 '
14144 export as_nl
14145 IFS=" "" $as_nl"
14146
14147 PS1='$ '
14148 PS2='> '
14149 PS4='+ '
14150
14151 # Ensure predictable behavior from utilities with locale-dependent output.
14152 LC_ALL=C
14153 export LC_ALL
14154 LANGUAGE=C
14155 export LANGUAGE
14156
14157 # We cannot yet rely on "unset" to work, but we need these variables
14158 # to be unset--not just set to an empty or harmless value--now, to
14159 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14160 # also avoids known problems related to "unset" and subshell syntax
14161 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14162 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14163 do eval test \${$as_var+y} \
14164 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14165 done
14166
14167 # Ensure that fds 0, 1, and 2 are open.
14168 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14169 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14170 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14171
14172 # The user is always right.
14173 if ${PATH_SEPARATOR+false} :; then
14174 PATH_SEPARATOR=:
14175 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14177 PATH_SEPARATOR=';'
14178 }
14179 fi
14180
14181
14182 # Find who we are. Look in the path if we contain no directory separator.
14183 as_myself=
14184 case $0 in #((
14185 *[\\/]* ) as_myself=$0 ;;
14186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14188 do
14189 IFS=$as_save_IFS
14190 case $as_dir in #(((
14191 '') as_dir=./ ;;
14192 */) ;;
14193 *) as_dir=$as_dir/ ;;
14194 esac
14195 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14196 done
14197 IFS=$as_save_IFS
14198
14199 ;;
14200 esac
14201 # We did not find ourselves, most probably we were run as `sh COMMAND'
14202 # in which case we are not to be found in the path.
14203 if test "x$as_myself" = x; then
14204 as_myself=$0
14205 fi
14206 if test ! -f "$as_myself"; then
14207 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14208 exit 1
14209 fi
14210
14211
14212
14213 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14214 # ----------------------------------------
14215 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14216 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14217 # script with STATUS, using 1 if that was 0.
14218 as_fn_error ()
14219 {
14220 as_status=$1; test $as_status -eq 0 && as_status=1
14221 if test "$4"; then
14222 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14224 fi
14225 printf "%s\n" "$as_me: error: $2" >&2
14226 as_fn_exit $as_status
14227 } # as_fn_error
14228
14229
14230
14231 # as_fn_set_status STATUS
14232 # -----------------------
14233 # Set $? to STATUS, without forking.
14234 as_fn_set_status ()
14235 {
14236 return $1
14237 } # as_fn_set_status
14238
14239 # as_fn_exit STATUS
14240 # -----------------
14241 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14242 as_fn_exit ()
14243 {
14244 set +e
14245 as_fn_set_status $1
14246 exit $1
14247 } # as_fn_exit
14248
14249 # as_fn_unset VAR
14250 # ---------------
14251 # Portably unset VAR.
14252 as_fn_unset ()
14253 {
14254 { eval $1=; unset $1;}
14255 }
14256 as_unset=as_fn_unset
14257
14258 # as_fn_append VAR VALUE
14259 # ----------------------
14260 # Append the text in VALUE to the end of the definition contained in VAR. Take
14261 # advantage of any shell optimizations that allow amortized linear growth over
14262 # repeated appends, instead of the typical quadratic growth present in naive
14263 # implementations.
14264 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14265 then :
14266 eval 'as_fn_append ()
14267 {
14268 eval $1+=\$2
14269 }'
14270 else $as_nop
14271 as_fn_append ()
14272 {
14273 eval $1=\$$1\$2
14274 }
14275 fi # as_fn_append
14276
14277 # as_fn_arith ARG...
14278 # ------------------
14279 # Perform arithmetic evaluation on the ARGs, and store the result in the
14280 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14281 # must be portable across $(()) and expr.
14282 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14283 then :
14284 eval 'as_fn_arith ()
14285 {
14286 as_val=$(( $* ))
14287 }'
14288 else $as_nop
14289 as_fn_arith ()
14290 {
14291 as_val=`expr "$@" || test $? -eq 1`
14292 }
14293 fi # as_fn_arith
14294
14295
14296 if expr a : '\(a\)' >/dev/null 2>&1 &&
14297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14298 as_expr=expr
14299 else
14300 as_expr=false
14301 fi
14302
14303 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14304 as_basename=basename
14305 else
14306 as_basename=false
14307 fi
14308
14309 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14310 as_dirname=dirname
14311 else
14312 as_dirname=false
14313 fi
14314
14315 as_me=`$as_basename -- "$0" ||
14316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14317 X"$0" : 'X\(//\)$' \| \
14318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14319 printf "%s\n" X/"$0" |
14320 sed '/^.*\/\([^/][^/]*\)\/*$/{
14321 s//\1/
14322 q
14323 }
14324 /^X\/\(\/\/\)$/{
14325 s//\1/
14326 q
14327 }
14328 /^X\/\(\/\).*/{
14329 s//\1/
14330 q
14331 }
14332 s/.*/./; q'`
14333
14334 # Avoid depending upon Character Ranges.
14335 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14336 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14337 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14338 as_cr_digits='0123456789'
14339 as_cr_alnum=$as_cr_Letters$as_cr_digits
14340
14341
14342 # Determine whether it's possible to make 'echo' print without a newline.
14343 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14344 # for compatibility with existing Makefiles.
14345 ECHO_C= ECHO_N= ECHO_T=
14346 case `echo -n x` in #(((((
14347 -n*)
14348 case `echo 'xy\c'` in
14349 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14350 xy) ECHO_C='\c';;
14351 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14352 ECHO_T=' ';;
14353 esac;;
14354 *)
14355 ECHO_N='-n';;
14356 esac
14357
14358 # For backward compatibility with old third-party macros, we provide
14359 # the shell variables $as_echo and $as_echo_n. New code should use
14360 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14361 as_echo='printf %s\n'
14362 as_echo_n='printf %s'
14363
14364 rm -f conf$$ conf$$.exe conf$$.file
14365 if test -d conf$$.dir; then
14366 rm -f conf$$.dir/conf$$.file
14367 else
14368 rm -f conf$$.dir
14369 mkdir conf$$.dir 2>/dev/null
14370 fi
14371 if (echo >conf$$.file) 2>/dev/null; then
14372 if ln -s conf$$.file conf$$ 2>/dev/null; then
14373 as_ln_s='ln -s'
14374 # ... but there are two gotchas:
14375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14377 # In both cases, we have to default to `cp -pR'.
14378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14379 as_ln_s='cp -pR'
14380 elif ln conf$$.file conf$$ 2>/dev/null; then
14381 as_ln_s=ln
14382 else
14383 as_ln_s='cp -pR'
14384 fi
14385 else
14386 as_ln_s='cp -pR'
14387 fi
14388 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14389 rmdir conf$$.dir 2>/dev/null
14390
14391
14392 # as_fn_mkdir_p
14393 # -------------
14394 # Create "$as_dir" as a directory, including parents if necessary.
14395 as_fn_mkdir_p ()
14396 {
14397
14398 case $as_dir in #(
14399 -*) as_dir=./$as_dir;;
14400 esac
14401 test -d "$as_dir" || eval $as_mkdir_p || {
14402 as_dirs=
14403 while :; do
14404 case $as_dir in #(
14405 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14406 *) as_qdir=$as_dir;;
14407 esac
14408 as_dirs="'$as_qdir' $as_dirs"
14409 as_dir=`$as_dirname -- "$as_dir" ||
14410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14411 X"$as_dir" : 'X\(//\)[^/]' \| \
14412 X"$as_dir" : 'X\(//\)$' \| \
14413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14414 printf "%s\n" X"$as_dir" |
14415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14416 s//\1/
14417 q
14418 }
14419 /^X\(\/\/\)[^/].*/{
14420 s//\1/
14421 q
14422 }
14423 /^X\(\/\/\)$/{
14424 s//\1/
14425 q
14426 }
14427 /^X\(\/\).*/{
14428 s//\1/
14429 q
14430 }
14431 s/.*/./; q'`
14432 test -d "$as_dir" && break
14433 done
14434 test -z "$as_dirs" || eval "mkdir $as_dirs"
14435 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14436
14437
14438 } # as_fn_mkdir_p
14439 if mkdir -p . 2>/dev/null; then
14440 as_mkdir_p='mkdir -p "$as_dir"'
14441 else
14442 test -d ./-p && rmdir ./-p
14443 as_mkdir_p=false
14444 fi
14445
14446
14447 # as_fn_executable_p FILE
14448 # -----------------------
14449 # Test if FILE is an executable regular file.
14450 as_fn_executable_p ()
14451 {
14452 test -f "$1" && test -x "$1"
14453 } # as_fn_executable_p
14454 as_test_x='test -x'
14455 as_executable_p=as_fn_executable_p
14456
14457 # Sed expression to map a string onto a valid CPP name.
14458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14459
14460 # Sed expression to map a string onto a valid variable name.
14461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14462
14463
14464 exec 6>&1
14465 ## ----------------------------------- ##
14466 ## Main body of $CONFIG_STATUS script. ##
14467 ## ----------------------------------- ##
14468 _ASEOF
14469 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14470
14471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14472 # Save the log message, to keep $0 and so on meaningful, and to
14473 # report actual input values of CONFIG_FILES etc. instead of their
14474 # values after options handling.
14475 ac_log="
14476 This file was extended by LCMAPS plugins jobrep $as_me 1.5.8, which was
14477 generated by GNU Autoconf 2.71. Invocation command line was
14478
14479 CONFIG_FILES = $CONFIG_FILES
14480 CONFIG_HEADERS = $CONFIG_HEADERS
14481 CONFIG_LINKS = $CONFIG_LINKS
14482 CONFIG_COMMANDS = $CONFIG_COMMANDS
14483 $ $0 $@
14484
14485 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14486 "
14487
14488 _ACEOF
14489
14490 case $ac_config_files in *"
14491 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14492 esac
14493
14494 case $ac_config_headers in *"
14495 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14496 esac
14497
14498
14499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14500 # Files that config.status was made for.
14501 config_files="$ac_config_files"
14502 config_headers="$ac_config_headers"
14503 config_commands="$ac_config_commands"
14504
14505 _ACEOF
14506
14507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14508 ac_cs_usage="\
14509 \`$as_me' instantiates files and other configuration actions
14510 from templates according to the current configuration. Unless the files
14511 and actions are specified as TAGs, all are instantiated by default.
14512
14513 Usage: $0 [OPTION]... [TAG]...
14514
14515 -h, --help print this help, then exit
14516 -V, --version print version number and configuration settings, then exit
14517 --config print configuration, then exit
14518 -q, --quiet, --silent
14519 do not print progress messages
14520 -d, --debug don't remove temporary files
14521 --recheck update $as_me by reconfiguring in the same conditions
14522 --file=FILE[:TEMPLATE]
14523 instantiate the configuration file FILE
14524 --header=FILE[:TEMPLATE]
14525 instantiate the configuration header FILE
14526
14527 Configuration files:
14528 $config_files
14529
14530 Configuration headers:
14531 $config_headers
14532
14533 Configuration commands:
14534 $config_commands
14535
14536 Report bugs to the package provider."
14537
14538 _ACEOF
14539 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14540 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14542 ac_cs_config='$ac_cs_config_escaped'
14543 ac_cs_version="\\
14544 LCMAPS plugins jobrep config.status 1.5.8
14545 configured by $0, generated by GNU Autoconf 2.71,
14546 with options \\"\$ac_cs_config\\"
14547
14548 Copyright (C) 2021 Free Software Foundation, Inc.
14549 This config.status script is free software; the Free Software Foundation
14550 gives unlimited permission to copy, distribute and modify it."
14551
14552 ac_pwd='$ac_pwd'
14553 srcdir='$srcdir'
14554 INSTALL='$INSTALL'
14555 MKDIR_P='$MKDIR_P'
14556 AWK='$AWK'
14557 test -n "\$AWK" || AWK=awk
14558 _ACEOF
14559
14560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561 # The default lists apply if the user does not specify any file.
14562 ac_need_defaults=:
14563 while test $# != 0
14564 do
14565 case $1 in
14566 --*=?*)
14567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14569 ac_shift=:
14570 ;;
14571 --*=)
14572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14573 ac_optarg=
14574 ac_shift=:
14575 ;;
14576 *)
14577 ac_option=$1
14578 ac_optarg=$2
14579 ac_shift=shift
14580 ;;
14581 esac
14582
14583 case $ac_option in
14584 # Handling of the options.
14585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14586 ac_cs_recheck=: ;;
14587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14588 printf "%s\n" "$ac_cs_version"; exit ;;
14589 --config | --confi | --conf | --con | --co | --c )
14590 printf "%s\n" "$ac_cs_config"; exit ;;
14591 --debug | --debu | --deb | --de | --d | -d )
14592 debug=: ;;
14593 --file | --fil | --fi | --f )
14594 $ac_shift
14595 case $ac_optarg in
14596 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14597 '') as_fn_error $? "missing file argument" ;;
14598 esac
14599 as_fn_append CONFIG_FILES " '$ac_optarg'"
14600 ac_need_defaults=false;;
14601 --header | --heade | --head | --hea )
14602 $ac_shift
14603 case $ac_optarg in
14604 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14605 esac
14606 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14607 ac_need_defaults=false;;
14608 --he | --h)
14609 # Conflict between --help and --header
14610 as_fn_error $? "ambiguous option: \`$1'
14611 Try \`$0 --help' for more information.";;
14612 --help | --hel | -h )
14613 printf "%s\n" "$ac_cs_usage"; exit ;;
14614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14616 ac_cs_silent=: ;;
14617
14618 # This is an error.
14619 -*) as_fn_error $? "unrecognized option: \`$1'
14620 Try \`$0 --help' for more information." ;;
14621
14622 *) as_fn_append ac_config_targets " $1"
14623 ac_need_defaults=false ;;
14624
14625 esac
14626 shift
14627 done
14628
14629 ac_configure_extra_args=
14630
14631 if $ac_cs_silent; then
14632 exec 6>/dev/null
14633 ac_configure_extra_args="$ac_configure_extra_args --silent"
14634 fi
14635
14636 _ACEOF
14637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14638 if \$ac_cs_recheck; then
14639 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14640 shift
14641 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14642 CONFIG_SHELL='$SHELL'
14643 export CONFIG_SHELL
14644 exec "\$@"
14645 fi
14646
14647 _ACEOF
14648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14649 exec 5>>config.log
14650 {
14651 echo
14652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14653 ## Running $as_me. ##
14654 _ASBOX
14655 printf "%s\n" "$ac_log"
14656 } >&5
14657
14658 _ACEOF
14659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14660 #
14661 # INIT-COMMANDS
14662 #
14663 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14664
14665
14666 # The HP-UX ksh and POSIX shell print the target directory to stdout
14667 # if CDPATH is set.
14668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14669
14670 sed_quote_subst='$sed_quote_subst'
14671 double_quote_subst='$double_quote_subst'
14672 delay_variable_subst='$delay_variable_subst'
14673 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14674 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14675 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14676 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14677 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14678 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14679 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14680 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14681 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14682 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14683 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14684 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14685 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14686 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14687 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14688 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14689 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14690 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14691 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14692 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14693 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14694 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14695 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14696 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14697 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14698 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14699 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14700 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14701 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14702 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14703 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14704 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14705 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14706 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14707 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14708 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14709 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14710 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14711 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14712 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14713 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14714 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14715 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14716 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14717 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14718 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14719 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14720 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14721 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14722 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14723 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14724 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14725 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14726 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14727 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14728 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14729 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14730 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14731 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14733 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"`'
14734 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14735 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14736 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14737 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14738 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14739 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14740 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14741 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14742 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14743 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14744 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14745 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14746 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14747 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14748 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14749 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14750 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14751 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14752 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14753 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14754 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14755 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14756 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14757 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14758 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14759 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14760 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14761 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14762 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14763 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14764 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14765 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14766 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14767 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14768 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14769 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14770 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14771 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14772 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14773 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14774 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14775 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14776 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14777 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14778 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14779 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14780 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14781 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14782 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14783 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14784 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14785 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14786 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14787 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14788 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14789 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14790 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14791 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14792 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14793 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14794 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14795 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14796 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14797 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14798 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14799 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14800 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14801 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14802 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14803 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14804 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14805 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14806 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14807 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14808 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14809 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14810
14811 LTCC='$LTCC'
14812 LTCFLAGS='$LTCFLAGS'
14813 compiler='$compiler_DEFAULT'
14814
14815 # A function that is used when there is no print builtin or printf.
14816 func_fallback_echo ()
14817 {
14818 eval 'cat <<_LTECHO_EOF
14819 \$1
14820 _LTECHO_EOF'
14821 }
14822
14823 # Quote evaled strings.
14824 for var in SHELL \
14825 ECHO \
14826 PATH_SEPARATOR \
14827 SED \
14828 GREP \
14829 EGREP \
14830 FGREP \
14831 LD \
14832 NM \
14833 LN_S \
14834 lt_SP2NL \
14835 lt_NL2SP \
14836 reload_flag \
14837 FILECMD \
14838 OBJDUMP \
14839 deplibs_check_method \
14840 file_magic_cmd \
14841 file_magic_glob \
14842 want_nocaseglob \
14843 DLLTOOL \
14844 sharedlib_from_linklib_cmd \
14845 AR \
14846 archiver_list_spec \
14847 STRIP \
14848 RANLIB \
14849 CC \
14850 CFLAGS \
14851 compiler \
14852 lt_cv_sys_global_symbol_pipe \
14853 lt_cv_sys_global_symbol_to_cdecl \
14854 lt_cv_sys_global_symbol_to_import \
14855 lt_cv_sys_global_symbol_to_c_name_address \
14856 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14857 lt_cv_nm_interface \
14858 nm_file_list_spec \
14859 lt_cv_truncate_bin \
14860 lt_prog_compiler_no_builtin_flag \
14861 lt_prog_compiler_pic \
14862 lt_prog_compiler_wl \
14863 lt_prog_compiler_static \
14864 lt_cv_prog_compiler_c_o \
14865 need_locks \
14866 MANIFEST_TOOL \
14867 DSYMUTIL \
14868 NMEDIT \
14869 LIPO \
14870 OTOOL \
14871 OTOOL64 \
14872 shrext_cmds \
14873 export_dynamic_flag_spec \
14874 whole_archive_flag_spec \
14875 compiler_needs_object \
14876 with_gnu_ld \
14877 allow_undefined_flag \
14878 no_undefined_flag \
14879 hardcode_libdir_flag_spec \
14880 hardcode_libdir_separator \
14881 exclude_expsyms \
14882 include_expsyms \
14883 file_list_spec \
14884 variables_saved_for_relink \
14885 libname_spec \
14886 library_names_spec \
14887 soname_spec \
14888 install_override_mode \
14889 finish_eval \
14890 old_striplib \
14891 striplib; do
14892 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14893 *[\\\\\\\`\\"\\\$]*)
14894 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14895 ;;
14896 *)
14897 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14898 ;;
14899 esac
14900 done
14901
14902 # Double-quote double-evaled strings.
14903 for var in reload_cmds \
14904 old_postinstall_cmds \
14905 old_postuninstall_cmds \
14906 old_archive_cmds \
14907 extract_expsyms_cmds \
14908 old_archive_from_new_cmds \
14909 old_archive_from_expsyms_cmds \
14910 archive_cmds \
14911 archive_expsym_cmds \
14912 module_cmds \
14913 module_expsym_cmds \
14914 export_symbols_cmds \
14915 prelink_cmds \
14916 postlink_cmds \
14917 postinstall_cmds \
14918 postuninstall_cmds \
14919 finish_cmds \
14920 sys_lib_search_path_spec \
14921 configure_time_dlsearch_path \
14922 configure_time_lt_sys_library_path; do
14923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14924 *[\\\\\\\`\\"\\\$]*)
14925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14926 ;;
14927 *)
14928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14929 ;;
14930 esac
14931 done
14932
14933 ac_aux_dir='$ac_aux_dir'
14934
14935 # See if we are running on zsh, and set the options that allow our
14936 # commands through without removal of \ escapes INIT.
14937 if test -n "\${ZSH_VERSION+set}"; then
14938 setopt NO_GLOB_SUBST
14939 fi
14940
14941
14942 PACKAGE='$PACKAGE'
14943 VERSION='$VERSION'
14944 RM='$RM'
14945 ofile='$ofile'
14946
14947
14948
14949
14950 _ACEOF
14951
14952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14953
14954 # Handling of arguments.
14955 for ac_config_target in $ac_config_targets
14956 do
14957 case $ac_config_target in
14958 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14959 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14960 "src/lcmaps_jobrep_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lcmaps_jobrep_config.h" ;;
14961 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14962 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14963 "src/jobrep/Makefile") CONFIG_FILES="$CONFIG_FILES src/jobrep/Makefile" ;;
14964 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
14965 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14966 "doc/lcmaps_jobrep.mod.8") CONFIG_FILES="$CONFIG_FILES doc/lcmaps_jobrep.mod.8" ;;
14967 "doc/jobrep-admin.8") CONFIG_FILES="$CONFIG_FILES doc/jobrep-admin.8" ;;
14968
14969 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14970 esac
14971 done
14972
14973
14974 # If the user did not use the arguments to specify the items to instantiate,
14975 # then the envvar interface is used. Set only those that are not.
14976 # We use the long form for the default assignment because of an extremely
14977 # bizarre bug on SunOS 4.1.3.
14978 if $ac_need_defaults; then
14979 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14980 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14981 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14982 fi
14983
14984 # Have a temporary directory for convenience. Make it in the build tree
14985 # simply because there is no reason against having it here, and in addition,
14986 # creating and moving files from /tmp can sometimes cause problems.
14987 # Hook for its removal unless debugging.
14988 # Note that there is a small window in which the directory will not be cleaned:
14989 # after its creation but before its name has been assigned to `$tmp'.
14990 $debug ||
14991 {
14992 tmp= ac_tmp=
14993 trap 'exit_status=$?
14994 : "${ac_tmp:=$tmp}"
14995 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14996 ' 0
14997 trap 'as_fn_exit 1' 1 2 13 15
14998 }
14999 # Create a (secure) tmp directory for tmp files.
15000
15001 {
15002 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15003 test -d "$tmp"
15004 } ||
15005 {
15006 tmp=./conf$$-$RANDOM
15007 (umask 077 && mkdir "$tmp")
15008 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15009 ac_tmp=$tmp
15010
15011 # Set up the scripts for CONFIG_FILES section.
15012 # No need to generate them if there are no CONFIG_FILES.
15013 # This happens for instance with `./config.status config.h'.
15014 if test -n "$CONFIG_FILES"; then
15015
15016
15017 ac_cr=`echo X | tr X '\015'`
15018 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15019 # But we know of no other shell where ac_cr would be empty at this
15020 # point, so we can use a bashism as a fallback.
15021 if test "x$ac_cr" = x; then
15022 eval ac_cr=\$\'\\r\'
15023 fi
15024 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15025 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15026 ac_cs_awk_cr='\\r'
15027 else
15028 ac_cs_awk_cr=$ac_cr
15029 fi
15030
15031 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15032 _ACEOF
15033
15034
15035 {
15036 echo "cat >conf$$subs.awk <<_ACEOF" &&
15037 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15038 echo "_ACEOF"
15039 } >conf$$subs.sh ||
15040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15041 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15042 ac_delim='%!_!# '
15043 for ac_last_try in false false false false false :; do
15044 . ./conf$$subs.sh ||
15045 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15046
15047 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15048 if test $ac_delim_n = $ac_delim_num; then
15049 break
15050 elif $ac_last_try; then
15051 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15052 else
15053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15054 fi
15055 done
15056 rm -f conf$$subs.sh
15057
15058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15059 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15060 _ACEOF
15061 sed -n '
15062 h
15063 s/^/S["/; s/!.*/"]=/
15064 p
15065 g
15066 s/^[^!]*!//
15067 :repl
15068 t repl
15069 s/'"$ac_delim"'$//
15070 t delim
15071 :nl
15072 h
15073 s/\(.\{148\}\)..*/\1/
15074 t more1
15075 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15076 p
15077 n
15078 b repl
15079 :more1
15080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15081 p
15082 g
15083 s/.\{148\}//
15084 t nl
15085 :delim
15086 h
15087 s/\(.\{148\}\)..*/\1/
15088 t more2
15089 s/["\\]/\\&/g; s/^/"/; s/$/"/
15090 p
15091 b
15092 :more2
15093 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15094 p
15095 g
15096 s/.\{148\}//
15097 t delim
15098 ' <conf$$subs.awk | sed '
15099 /^[^""]/{
15100 N
15101 s/\n//
15102 }
15103 ' >>$CONFIG_STATUS || ac_write_fail=1
15104 rm -f conf$$subs.awk
15105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15106 _ACAWK
15107 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15108 for (key in S) S_is_set[key] = 1
15109 FS = ""
15110
15111 }
15112 {
15113 line = $ 0
15114 nfields = split(line, field, "@")
15115 substed = 0
15116 len = length(field[1])
15117 for (i = 2; i < nfields; i++) {
15118 key = field[i]
15119 keylen = length(key)
15120 if (S_is_set[key]) {
15121 value = S[key]
15122 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15123 len += length(value) + length(field[++i])
15124 substed = 1
15125 } else
15126 len += 1 + keylen
15127 }
15128
15129 print line
15130 }
15131
15132 _ACAWK
15133 _ACEOF
15134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15136 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15137 else
15138 cat
15139 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15140 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15141 _ACEOF
15142
15143 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15144 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15145 # trailing colons and then remove the whole line if VPATH becomes empty
15146 # (actually we leave an empty line to preserve line numbers).
15147 if test "x$srcdir" = x.; then
15148 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15149 h
15150 s///
15151 s/^/:/
15152 s/[ ]*$/:/
15153 s/:\$(srcdir):/:/g
15154 s/:\${srcdir}:/:/g
15155 s/:@srcdir@:/:/g
15156 s/^:*//
15157 s/:*$//
15158 x
15159 s/\(=[ ]*\).*/\1/
15160 G
15161 s/\n//
15162 s/^[^=]*=[ ]*$//
15163 }'
15164 fi
15165
15166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15167 fi # test -n "$CONFIG_FILES"
15168
15169 # Set up the scripts for CONFIG_HEADERS section.
15170 # No need to generate them if there are no CONFIG_HEADERS.
15171 # This happens for instance with `./config.status Makefile'.
15172 if test -n "$CONFIG_HEADERS"; then
15173 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15174 BEGIN {
15175 _ACEOF
15176
15177 # Transform confdefs.h into an awk script `defines.awk', embedded as
15178 # here-document in config.status, that substitutes the proper values into
15179 # config.h.in to produce config.h.
15180
15181 # Create a delimiter string that does not exist in confdefs.h, to ease
15182 # handling of long lines.
15183 ac_delim='%!_!# '
15184 for ac_last_try in false false :; do
15185 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15186 if test -z "$ac_tt"; then
15187 break
15188 elif $ac_last_try; then
15189 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15190 else
15191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15192 fi
15193 done
15194
15195 # For the awk script, D is an array of macro values keyed by name,
15196 # likewise P contains macro parameters if any. Preserve backslash
15197 # newline sequences.
15198
15199 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15200 sed -n '
15201 s/.\{148\}/&'"$ac_delim"'/g
15202 t rset
15203 :rset
15204 s/^[ ]*#[ ]*define[ ][ ]*/ /
15205 t def
15206 d
15207 :def
15208 s/\\$//
15209 t bsnl
15210 s/["\\]/\\&/g
15211 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15212 D["\1"]=" \3"/p
15213 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15214 d
15215 :bsnl
15216 s/["\\]/\\&/g
15217 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15218 D["\1"]=" \3\\\\\\n"\\/p
15219 t cont
15220 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15221 t cont
15222 d
15223 :cont
15224 n
15225 s/.\{148\}/&'"$ac_delim"'/g
15226 t clear
15227 :clear
15228 s/\\$//
15229 t bsnlc
15230 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15231 d
15232 :bsnlc
15233 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15234 b cont
15235 ' <confdefs.h | sed '
15236 s/'"$ac_delim"'/"\\\
15237 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15238
15239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15240 for (key in D) D_is_set[key] = 1
15241 FS = ""
15242 }
15243 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15244 line = \$ 0
15245 split(line, arg, " ")
15246 if (arg[1] == "#") {
15247 defundef = arg[2]
15248 mac1 = arg[3]
15249 } else {
15250 defundef = substr(arg[1], 2)
15251 mac1 = arg[2]
15252 }
15253 split(mac1, mac2, "(") #)
15254 macro = mac2[1]
15255 prefix = substr(line, 1, index(line, defundef) - 1)
15256 if (D_is_set[macro]) {
15257 # Preserve the white space surrounding the "#".
15258 print prefix "define", macro P[macro] D[macro]
15259 next
15260 } else {
15261 # Replace #undef with comments. This is necessary, for example,
15262 # in the case of _POSIX_SOURCE, which is predefined and required
15263 # on some systems where configure will not decide to define it.
15264 if (defundef == "undef") {
15265 print "/*", prefix defundef, macro, "*/"
15266 next
15267 }
15268 }
15269 }
15270 { print }
15271 _ACAWK
15272 _ACEOF
15273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15274 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15275 fi # test -n "$CONFIG_HEADERS"
15276
15277
15278 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15279 shift
15280 for ac_tag
15281 do
15282 case $ac_tag in
15283 :[FHLC]) ac_mode=$ac_tag; continue;;
15284 esac
15285 case $ac_mode$ac_tag in
15286 :[FHL]*:*);;
15287 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15288 :[FH]-) ac_tag=-:-;;
15289 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15290 esac
15291 ac_save_IFS=$IFS
15292 IFS=:
15293 set x $ac_tag
15294 IFS=$ac_save_IFS
15295 shift
15296 ac_file=$1
15297 shift
15298
15299 case $ac_mode in
15300 :L) ac_source=$1;;
15301 :[FH])
15302 ac_file_inputs=
15303 for ac_f
15304 do
15305 case $ac_f in
15306 -) ac_f="$ac_tmp/stdin";;
15307 *) # Look for the file first in the build tree, then in the source tree
15308 # (if the path is not absolute). The absolute path cannot be DOS-style,
15309 # because $ac_f cannot contain `:'.
15310 test -f "$ac_f" ||
15311 case $ac_f in
15312 [\\/$]*) false;;
15313 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15314 esac ||
15315 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15316 esac
15317 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15318 as_fn_append ac_file_inputs " '$ac_f'"
15319 done
15320
15321 # Let's still pretend it is `configure' which instantiates (i.e., don't
15322 # use $as_me), people would be surprised to read:
15323 # /* config.h. Generated by config.status. */
15324 configure_input='Generated from '`
15325 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15326 `' by configure.'
15327 if test x"$ac_file" != x-; then
15328 configure_input="$ac_file. $configure_input"
15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15330 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15331 fi
15332 # Neutralize special characters interpreted by sed in replacement strings.
15333 case $configure_input in #(
15334 *\&* | *\|* | *\\* )
15335 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15336 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15337 *) ac_sed_conf_input=$configure_input;;
15338 esac
15339
15340 case $ac_tag in
15341 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15343 esac
15344 ;;
15345 esac
15346
15347 ac_dir=`$as_dirname -- "$ac_file" ||
15348 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15349 X"$ac_file" : 'X\(//\)[^/]' \| \
15350 X"$ac_file" : 'X\(//\)$' \| \
15351 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15352 printf "%s\n" X"$ac_file" |
15353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15354 s//\1/
15355 q
15356 }
15357 /^X\(\/\/\)[^/].*/{
15358 s//\1/
15359 q
15360 }
15361 /^X\(\/\/\)$/{
15362 s//\1/
15363 q
15364 }
15365 /^X\(\/\).*/{
15366 s//\1/
15367 q
15368 }
15369 s/.*/./; q'`
15370 as_dir="$ac_dir"; as_fn_mkdir_p
15371 ac_builddir=.
15372
15373 case "$ac_dir" in
15374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15375 *)
15376 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15377 # A ".." for each directory in $ac_dir_suffix.
15378 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15379 case $ac_top_builddir_sub in
15380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15382 esac ;;
15383 esac
15384 ac_abs_top_builddir=$ac_pwd
15385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15386 # for backward compatibility:
15387 ac_top_builddir=$ac_top_build_prefix
15388
15389 case $srcdir in
15390 .) # We are building in place.
15391 ac_srcdir=.
15392 ac_top_srcdir=$ac_top_builddir_sub
15393 ac_abs_top_srcdir=$ac_pwd ;;
15394 [\\/]* | ?:[\\/]* ) # Absolute name.
15395 ac_srcdir=$srcdir$ac_dir_suffix;
15396 ac_top_srcdir=$srcdir
15397 ac_abs_top_srcdir=$srcdir ;;
15398 *) # Relative name.
15399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15400 ac_top_srcdir=$ac_top_build_prefix$srcdir
15401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15402 esac
15403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15404
15405
15406 case $ac_mode in
15407 :F)
15408 #
15409 # CONFIG_FILE
15410 #
15411
15412 case $INSTALL in
15413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15414 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15415 esac
15416 ac_MKDIR_P=$MKDIR_P
15417 case $MKDIR_P in
15418 [\\/$]* | ?:[\\/]* ) ;;
15419 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15420 esac
15421 _ACEOF
15422
15423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15424 # If the template does not know about datarootdir, expand it.
15425 # FIXME: This hack should be removed a few years after 2.60.
15426 ac_datarootdir_hack=; ac_datarootdir_seen=
15427 ac_sed_dataroot='
15428 /datarootdir/ {
15429 p
15430 q
15431 }
15432 /@datadir@/p
15433 /@docdir@/p
15434 /@infodir@/p
15435 /@localedir@/p
15436 /@mandir@/p'
15437 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15438 *datarootdir*) ac_datarootdir_seen=yes;;
15439 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15441 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15442 _ACEOF
15443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15444 ac_datarootdir_hack='
15445 s&@datadir@&$datadir&g
15446 s&@docdir@&$docdir&g
15447 s&@infodir@&$infodir&g
15448 s&@localedir@&$localedir&g
15449 s&@mandir@&$mandir&g
15450 s&\\\${datarootdir}&$datarootdir&g' ;;
15451 esac
15452 _ACEOF
15453
15454 # Neutralize VPATH when `$srcdir' = `.'.
15455 # Shell code in configure.ac might set extrasub.
15456 # FIXME: do we really want to maintain this feature?
15457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15458 ac_sed_extra="$ac_vpsub
15459 $extrasub
15460 _ACEOF
15461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15462 :t
15463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15464 s|@configure_input@|$ac_sed_conf_input|;t t
15465 s&@top_builddir@&$ac_top_builddir_sub&;t t
15466 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15467 s&@srcdir@&$ac_srcdir&;t t
15468 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15469 s&@top_srcdir@&$ac_top_srcdir&;t t
15470 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15471 s&@builddir@&$ac_builddir&;t t
15472 s&@abs_builddir@&$ac_abs_builddir&;t t
15473 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15474 s&@INSTALL@&$ac_INSTALL&;t t
15475 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15476 $ac_datarootdir_hack
15477 "
15478 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15479 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15480
15481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15482 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15484 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15486 which seems to be undefined. Please make sure it is defined" >&5
15487 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15488 which seems to be undefined. Please make sure it is defined" >&2;}
15489
15490 rm -f "$ac_tmp/stdin"
15491 case $ac_file in
15492 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15493 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15494 esac \
15495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15496 ;;
15497 :H)
15498 #
15499 # CONFIG_HEADER
15500 #
15501 if test x"$ac_file" != x-; then
15502 {
15503 printf "%s\n" "/* $configure_input */" >&1 \
15504 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15505 } >"$ac_tmp/config.h" \
15506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15507 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15509 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15510 else
15511 rm -f "$ac_file"
15512 mv "$ac_tmp/config.h" "$ac_file" \
15513 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15514 fi
15515 else
15516 printf "%s\n" "/* $configure_input */" >&1 \
15517 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15518 || as_fn_error $? "could not create -" "$LINENO" 5
15519 fi
15520 # Compute "$ac_file"'s index in $config_headers.
15521 _am_arg="$ac_file"
15522 _am_stamp_count=1
15523 for _am_header in $config_headers :; do
15524 case $_am_header in
15525 $_am_arg | $_am_arg:* )
15526 break ;;
15527 * )
15528 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15529 esac
15530 done
15531 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15532 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15533 X"$_am_arg" : 'X\(//\)[^/]' \| \
15534 X"$_am_arg" : 'X\(//\)$' \| \
15535 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15536 printf "%s\n" X"$_am_arg" |
15537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15538 s//\1/
15539 q
15540 }
15541 /^X\(\/\/\)[^/].*/{
15542 s//\1/
15543 q
15544 }
15545 /^X\(\/\/\)$/{
15546 s//\1/
15547 q
15548 }
15549 /^X\(\/\).*/{
15550 s//\1/
15551 q
15552 }
15553 s/.*/./; q'`/stamp-h$_am_stamp_count
15554 ;;
15555
15556 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15557 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15558 ;;
15559 esac
15560
15561
15562 case $ac_file$ac_mode in
15563 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15564 # Older Autoconf quotes --file arguments for eval, but not when files
15565 # are listed without --file. Let's play safe and only enable the eval
15566 # if we detect the quoting.
15567 # TODO: see whether this extra hack can be removed once we start
15568 # requiring Autoconf 2.70 or later.
15569 case $CONFIG_FILES in #(
15570 *\'*) :
15571 eval set x "$CONFIG_FILES" ;; #(
15572 *) :
15573 set x $CONFIG_FILES ;; #(
15574 *) :
15575 ;;
15576 esac
15577 shift
15578 # Used to flag and report bootstrapping failures.
15579 am_rc=0
15580 for am_mf
15581 do
15582 # Strip MF so we end up with the name of the file.
15583 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15584 # Check whether this is an Automake generated Makefile which includes
15585 # dependency-tracking related rules and includes.
15586 # Grep'ing the whole file directly is not great: AIX grep has a line
15587 # limit of 2048, but all sed's we know have understand at least 4000.
15588 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15589 || continue
15590 am_dirpart=`$as_dirname -- "$am_mf" ||
15591 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15592 X"$am_mf" : 'X\(//\)[^/]' \| \
15593 X"$am_mf" : 'X\(//\)$' \| \
15594 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15595 printf "%s\n" X"$am_mf" |
15596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15597 s//\1/
15598 q
15599 }
15600 /^X\(\/\/\)[^/].*/{
15601 s//\1/
15602 q
15603 }
15604 /^X\(\/\/\)$/{
15605 s//\1/
15606 q
15607 }
15608 /^X\(\/\).*/{
15609 s//\1/
15610 q
15611 }
15612 s/.*/./; q'`
15613 am_filepart=`$as_basename -- "$am_mf" ||
15614 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15615 X"$am_mf" : 'X\(//\)$' \| \
15616 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15617 printf "%s\n" X/"$am_mf" |
15618 sed '/^.*\/\([^/][^/]*\)\/*$/{
15619 s//\1/
15620 q
15621 }
15622 /^X\/\(\/\/\)$/{
15623 s//\1/
15624 q
15625 }
15626 /^X\/\(\/\).*/{
15627 s//\1/
15628 q
15629 }
15630 s/.*/./; q'`
15631 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15632 && sed -e '/# am--include-marker/d' "$am_filepart" \
15633 | $MAKE -f - am--depfiles" >&5
15634 (cd "$am_dirpart" \
15635 && sed -e '/# am--include-marker/d' "$am_filepart" \
15636 | $MAKE -f - am--depfiles) >&5 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } || am_rc=$?
15640 done
15641 if test $am_rc -ne 0; then
15642 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15643 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15644 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15645 for automatic dependency tracking. If GNU make was not used, consider
15646 re-running the configure script with MAKE=\"gmake\" (or whatever is
15647 necessary). You can also try re-running configure with the
15648 '--disable-dependency-tracking' option to at least be able to build
15649 the package (albeit without support for automatic dependency tracking).
15650 See \`config.log' for more details" "$LINENO" 5; }
15651 fi
15652 { am_dirpart=; unset am_dirpart;}
15653 { am_filepart=; unset am_filepart;}
15654 { am_mf=; unset am_mf;}
15655 { am_rc=; unset am_rc;}
15656 rm -f conftest-deps.mk
15657 }
15658 ;;
15659 "libtool":C)
15660
15661 # See if we are running on zsh, and set the options that allow our
15662 # commands through without removal of \ escapes.
15663 if test -n "${ZSH_VERSION+set}"; then
15664 setopt NO_GLOB_SUBST
15665 fi
15666
15667 cfgfile=${ofile}T
15668 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15669 $RM "$cfgfile"
15670
15671 cat <<_LT_EOF >> "$cfgfile"
15672 #! $SHELL
15673 # Generated automatically by $as_me ($PACKAGE) $VERSION
15674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15675 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15676
15677 # Provide generalized library-building support services.
15678 # Written by Gordon Matzigkeit, 1996
15679
15680 # Copyright (C) 2014 Free Software Foundation, Inc.
15681 # This is free software; see the source for copying conditions. There is NO
15682 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15683
15684 # GNU Libtool is free software; you can redistribute it and/or modify
15685 # it under the terms of the GNU General Public License as published by
15686 # the Free Software Foundation; either version 2 of of the License, or
15687 # (at your option) any later version.
15688 #
15689 # As a special exception to the GNU General Public License, if you
15690 # distribute this file as part of a program or library that is built
15691 # using GNU Libtool, you may include this file under the same
15692 # distribution terms that you use for the rest of that program.
15693 #
15694 # GNU Libtool is distributed in the hope that it will be useful, but
15695 # WITHOUT ANY WARRANTY; without even the implied warranty of
15696 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15697 # GNU General Public License for more details.
15698 #
15699 # You should have received a copy of the GNU General Public License
15700 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15701
15702
15703 # The names of the tagged configurations supported by this script.
15704 available_tags=''
15705
15706 # Configured defaults for sys_lib_dlsearch_path munging.
15707 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15708
15709 # ### BEGIN LIBTOOL CONFIG
15710
15711 # Which release of libtool.m4 was used?
15712 macro_version=$macro_version
15713 macro_revision=$macro_revision
15714
15715 # Whether or not to build shared libraries.
15716 build_libtool_libs=$enable_shared
15717
15718 # Whether or not to build static libraries.
15719 build_old_libs=$enable_static
15720
15721 # What type of objects to build.
15722 pic_mode=$pic_mode
15723
15724 # Whether or not to optimize for fast installation.
15725 fast_install=$enable_fast_install
15726
15727 # Shared archive member basename,for filename based shared library versioning on AIX.
15728 shared_archive_member_spec=$shared_archive_member_spec
15729
15730 # Shell to use when invoking shell scripts.
15731 SHELL=$lt_SHELL
15732
15733 # An echo program that protects backslashes.
15734 ECHO=$lt_ECHO
15735
15736 # The PATH separator for the build system.
15737 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15738
15739 # The host system.
15740 host_alias=$host_alias
15741 host=$host
15742 host_os=$host_os
15743
15744 # The build system.
15745 build_alias=$build_alias
15746 build=$build
15747 build_os=$build_os
15748
15749 # A sed program that does not truncate output.
15750 SED=$lt_SED
15751
15752 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15753 Xsed="\$SED -e 1s/^X//"
15754
15755 # A grep program that handles long lines.
15756 GREP=$lt_GREP
15757
15758 # An ERE matcher.
15759 EGREP=$lt_EGREP
15760
15761 # A literal string matcher.
15762 FGREP=$lt_FGREP
15763
15764 # A BSD- or MS-compatible name lister.
15765 NM=$lt_NM
15766
15767 # Whether we need soft or hard links.
15768 LN_S=$lt_LN_S
15769
15770 # What is the maximum length of a command?
15771 max_cmd_len=$max_cmd_len
15772
15773 # Object file suffix (normally "o").
15774 objext=$ac_objext
15775
15776 # Executable file suffix (normally "").
15777 exeext=$exeext
15778
15779 # whether the shell understands "unset".
15780 lt_unset=$lt_unset
15781
15782 # turn spaces into newlines.
15783 SP2NL=$lt_lt_SP2NL
15784
15785 # turn newlines into spaces.
15786 NL2SP=$lt_lt_NL2SP
15787
15788 # convert \$build file names to \$host format.
15789 to_host_file_cmd=$lt_cv_to_host_file_cmd
15790
15791 # convert \$build files to toolchain format.
15792 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15793
15794 # A file(cmd) program that detects file types.
15795 FILECMD=$lt_FILECMD
15796
15797 # An object symbol dumper.
15798 OBJDUMP=$lt_OBJDUMP
15799
15800 # Method to check whether dependent libraries are shared objects.
15801 deplibs_check_method=$lt_deplibs_check_method
15802
15803 # Command to use when deplibs_check_method = "file_magic".
15804 file_magic_cmd=$lt_file_magic_cmd
15805
15806 # How to find potential files when deplibs_check_method = "file_magic".
15807 file_magic_glob=$lt_file_magic_glob
15808
15809 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15810 want_nocaseglob=$lt_want_nocaseglob
15811
15812 # DLL creation program.
15813 DLLTOOL=$lt_DLLTOOL
15814
15815 # Command to associate shared and link libraries.
15816 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15817
15818 # The archiver.
15819 AR=$lt_AR
15820
15821 # Flags to create an archive (by configure).
15822 lt_ar_flags=$lt_ar_flags
15823
15824 # Flags to create an archive.
15825 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15826
15827 # How to feed a file listing to the archiver.
15828 archiver_list_spec=$lt_archiver_list_spec
15829
15830 # A symbol stripping program.
15831 STRIP=$lt_STRIP
15832
15833 # Commands used to install an old-style archive.
15834 RANLIB=$lt_RANLIB
15835 old_postinstall_cmds=$lt_old_postinstall_cmds
15836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15837
15838 # Whether to use a lock for old archive extraction.
15839 lock_old_archive_extraction=$lock_old_archive_extraction
15840
15841 # A C compiler.
15842 LTCC=$lt_CC
15843
15844 # LTCC compiler flags.
15845 LTCFLAGS=$lt_CFLAGS
15846
15847 # Take the output of nm and produce a listing of raw symbols and C names.
15848 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15849
15850 # Transform the output of nm in a proper C declaration.
15851 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15852
15853 # Transform the output of nm into a list of symbols to manually relocate.
15854 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15855
15856 # Transform the output of nm in a C name address pair.
15857 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15858
15859 # Transform the output of nm in a C name address pair when lib prefix is needed.
15860 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15861
15862 # The name lister interface.
15863 nm_interface=$lt_lt_cv_nm_interface
15864
15865 # Specify filename containing input files for \$NM.
15866 nm_file_list_spec=$lt_nm_file_list_spec
15867
15868 # The root where to search for dependent libraries,and where our libraries should be installed.
15869 lt_sysroot=$lt_sysroot
15870
15871 # Command to truncate a binary pipe.
15872 lt_truncate_bin=$lt_lt_cv_truncate_bin
15873
15874 # The name of the directory that contains temporary libtool files.
15875 objdir=$objdir
15876
15877 # Used to examine libraries when file_magic_cmd begins with "file".
15878 MAGIC_CMD=$MAGIC_CMD
15879
15880 # Must we lock files when doing compilation?
15881 need_locks=$lt_need_locks
15882
15883 # Manifest tool.
15884 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15885
15886 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15887 DSYMUTIL=$lt_DSYMUTIL
15888
15889 # Tool to change global to local symbols on Mac OS X.
15890 NMEDIT=$lt_NMEDIT
15891
15892 # Tool to manipulate fat objects and archives on Mac OS X.
15893 LIPO=$lt_LIPO
15894
15895 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15896 OTOOL=$lt_OTOOL
15897
15898 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15899 OTOOL64=$lt_OTOOL64
15900
15901 # Old archive suffix (normally "a").
15902 libext=$libext
15903
15904 # Shared library suffix (normally ".so").
15905 shrext_cmds=$lt_shrext_cmds
15906
15907 # The commands to extract the exported symbol list from a shared archive.
15908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15909
15910 # Variables whose values should be saved in libtool wrapper scripts and
15911 # restored at link time.
15912 variables_saved_for_relink=$lt_variables_saved_for_relink
15913
15914 # Do we need the "lib" prefix for modules?
15915 need_lib_prefix=$need_lib_prefix
15916
15917 # Do we need a version for libraries?
15918 need_version=$need_version
15919
15920 # Library versioning type.
15921 version_type=$version_type
15922
15923 # Shared library runtime path variable.
15924 runpath_var=$runpath_var
15925
15926 # Shared library path variable.
15927 shlibpath_var=$shlibpath_var
15928
15929 # Is shlibpath searched before the hard-coded library search path?
15930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15931
15932 # Format of library name prefix.
15933 libname_spec=$lt_libname_spec
15934
15935 # List of archive names. First name is the real one, the rest are links.
15936 # The last name is the one that the linker finds with -lNAME
15937 library_names_spec=$lt_library_names_spec
15938
15939 # The coded name of the library, if different from the real name.
15940 soname_spec=$lt_soname_spec
15941
15942 # Permission mode override for installation of shared libraries.
15943 install_override_mode=$lt_install_override_mode
15944
15945 # Command to use after installation of a shared archive.
15946 postinstall_cmds=$lt_postinstall_cmds
15947
15948 # Command to use after uninstallation of a shared archive.
15949 postuninstall_cmds=$lt_postuninstall_cmds
15950
15951 # Commands used to finish a libtool library installation in a directory.
15952 finish_cmds=$lt_finish_cmds
15953
15954 # As "finish_cmds", except a single script fragment to be evaled but
15955 # not shown.
15956 finish_eval=$lt_finish_eval
15957
15958 # Whether we should hardcode library paths into libraries.
15959 hardcode_into_libs=$hardcode_into_libs
15960
15961 # Compile-time system search path for libraries.
15962 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15963
15964 # Detected run-time system search path for libraries.
15965 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15966
15967 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15968 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15969
15970 # Whether dlopen is supported.
15971 dlopen_support=$enable_dlopen
15972
15973 # Whether dlopen of programs is supported.
15974 dlopen_self=$enable_dlopen_self
15975
15976 # Whether dlopen of statically linked programs is supported.
15977 dlopen_self_static=$enable_dlopen_self_static
15978
15979 # Commands to strip libraries.
15980 old_striplib=$lt_old_striplib
15981 striplib=$lt_striplib
15982
15983
15984 # The linker used to build libraries.
15985 LD=$lt_LD
15986
15987 # How to create reloadable object files.
15988 reload_flag=$lt_reload_flag
15989 reload_cmds=$lt_reload_cmds
15990
15991 # Commands used to build an old-style archive.
15992 old_archive_cmds=$lt_old_archive_cmds
15993
15994 # A language specific compiler.
15995 CC=$lt_compiler
15996
15997 # Is the compiler the GNU compiler?
15998 with_gcc=$GCC
15999
16000 # Compiler flag to turn off builtin functions.
16001 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16002
16003 # Additional compiler flags for building library objects.
16004 pic_flag=$lt_lt_prog_compiler_pic
16005
16006 # How to pass a linker flag through the compiler.
16007 wl=$lt_lt_prog_compiler_wl
16008
16009 # Compiler flag to prevent dynamic linking.
16010 link_static_flag=$lt_lt_prog_compiler_static
16011
16012 # Does compiler simultaneously support -c and -o options?
16013 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16014
16015 # Whether or not to add -lc for building shared libraries.
16016 build_libtool_need_lc=$archive_cmds_need_lc
16017
16018 # Whether or not to disallow shared libs when runtime libs are static.
16019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16020
16021 # Compiler flag to allow reflexive dlopens.
16022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16023
16024 # Compiler flag to generate shared objects directly from archives.
16025 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16026
16027 # Whether the compiler copes with passing no objects directly.
16028 compiler_needs_object=$lt_compiler_needs_object
16029
16030 # Create an old-style archive from a shared archive.
16031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16032
16033 # Create a temporary old-style archive to link instead of a shared archive.
16034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16035
16036 # Commands used to build a shared archive.
16037 archive_cmds=$lt_archive_cmds
16038 archive_expsym_cmds=$lt_archive_expsym_cmds
16039
16040 # Commands used to build a loadable module if different from building
16041 # a shared archive.
16042 module_cmds=$lt_module_cmds
16043 module_expsym_cmds=$lt_module_expsym_cmds
16044
16045 # Whether we are building with GNU ld or not.
16046 with_gnu_ld=$lt_with_gnu_ld
16047
16048 # Flag that allows shared libraries with undefined symbols to be built.
16049 allow_undefined_flag=$lt_allow_undefined_flag
16050
16051 # Flag that enforces no undefined symbols.
16052 no_undefined_flag=$lt_no_undefined_flag
16053
16054 # Flag to hardcode \$libdir into a binary during linking.
16055 # This must work even if \$libdir does not exist
16056 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16057
16058 # Whether we need a single "-rpath" flag with a separated argument.
16059 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16060
16061 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16062 # DIR into the resulting binary.
16063 hardcode_direct=$hardcode_direct
16064
16065 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16066 # DIR into the resulting binary and the resulting library dependency is
16067 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16068 # library is relocated.
16069 hardcode_direct_absolute=$hardcode_direct_absolute
16070
16071 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16072 # into the resulting binary.
16073 hardcode_minus_L=$hardcode_minus_L
16074
16075 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16076 # into the resulting binary.
16077 hardcode_shlibpath_var=$hardcode_shlibpath_var
16078
16079 # Set to "yes" if building a shared library automatically hardcodes DIR
16080 # into the library and all subsequent libraries and executables linked
16081 # against it.
16082 hardcode_automatic=$hardcode_automatic
16083
16084 # Set to yes if linker adds runtime paths of dependent libraries
16085 # to runtime path list.
16086 inherit_rpath=$inherit_rpath
16087
16088 # Whether libtool must link a program against all its dependency libraries.
16089 link_all_deplibs=$link_all_deplibs
16090
16091 # Set to "yes" if exported symbols are required.
16092 always_export_symbols=$always_export_symbols
16093
16094 # The commands to list exported symbols.
16095 export_symbols_cmds=$lt_export_symbols_cmds
16096
16097 # Symbols that should not be listed in the preloaded symbols.
16098 exclude_expsyms=$lt_exclude_expsyms
16099
16100 # Symbols that must always be exported.
16101 include_expsyms=$lt_include_expsyms
16102
16103 # Commands necessary for linking programs (against libraries) with templates.
16104 prelink_cmds=$lt_prelink_cmds
16105
16106 # Commands necessary for finishing linking programs.
16107 postlink_cmds=$lt_postlink_cmds
16108
16109 # Specify filename containing input files.
16110 file_list_spec=$lt_file_list_spec
16111
16112 # How to hardcode a shared library path into an executable.
16113 hardcode_action=$hardcode_action
16114
16115 # ### END LIBTOOL CONFIG
16116
16117 _LT_EOF
16118
16119 cat <<'_LT_EOF' >> "$cfgfile"
16120
16121 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16122
16123 # func_munge_path_list VARIABLE PATH
16124 # -----------------------------------
16125 # VARIABLE is name of variable containing _space_ separated list of
16126 # directories to be munged by the contents of PATH, which is string
16127 # having a format:
16128 # "DIR[:DIR]:"
16129 # string "DIR[ DIR]" will be prepended to VARIABLE
16130 # ":DIR[:DIR]"
16131 # string "DIR[ DIR]" will be appended to VARIABLE
16132 # "DIRP[:DIRP]::[DIRA:]DIRA"
16133 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16134 # "DIRA[ DIRA]" will be appended to VARIABLE
16135 # "DIR[:DIR]"
16136 # VARIABLE will be replaced by "DIR[ DIR]"
16137 func_munge_path_list ()
16138 {
16139 case x$2 in
16140 x)
16141 ;;
16142 *:)
16143 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16144 ;;
16145 x:*)
16146 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16147 ;;
16148 *::*)
16149 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16150 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16151 ;;
16152 *)
16153 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16154 ;;
16155 esac
16156 }
16157
16158
16159 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16160 func_cc_basename ()
16161 {
16162 for cc_temp in $*""; do
16163 case $cc_temp in
16164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16166 \-*) ;;
16167 *) break;;
16168 esac
16169 done
16170 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16171 }
16172
16173
16174 # ### END FUNCTIONS SHARED WITH CONFIGURE
16175
16176 _LT_EOF
16177
16178 case $host_os in
16179 aix3*)
16180 cat <<\_LT_EOF >> "$cfgfile"
16181 # AIX sometimes has problems with the GCC collect2 program. For some
16182 # reason, if we set the COLLECT_NAMES environment variable, the problems
16183 # vanish in a puff of smoke.
16184 if test set != "${COLLECT_NAMES+set}"; then
16185 COLLECT_NAMES=
16186 export COLLECT_NAMES
16187 fi
16188 _LT_EOF
16189 ;;
16190 esac
16191
16192
16193
16194 ltmain=$ac_aux_dir/ltmain.sh
16195
16196
16197 # We use sed instead of cat because bash on DJGPP gets confused if
16198 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16199 # text mode, it properly converts lines to CR/LF. This bash problem
16200 # is reportedly fixed, but why not run on old versions too?
16201 $SED '$q' "$ltmain" >> "$cfgfile" \
16202 || (rm -f "$cfgfile"; exit 1)
16203
16204 mv -f "$cfgfile" "$ofile" ||
16205 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16206 chmod +x "$ofile"
16207
16208 ;;
16209
16210 esac
16211 done # for ac_tag
16212
16213
16214 as_fn_exit 0
16215 _ACEOF
16216 ac_clean_files=$ac_clean_files_save
16217
16218 test $ac_write_fail = 0 ||
16219 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16220
16221
16222 # configure is writing to config.log, and then calls config.status.
16223 # config.status does its own redirection, appending to config.log.
16224 # Unfortunately, on DOS this fails, as config.log is still kept open
16225 # by configure, so config.status won't be able to write to it; its
16226 # output is simply discarded. So we exec the FD to /dev/null,
16227 # effectively closing config.log, so it can be properly (re)opened and
16228 # appended to by config.status. When coming back to configure, we
16229 # need to make the FD available again.
16230 if test "$no_create" != yes; then
16231 ac_cs_success=:
16232 ac_config_status_args=
16233 test "$silent" = yes &&
16234 ac_config_status_args="$ac_config_status_args --quiet"
16235 exec 5>/dev/null
16236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16237 exec 5>>config.log
16238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16239 # would make configure fail if this is the last instruction.
16240 $ac_cs_success || as_fn_exit 1
16241 fi
16242 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16244 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16245 fi
16246
16247