blob: d440a9225a94f3be50487199b64b105f064cdc75 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkine0d321a2014-09-11 01:28:57 -07003# Generated by GNU Autoconf 2.69 for asn1c 0.9.26.
Lev Walkine7c4b962010-11-09 03:10:36 -08004#
5# Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00006#
Lev Walkinaef10c32014-01-14 01:47:25 -08007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Lev Walkinf15320b2004-06-03 03:38:44 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Lev Walkinaef10c32014-01-14 01:47:25 -080013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +000016
Lev Walkin4c776e52010-11-08 02:07:31 -080017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinaef10c32014-01-14 01:47:25 -080019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000020 emulate sh
21 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000025 setopt NO_GLOB_SUBST
26else
Lev Walkinaef10c32014-01-14 01:47:25 -080027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -080032esac
Lev Walkinf15320b2004-06-03 03:38:44 +000033fi
Lev Walkin4c776e52010-11-08 02:07:31 -080034
35
Lev Walkinb3751942012-09-02 19:36:47 -070036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Lev Walkinaef10c32014-01-14 01:47:25 -080043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Lev Walkinb3751942012-09-02 19:36:47 -070050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
Lev Walkinaef10c32014-01-14 01:47:25 -080060 case $arg in #(
Lev Walkinb3751942012-09-02 19:36:47 -070061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
Lev Walkinf15320b2004-06-03 03:38:44 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Lev Walkinf15320b2004-06-03 03:38:44 +000081fi
82
Lev Walkin27fd0b62007-08-27 23:57:45 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Lev Walkinaef10c32014-01-14 01:47:25 -080092as_myself=
93case $0 in #((
Lev Walkin27fd0b62007-08-27 23:57:45 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000096for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -0800100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Lev Walkin27fd0b62007-08-27 23:57:45 +0000102IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +0000103
Lev Walkin27fd0b62007-08-27 23:57:45 +0000104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -0700112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -0800113 exit 1
Lev Walkin27fd0b62007-08-27 23:57:45 +0000114fi
115
Lev Walkinaef10c32014-01-14 01:47:25 -0800116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Lev Walkin27fd0b62007-08-27 23:57:45 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -0700129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +0000133
Lev Walkinaef10c32014-01-14 01:47:25 -0800134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and vlm@lionet.info
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
Lev Walkin27fd0b62007-08-27 23:57:45 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
Lev Walkinaef10c32014-01-14 01:47:25 -0800443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000448
Lev Walkin27fd0b62007-08-27 23:57:45 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -0700453$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +0000454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
Lev Walkinaef10c32014-01-14 01:47:25 -0800468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
Lev Walkin27fd0b62007-08-27 23:57:45 +0000474
475
Lev Walkinaef10c32014-01-14 01:47:25 -0800476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Lev Walkin27fd0b62007-08-27 23:57:45 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +0000485 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +0000490 N
Lev Walkin27fd0b62007-08-27 23:57:45 +0000491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +0000493 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +0000494 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +0000495 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000496 chmod +x "$as_me.lineno" ||
Lev Walkinaef10c32014-01-14 01:47:25 -0800497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Lev Walkinf15320b2004-06-03 03:38:44 +0000498
Lev Walkinaef10c32014-01-14 01:47:25 -0800499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Lev Walkinf15320b2004-06-03 03:38:44 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +0000507 # Exit status is that of the last command.
508 exit
509}
510
Lev Walkin27fd0b62007-08-27 23:57:45 +0000511ECHO_C= ECHO_N= ECHO_T=
Lev Walkinaef10c32014-01-14 01:47:25 -0800512case `echo -n x` in #(((((
Lev Walkin27fd0b62007-08-27 23:57:45 +0000513-n*)
Lev Walkinaef10c32014-01-14 01:47:25 -0800514 case `echo 'xy\c'` in
Lev Walkin27fd0b62007-08-27 23:57:45 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Lev Walkinaef10c32014-01-14 01:47:25 -0800516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000519 esac;;
520*)
521 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +0000522esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +0000525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -0700529 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +0000530fi
Lev Walkinb3751942012-09-02 19:36:47 -0700531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Lev Walkinaef10c32014-01-14 01:47:25 -0800537 # In both cases, we have to default to `cp -pR'.
Lev Walkinb3751942012-09-02 19:36:47 -0700538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinaef10c32014-01-14 01:47:25 -0800539 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -0700540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
Lev Walkinaef10c32014-01-14 01:47:25 -0800543 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -0700544 fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000545else
Lev Walkinaef10c32014-01-14 01:47:25 -0800546 as_ln_s='cp -pR'
Lev Walkinf15320b2004-06-03 03:38:44 +0000547fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +0000550
551if mkdir -p . 2>/dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -0800552 as_mkdir_p='mkdir -p "$as_dir"'
Lev Walkinf15320b2004-06-03 03:38:44 +0000553else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000554 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000555 as_mkdir_p=false
556fi
557
Lev Walkinaef10c32014-01-14 01:47:25 -0800558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Lev Walkinf15320b2004-06-03 03:38:44 +0000560
561# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000563
564# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000566
Lev Walkin8e8b5482004-06-17 23:42:48 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
Lev Walkin4c776e52010-11-08 02:07:31 -0800569
Lev Walkinaef10c32014-01-14 01:47:25 -0800570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
Lev Walkin27fd0b62007-08-27 23:57:45 +0000572
Lev Walkinf15320b2004-06-03 03:38:44 +0000573# Name of the host.
Lev Walkinaef10c32014-01-14 01:47:25 -0800574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Lev Walkinf15320b2004-06-03 03:38:44 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
Lev Walkinf15320b2004-06-03 03:38:44 +0000578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
Lev Walkin27fd0b62007-08-27 23:57:45 +0000582ac_clean_files=
Lev Walkinf15320b2004-06-03 03:38:44 +0000583ac_config_libobj_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000584LIBOBJS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000589
Lev Walkinf15320b2004-06-03 03:38:44 +0000590# Identity of this package.
Lev Walkine7c4b962010-11-09 03:10:36 -0800591PACKAGE_NAME='asn1c'
592PACKAGE_TARNAME='asn1c'
Lev Walkine0d321a2014-09-11 01:28:57 -0700593PACKAGE_VERSION='0.9.26'
594PACKAGE_STRING='asn1c 0.9.26'
Lev Walkine7c4b962010-11-09 03:10:36 -0800595PACKAGE_BUGREPORT='vlm@lionet.info'
Lev Walkinaef10c32014-01-14 01:47:25 -0800596PACKAGE_URL=''
Lev Walkinf15320b2004-06-03 03:38:44 +0000597
Lev Walkinf15320b2004-06-03 03:38:44 +0000598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
Lev Walkin4c776e52010-11-08 02:07:31 -0800601#ifdef HAVE_SYS_TYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000602# include <sys/types.h>
603#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800604#ifdef HAVE_SYS_STAT_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000605# include <sys/stat.h>
606#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800607#ifdef STDC_HEADERS
Lev Walkinf15320b2004-06-03 03:38:44 +0000608# include <stdlib.h>
609# include <stddef.h>
610#else
Lev Walkin4c776e52010-11-08 02:07:31 -0800611# ifdef HAVE_STDLIB_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000612# include <stdlib.h>
613# endif
614#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000617# include <memory.h>
618# endif
619# include <string.h>
620#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800621#ifdef HAVE_STRINGS_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000622# include <strings.h>
623#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800624#ifdef HAVE_INTTYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000625# include <inttypes.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +0000626#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800627#ifdef HAVE_STDINT_H
Lev Walkin27fd0b62007-08-27 23:57:45 +0000628# include <stdint.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000629#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800630#ifdef HAVE_UNISTD_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000631# include <unistd.h>
632#endif"
633
Lev Walkinb3751942012-09-02 19:36:47 -0700634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000637LIBOBJS
Lev Walkinb40ec412014-02-24 00:57:18 -0800638TEST_64BIT_FALSE
639TEST_64BIT_TRUE
Lev Walkinf84cc012014-01-14 02:12:24 -0800640TESTSUITE_CFLAGS
Lev Walkinea552152014-01-14 02:15:13 -0800641ADD_CFLAGS
Lev Walkinb3751942012-09-02 19:36:47 -0700642LEXLIB
643LEX_OUTPUT_ROOT
644LEX
645YFLAGS
646YACC
647CPP
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
Lev Walkinaef10c32014-01-14 01:47:25 -0800653MANIFEST_TOOL
Lev Walkinb3751942012-09-02 19:36:47 -0700654RANLIB
Lev Walkinaef10c32014-01-14 01:47:25 -0800655ac_ct_AR
Lev Walkinb3751942012-09-02 19:36:47 -0700656AR
Lev Walkinaef10c32014-01-14 01:47:25 -0800657DLLTOOL
658OBJDUMP
Lev Walkinb3751942012-09-02 19:36:47 -0700659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665EGREP
666GREP
667SED
668am__fastdepCC_FALSE
669am__fastdepCC_TRUE
670CCDEPMODE
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__quote
675am__include
676DEPDIR
677OBJEXT
678EXEEXT
679ac_ct_CC
680CPPFLAGS
681LDFLAGS
682CFLAGS
683CC
684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
692LIBTOOL
Lev Walkine0d321a2014-09-11 01:28:57 -0700693MAINT
694MAINTAINER_MODE_FALSE
695MAINTAINER_MODE_TRUE
Lev Walkinb3751942012-09-02 19:36:47 -0700696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
Lev Walkinaef10c32014-01-14 01:47:25 -0800749PACKAGE_URL
Lev Walkinb3751942012-09-02 19:36:47 -0700750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
Lev Walkinf15320b2004-06-03 03:38:44 +0000757ac_subst_files=''
Lev Walkinb3751942012-09-02 19:36:47 -0700758ac_user_opts='
759enable_option_checking
Lev Walkine0d321a2014-09-11 01:28:57 -0700760enable_maintainer_mode
Lev Walkinb3751942012-09-02 19:36:47 -0700761enable_shared
762enable_static
763with_pic
764enable_fast_install
765enable_dependency_tracking
766with_gnu_ld
Lev Walkinaef10c32014-01-14 01:47:25 -0800767with_sysroot
Lev Walkinb3751942012-09-02 19:36:47 -0700768enable_libtool_lock
769enable_Werror
770'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000771 ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
Lev Walkin4c776e52010-11-08 02:07:31 -0800777LIBS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000778CPPFLAGS
779CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000780YACC
781YFLAGS'
782
Lev Walkinf15320b2004-06-03 03:38:44 +0000783
784# Initialize some variables set by options.
785ac_init_help=
786ac_init_version=false
Lev Walkinb3751942012-09-02 19:36:47 -0700787ac_unrecognized_opts=
788ac_unrecognized_sep=
Lev Walkinf15320b2004-06-03 03:38:44 +0000789# The variables have the same names as the options, with
790# dashes changed to underlines.
791cache_file=/dev/null
792exec_prefix=NONE
793no_create=
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
802verbose=
803x_includes=NONE
804x_libraries=NONE
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000811# (The list follows the same order as the GNU Coding Standards.)
Lev Walkinf15320b2004-06-03 03:38:44 +0000812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
Lev Walkinf15320b2004-06-03 03:38:44 +0000817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
Lev Walkinf15320b2004-06-03 03:38:44 +0000820includedir='${prefix}/include'
821oldincludedir='/usr/include'
Lev Walkine7c4b962010-11-09 03:10:36 -0800822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
Lev Walkinf15320b2004-06-03 03:38:44 +0000831
832ac_prev=
Lev Walkin27fd0b62007-08-27 23:57:45 +0000833ac_dashdash=
Lev Walkinf15320b2004-06-03 03:38:44 +0000834for ac_option
835do
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000838 eval $ac_prev=\$ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +0000839 ac_prev=
840 continue
841 fi
842
Lev Walkin27fd0b62007-08-27 23:57:45 +0000843 case $ac_option in
Lev Walkinaef10c32014-01-14 01:47:25 -0800844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *=) ac_optarg= ;;
846 *) ac_optarg=yes ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000847 esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
Lev Walkin27fd0b62007-08-27 23:57:45 +0000851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
Lev Walkin27fd0b62007-08-27 23:57:45 +0000875 -datadir | --datadir | --datadi | --datad)
Lev Walkinf15320b2004-06-03 03:38:44 +0000876 ac_prev=datadir ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000878 datadir=$ac_optarg ;;
879
Lev Walkin27fd0b62007-08-27 23:57:45 +0000880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
Lev Walkinf15320b2004-06-03 03:38:44 +0000887 -disable-* | --disable-*)
Lev Walkinb3751942012-09-02 19:36:47 -0700888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +0000889 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -0700890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -0800891 as_fn_error $? "invalid feature name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -0700892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896"enable_$ac_useropt"
897"*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000912
913 -enable-* | --enable-*)
Lev Walkinb3751942012-09-02 19:36:47 -0700914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +0000915 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -0700916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -0800917 as_fn_error $? "invalid feature name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -0700918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922"enable_$ac_useropt"
923"*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
Lev Walkin27fd0b62007-08-27 23:57:45 +0000954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
Lev Walkinf15320b2004-06-03 03:38:44 +0000960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
Lev Walkin27fd0b62007-08-27 23:57:45 +0000984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
Lev Walkinf15320b2004-06-03 03:38:44 +0000989 -localstatedir | --localstatedir | --localstatedi | --localstated \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000990 | --localstate | --localstat | --localsta | --localst | --locals)
Lev Walkinf15320b2004-06-03 03:38:44 +0000991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
Lev Walkin27fd0b62007-08-27 23:57:45 +00001058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
Lev Walkinf15320b2004-06-03 03:38:44 +00001068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001119 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -08001121 as_fn_error $? "invalid package name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -07001122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126"with_$ac_useropt"
1127"*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001132
1133 -without-* | --without-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001135 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -08001137 as_fn_error $? "invalid package name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -07001138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142"with_$ac_useropt"
1143"*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
Lev Walkinaef10c32014-01-14 01:47:25 -08001167 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168Try \`$0 --help' for more information"
Lev Walkinf15320b2004-06-03 03:38:44 +00001169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
Lev Walkinaef10c32014-01-14 01:47:25 -08001174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001178 eval $ac_envvar=\$ac_optarg
Lev Walkinf15320b2004-06-03 03:38:44 +00001179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
Lev Walkinb3751942012-09-02 19:36:47 -07001183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinb3751942012-09-02 19:36:47 -07001185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -08001186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Lev Walkinf15320b2004-06-03 03:38:44 +00001187 ;;
1188
1189 esac
1190done
1191
1192if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -08001194 as_fn_error $? "missing argument to $ac_option"
Lev Walkinf15320b2004-06-03 03:38:44 +00001195fi
1196
Lev Walkinb3751942012-09-02 19:36:47 -07001197if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08001200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Lev Walkinb3751942012-09-02 19:36:47 -07001201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203fi
1204
1205# Check all directory arguments for consistency.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +00001210do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001211 eval ac_val=\$$ac_var
Lev Walkinb3751942012-09-02 19:36:47 -07001212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
Lev Walkinf15320b2004-06-03 03:38:44 +00001219 case $ac_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001222 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08001223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Lev Walkinf15320b2004-06-03 03:38:44 +00001224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
Lev Walkinf15320b2004-06-03 03:38:44 +00001237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1239 fi
1240fi
1241
1242ac_tool_prefix=
1243test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245test "$silent" = yes && exec 6>/dev/null
1246
1247
Lev Walkin27fd0b62007-08-27 23:57:45 +00001248ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249ac_ls_di=`ls -di .` &&
1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08001251 as_fn_error $? "working directory cannot be determined"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Lev Walkinaef10c32014-01-14 01:47:25 -08001253 as_fn_error $? "pwd does not report name of working directory"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001254
1255
Lev Walkinf15320b2004-06-03 03:38:44 +00001256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00001259 # Try the directory containing this script, then the parent directory.
Lev Walkinb3751942012-09-02 19:36:47 -07001260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265$as_echo X"$as_myself" |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001283 srcdir=$ac_confdir
Lev Walkin27fd0b62007-08-27 23:57:45 +00001284 if test ! -r "$srcdir/$ac_unique_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001285 srcdir=..
1286 fi
1287else
1288 ac_srcdir_defaulted=no
1289fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001290if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Lev Walkinaef10c32014-01-14 01:47:25 -08001292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Lev Walkinf15320b2004-06-03 03:38:44 +00001293fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
Lev Walkinaef10c32014-01-14 01:47:25 -08001296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
Lev Walkinf15320b2004-06-03 03:38:44 +00001314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
Lev Walkine0d321a2014-09-11 01:28:57 -07001322\`configure' configures asn1c 0.9.26 to adapt to many kinds of systems.
Lev Walkinf15320b2004-06-03 03:38:44 +00001323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
Lev Walkinaef10c32014-01-14 01:47:25 -08001336 -q, --quiet, --silent do not print \`checking ...' messages
Lev Walkinf15320b2004-06-03 03:38:44 +00001337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
Lev Walkinf15320b2004-06-03 03:38:44 +00001342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001344 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +00001345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001346 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +00001347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
Lev Walkinb3751942012-09-02 19:36:47 -07001356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/asn1c]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
Lev Walkinf15320b2004-06-03 03:38:44 +00001375_ACEOF
1376
1377 cat <<\_ACEOF
1378
1379Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383
1384System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Lev Walkinf15320b2004-06-03 03:38:44 +00001387_ACEOF
1388fi
1389
1390if test -n "$ac_init_help"; then
Lev Walkine7c4b962010-11-09 03:10:36 -08001391 case $ac_init_help in
Lev Walkine0d321a2014-09-11 01:28:57 -07001392 short | recursive ) echo "Configuration of asn1c 0.9.26:";;
Lev Walkine7c4b962010-11-09 03:10:36 -08001393 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001394 cat <<\_ACEOF
1395
1396Optional Features:
Lev Walkinb3751942012-09-02 19:36:47 -07001397 --disable-option-checking ignore unrecognized --enable/--with options
Lev Walkinf15320b2004-06-03 03:38:44 +00001398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkine0d321a2014-09-11 01:28:57 -07001400 --enable-maintainer-mode enable make rules and dependencies not useful
1401 (and sometimes confusing) to the casual installer
Lev Walkin27fd0b62007-08-27 23:57:45 +00001402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001408 --disable-libtool-lock avoid locking (might break parallel builds)
Lev Walkinf15320b2004-06-03 03:38:44 +00001409 --enable-Werror abort compilation after any C compiler warning
1410
1411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001414 --with-pic try to use only PIC/non-PIC objects [default=use
1415 both]
Lev Walkin4da95cf2010-10-16 02:46:32 -07001416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Lev Walkinaef10c32014-01-14 01:47:25 -08001417 --with-sysroot=DIR Search for dependent libraries within DIR
1418 (or the compiler's sysroot if not specified).
Lev Walkinf15320b2004-06-03 03:38:44 +00001419
1420Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
Lev Walkin4c776e52010-11-08 02:07:31 -08001425 LIBS libraries to pass to the linker, e.g. -l<library>
Lev Walkinaef10c32014-01-14 01:47:25 -08001426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Lev Walkin27fd0b62007-08-27 23:57:45 +00001427 you have headers in a nonstandard directory <include dir>
Lev Walkinf15320b2004-06-03 03:38:44 +00001428 CPP C preprocessor
Lev Walkinaef10c32014-01-14 01:47:25 -08001429 YACC The `Yet Another Compiler Compiler' implementation to use.
1430 Defaults to the first program found out of: `bison -y', `byacc',
1431 `yacc'.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001432 YFLAGS The list of arguments that will be passed by default to $YACC.
1433 This script will default YFLAGS to the empty string to avoid a
1434 default value of `-d' given by some make applications.
Lev Walkinf15320b2004-06-03 03:38:44 +00001435
1436Use these variables to override the choices made by `configure' or to help
1437it to find libraries and programs with nonstandard names/locations.
1438
Lev Walkine7c4b962010-11-09 03:10:36 -08001439Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00001440_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001441ac_status=$?
Lev Walkinf15320b2004-06-03 03:38:44 +00001442fi
1443
1444if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
Lev Walkinf15320b2004-06-03 03:38:44 +00001446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Lev Walkinb3751942012-09-02 19:36:47 -07001447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001450 ac_builddir=.
1451
Lev Walkin27fd0b62007-08-27 23:57:45 +00001452case "$ac_dir" in
1453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454*)
Lev Walkinb3751942012-09-02 19:36:47 -07001455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001456 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -07001457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462esac
1463ac_abs_top_builddir=$ac_pwd
1464ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465# for backward compatibility:
1466ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +00001467
1468case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001469 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +00001470 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +00001474 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001481esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +00001483
Lev Walkin27fd0b62007-08-27 23:57:45 +00001484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
Lev Walkinf15320b2004-06-03 03:38:44 +00001492 else
Lev Walkinb3751942012-09-02 19:36:47 -07001493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001496 done
1497fi
1498
Lev Walkin27fd0b62007-08-27 23:57:45 +00001499test -n "$ac_init_help" && exit $ac_status
Lev Walkinf15320b2004-06-03 03:38:44 +00001500if $ac_init_version; then
1501 cat <<\_ACEOF
Lev Walkine0d321a2014-09-11 01:28:57 -07001502asn1c configure 0.9.26
Lev Walkinaef10c32014-01-14 01:47:25 -08001503generated by GNU Autoconf 2.69
Lev Walkinf15320b2004-06-03 03:38:44 +00001504
Lev Walkinaef10c32014-01-14 01:47:25 -08001505Copyright (C) 2012 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001506This configure script is free software; the Free Software Foundation
1507gives unlimited permission to copy, distribute and modify it.
1508_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001509 exit
Lev Walkinf15320b2004-06-03 03:38:44 +00001510fi
Lev Walkinaef10c32014-01-14 01:47:25 -08001511
1512## ------------------------ ##
1513## Autoconf initialization. ##
1514## ------------------------ ##
1515
1516# ac_fn_c_try_compile LINENO
1517# --------------------------
1518# Try to compile conftest.$ac_ext, and return whether this succeeded.
1519ac_fn_c_try_compile ()
1520{
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext
1523 if { { ac_try="$ac_compile"
1524case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527esac
1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529$as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_compile") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1536 fi
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest.$ac_objext; then :
1542 ac_retval=0
1543else
1544 $as_echo "$as_me: failed program was:" >&5
1545sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548fi
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1551
1552} # ac_fn_c_try_compile
1553
1554# ac_fn_c_try_link LINENO
1555# -----------------------
1556# Try to link conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_link ()
1558{
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext conftest$ac_exeext
1561 if { { ac_try="$ac_link"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_link") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest$ac_exeext && {
1580 test "$cross_compiling" = yes ||
1581 test -x conftest$ac_exeext
1582 }; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589fi
1590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1592 # interfere with the next link command; also delete a directory that is
1593 # left behind by Apple's compiler. We do this before executing the actions.
1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_link
1599
1600# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1601# -------------------------------------------------------
1602# Tests whether HEADER exists and can be compiled using the include files in
1603# INCLUDES, setting the cache variable VAR accordingly.
1604ac_fn_c_check_header_compile ()
1605{
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608$as_echo_n "checking for $2... " >&6; }
1609if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1611else
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613/* end confdefs.h. */
1614$4
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_compile "$LINENO"; then :
1618 eval "$3=yes"
1619else
1620 eval "$3=no"
1621fi
1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623fi
1624eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626$as_echo "$ac_res" >&6; }
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628
1629} # ac_fn_c_check_header_compile
1630
1631# ac_fn_c_try_cpp LINENO
1632# ----------------------
1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_cpp ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 }; then :
1656 ac_retval=0
1657else
1658 $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666} # ac_fn_c_try_cpp
1667
1668# ac_fn_c_try_run LINENO
1669# ----------------------
1670# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671# that executables *can* be run.
1672ac_fn_c_try_run ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1676case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1696 ac_retval=0
1697else
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=$ac_status
1703fi
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_run
1709
1710# ac_fn_c_check_func LINENO FUNC VAR
1711# ----------------------------------
1712# Tests whether FUNC exists, setting the cache variable VAR accordingly
1713ac_fn_c_check_func ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717$as_echo_n "checking for $2... " >&6; }
1718if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h. */
1723/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1725#define $2 innocuous_$2
1726
1727/* System header to define __stub macros and hopefully few prototypes,
1728 which can conflict with char $2 (); below.
1729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1730 <limits.h> exists even on freestanding compilers. */
1731
1732#ifdef __STDC__
1733# include <limits.h>
1734#else
1735# include <assert.h>
1736#endif
1737
1738#undef $2
1739
1740/* Override any GCC internal prototype to avoid an error.
1741 Use char because int might match the return type of a GCC
1742 builtin and then its argument prototype would still apply. */
1743#ifdef __cplusplus
1744extern "C"
1745#endif
1746char $2 ();
1747/* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750#if defined __stub_$2 || defined __stub___$2
1751choke me
1752#endif
1753
1754int
1755main ()
1756{
1757return $2 ();
1758 ;
1759 return 0;
1760}
1761_ACEOF
1762if ac_fn_c_try_link "$LINENO"; then :
1763 eval "$3=yes"
1764else
1765 eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext \
1768 conftest$ac_exeext conftest.$ac_ext
1769fi
1770eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775} # ac_fn_c_check_func
1776
1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780# the include files in INCLUDES and setting the cache variable VAR
1781# accordingly.
1782ac_fn_c_check_header_mongrel ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794else
1795 # Is the header compilable?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797$as_echo_n "checking $2 usability... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805else
1806 ac_header_compiler=no
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810$as_echo "$ac_header_compiler" >&6; }
1811
1812# Is the header present?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814$as_echo_n "checking $2 presence... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821else
1822 ac_header_preproc=no
1823fi
1824rm -f conftest.err conftest.i conftest.$ac_ext
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826$as_echo "$ac_header_preproc" >&6; }
1827
1828# So? What about this header?
1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847( $as_echo "## ------------------------------ ##
1848## Report this to vlm@lionet.info ##
1849## ------------------------------ ##"
1850 ) | sed "s/^/$as_me: WARNING: /" >&2
1851 ;;
1852esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 eval "$3=\$ac_header_compiler"
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863fi
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_header_mongrel
1867
1868# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1869# -------------------------------------------
1870# Tests whether TYPE exists after having included INCLUDES, setting cache
1871# variable VAR accordingly.
1872ac_fn_c_check_type ()
1873{
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876$as_echo_n "checking for $2... " >&6; }
1877if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1879else
1880 eval "$3=no"
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882/* end confdefs.h. */
1883$4
1884int
1885main ()
1886{
1887if (sizeof ($2))
1888 return 0;
1889 ;
1890 return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h. */
1896$4
1897int
1898main ()
1899{
1900if (sizeof (($2)))
1901 return 0;
1902 ;
1903 return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907
1908else
1909 eval "$3=yes"
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912fi
1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914fi
1915eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920} # ac_fn_c_check_type
Lev Walkin27fd0b62007-08-27 23:57:45 +00001921cat >config.log <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00001922This file contains any messages produced by compilers while
1923running configure, to aid debugging if configure makes a mistake.
1924
Lev Walkine0d321a2014-09-11 01:28:57 -07001925It was created by asn1c $as_me 0.9.26, which was
Lev Walkinaef10c32014-01-14 01:47:25 -08001926generated by GNU Autoconf 2.69. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001927
1928 $ $0 $@
1929
1930_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001931exec 5>>config.log
Lev Walkinf15320b2004-06-03 03:38:44 +00001932{
1933cat <<_ASUNAME
1934## --------- ##
1935## Platform. ##
1936## --------- ##
1937
1938hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1939uname -m = `(uname -m) 2>/dev/null || echo unknown`
1940uname -r = `(uname -r) 2>/dev/null || echo unknown`
1941uname -s = `(uname -s) 2>/dev/null || echo unknown`
1942uname -v = `(uname -v) 2>/dev/null || echo unknown`
1943
1944/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1945/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1946
1947/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1948/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1949/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001950/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Lev Walkinf15320b2004-06-03 03:38:44 +00001951/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1952/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1953/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1954
1955_ASUNAME
1956
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08001962 $as_echo "PATH: $as_dir"
1963 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00001964IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00001965
1966} >&5
1967
1968cat >&5 <<_ACEOF
1969
1970
1971## ----------- ##
1972## Core tests. ##
1973## ----------- ##
1974
1975_ACEOF
1976
1977
1978# Keep a trace of the command line.
1979# Strip out --no-create and --no-recursion so they do not pile up.
1980# Strip out --silent because we don't want to record it for future runs.
1981# Also quote any args containing shell meta-characters.
1982# Make two passes to allow for proper duplicate-argument suppression.
1983ac_configure_args=
1984ac_configure_args0=
1985ac_configure_args1=
Lev Walkinf15320b2004-06-03 03:38:44 +00001986ac_must_keep_next=false
1987for ac_pass in 1 2
1988do
1989 for ac_arg
1990 do
1991 case $ac_arg in
1992 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1994 | -silent | --silent | --silen | --sile | --sil)
1995 continue ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001996 *\'*)
Lev Walkinb3751942012-09-02 19:36:47 -07001997 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001998 esac
1999 case $ac_pass in
Lev Walkinaef10c32014-01-14 01:47:25 -08002000 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002001 2)
Lev Walkinaef10c32014-01-14 01:47:25 -08002002 as_fn_append ac_configure_args1 " '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00002003 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002004 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00002005 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002006 case $ac_arg in
2007 *=* | --config-cache | -C | -disable-* | --disable-* \
2008 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2009 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2010 | -with-* | --with-* | -without-* | --without-* | --x)
2011 case "$ac_configure_args0 " in
2012 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2013 esac
2014 ;;
2015 -* ) ac_must_keep_next=true ;;
2016 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002017 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002018 as_fn_append ac_configure_args " '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00002019 ;;
2020 esac
2021 done
2022done
Lev Walkinaef10c32014-01-14 01:47:25 -08002023{ ac_configure_args0=; unset ac_configure_args0;}
2024{ ac_configure_args1=; unset ac_configure_args1;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002025
2026# When interrupted or exit'd, cleanup temporary files, and complete
2027# config.log. We remove comments because anyway the quotes in there
2028# would cause problems or look ugly.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002029# WARNING: Use '\'' to represent an apostrophe within the trap.
2030# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Lev Walkinf15320b2004-06-03 03:38:44 +00002031trap 'exit_status=$?
2032 # Save into config.log some information that might help in debugging.
2033 {
2034 echo
2035
Lev Walkinaef10c32014-01-14 01:47:25 -08002036 $as_echo "## ---------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002037## Cache variables. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002038## ---------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002039 echo
2040 # The following way of writing the cache mishandles newlines in values,
Lev Walkin27fd0b62007-08-27 23:57:45 +00002041(
2042 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in #(
2045 *${as_nl}*)
2046 case $ac_var in #(
Lev Walkinaef10c32014-01-14 01:47:25 -08002047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002048$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002049 esac
2050 case $ac_var in #(
2051 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -07002052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkinaef10c32014-01-14 01:47:25 -08002053 *) { eval $ac_var=; unset $ac_var;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002054 esac ;;
2055 esac
2056 done
Lev Walkinf15320b2004-06-03 03:38:44 +00002057 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +00002058 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +00002060 sed -n \
Lev Walkin27fd0b62007-08-27 23:57:45 +00002061 "s/'\''/'\''\\\\'\'''\''/g;
2062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +00002064 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00002065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00002066 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002067 esac |
2068 sort
2069)
Lev Walkinf15320b2004-06-03 03:38:44 +00002070 echo
2071
Lev Walkinaef10c32014-01-14 01:47:25 -08002072 $as_echo "## ----------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002073## Output variables. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002074## ----------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002075 echo
2076 for ac_var in $ac_subst_vars
2077 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002078 eval ac_val=\$$ac_var
2079 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002081 esac
Lev Walkinb3751942012-09-02 19:36:47 -07002082 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00002083 done | sort
2084 echo
2085
2086 if test -n "$ac_subst_files"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002087 $as_echo "## ------------------- ##
Lev Walkin27fd0b62007-08-27 23:57:45 +00002088## File substitutions. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002089## ------------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002090 echo
2091 for ac_var in $ac_subst_files
2092 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002093 eval ac_val=\$$ac_var
2094 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002096 esac
Lev Walkinb3751942012-09-02 19:36:47 -07002097 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00002098 done | sort
2099 echo
2100 fi
2101
2102 if test -s confdefs.h; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002103 $as_echo "## ----------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002104## confdefs.h. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002105## ----------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002106 echo
Lev Walkin27fd0b62007-08-27 23:57:45 +00002107 cat confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00002108 echo
2109 fi
2110 test "$ac_signal" != 0 &&
Lev Walkinb3751942012-09-02 19:36:47 -07002111 $as_echo "$as_me: caught signal $ac_signal"
2112 $as_echo "$as_me: exit $exit_status"
Lev Walkinf15320b2004-06-03 03:38:44 +00002113 } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00002114 rm -f core *.core core.conftest.* &&
2115 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Lev Walkinf15320b2004-06-03 03:38:44 +00002116 exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +00002117' 0
Lev Walkinf15320b2004-06-03 03:38:44 +00002118for ac_signal in 1 2 13 15; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002119 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Lev Walkinf15320b2004-06-03 03:38:44 +00002120done
2121ac_signal=0
2122
2123# confdefs.h avoids OS command line length limits that DEFS can exceed.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002124rm -f -r conftest* confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00002125
Lev Walkinaef10c32014-01-14 01:47:25 -08002126$as_echo "/* confdefs.h */" > confdefs.h
2127
Lev Walkinf15320b2004-06-03 03:38:44 +00002128# Predefined preprocessor variables.
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_NAME "$PACKAGE_NAME"
2132_ACEOF
2133
Lev Walkinf15320b2004-06-03 03:38:44 +00002134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2136_ACEOF
2137
Lev Walkinf15320b2004-06-03 03:38:44 +00002138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_VERSION "$PACKAGE_VERSION"
2140_ACEOF
2141
Lev Walkinf15320b2004-06-03 03:38:44 +00002142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_STRING "$PACKAGE_STRING"
2144_ACEOF
2145
Lev Walkinf15320b2004-06-03 03:38:44 +00002146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2148_ACEOF
2149
Lev Walkinaef10c32014-01-14 01:47:25 -08002150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_URL "$PACKAGE_URL"
2152_ACEOF
2153
Lev Walkinf15320b2004-06-03 03:38:44 +00002154
2155# Let the site file select an alternate cache file if it wants to.
Lev Walkinb3751942012-09-02 19:36:47 -07002156# Prefer an explicitly selected file to automatically selected ones.
2157ac_site_file1=NONE
2158ac_site_file2=NONE
Lev Walkin27fd0b62007-08-27 23:57:45 +00002159if test -n "$CONFIG_SITE"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002160 # We do not want a PATH search for config.site.
2161 case $CONFIG_SITE in #((
2162 -*) ac_site_file1=./$CONFIG_SITE;;
2163 */*) ac_site_file1=$CONFIG_SITE;;
2164 *) ac_site_file1=./$CONFIG_SITE;;
2165 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00002166elif test "x$prefix" != xNONE; then
Lev Walkinb3751942012-09-02 19:36:47 -07002167 ac_site_file1=$prefix/share/config.site
2168 ac_site_file2=$prefix/etc/config.site
Lev Walkin27fd0b62007-08-27 23:57:45 +00002169else
Lev Walkinb3751942012-09-02 19:36:47 -07002170 ac_site_file1=$ac_default_prefix/share/config.site
2171 ac_site_file2=$ac_default_prefix/etc/config.site
Lev Walkinf15320b2004-06-03 03:38:44 +00002172fi
Lev Walkinb3751942012-09-02 19:36:47 -07002173for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Lev Walkin27fd0b62007-08-27 23:57:45 +00002174do
Lev Walkinb3751942012-09-02 19:36:47 -07002175 test "x$ac_site_file" = xNONE && continue
Lev Walkinaef10c32014-01-14 01:47:25 -08002176 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002178$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002179 sed 's/^/| /' "$ac_site_file" >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08002180 . "$ac_site_file" \
2181 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183as_fn_error $? "failed to load site script $ac_site_file
2184See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002185 fi
2186done
2187
2188if test -r "$cache_file"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002189 # Some versions of bash will fail to source /dev/null (special files
2190 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2191 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002193$as_echo "$as_me: loading cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002194 case $cache_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00002195 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2196 *) . "./$cache_file";;
Lev Walkinf15320b2004-06-03 03:38:44 +00002197 esac
2198 fi
2199else
Lev Walkinaef10c32014-01-14 01:47:25 -08002200 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002201$as_echo "$as_me: creating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002202 >$cache_file
2203fi
2204
2205# Check that the precious variables saved in the cache have kept the same
2206# value.
2207ac_cache_corrupted=false
Lev Walkin27fd0b62007-08-27 23:57:45 +00002208for ac_var in $ac_precious_vars; do
Lev Walkinf15320b2004-06-03 03:38:44 +00002209 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2210 eval ac_new_set=\$ac_env_${ac_var}_set
Lev Walkin27fd0b62007-08-27 23:57:45 +00002211 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2212 eval ac_new_val=\$ac_env_${ac_var}_value
Lev Walkinf15320b2004-06-03 03:38:44 +00002213 case $ac_old_set,$ac_new_set in
2214 set,)
Lev Walkinaef10c32014-01-14 01:47:25 -08002215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002216$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002217 ac_cache_corrupted=: ;;
2218 ,set)
Lev Walkinaef10c32014-01-14 01:47:25 -08002219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002220$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002221 ac_cache_corrupted=: ;;
2222 ,);;
2223 *)
2224 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002225 # differences in whitespace do not lead to failure.
2226 ac_old_val_w=`echo x $ac_old_val`
2227 ac_new_val_w=`echo x $ac_new_val`
2228 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002230$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2231 ac_cache_corrupted=:
2232 else
Lev Walkinaef10c32014-01-14 01:47:25 -08002233 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002234$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2235 eval $ac_var=\$ac_old_val
2236 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002237 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002238$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002239 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002240$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002241 fi;;
2242 esac
2243 # Pass precious variables to config.status.
2244 if test "$ac_new_set" = set; then
2245 case $ac_new_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002246 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002247 *) ac_arg=$ac_var=$ac_new_val ;;
2248 esac
2249 case " $ac_configure_args " in
2250 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Lev Walkinaef10c32014-01-14 01:47:25 -08002251 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002252 esac
2253 fi
2254done
2255if $ac_cache_corrupted; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002259$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002260 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002261fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002262## -------------------- ##
2263## Main body of script. ##
2264## -------------------- ##
Lev Walkine7c4b962010-11-09 03:10:36 -08002265
Lev Walkinf15320b2004-06-03 03:38:44 +00002266ac_ext=c
2267ac_cpp='$CPP $CPPFLAGS'
2268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2270ac_compiler_gnu=$ac_cv_c_compiler_gnu
2271
2272
Lev Walkinb3751942012-09-02 19:36:47 -07002273am__api_version='1.11'
Lev Walkine7c4b962010-11-09 03:10:36 -08002274
Lev Walkinf15320b2004-06-03 03:38:44 +00002275ac_aux_dir=
Lev Walkin27fd0b62007-08-27 23:57:45 +00002276for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2277 if test -f "$ac_dir/install-sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/install-sh -c"
2280 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002281 elif test -f "$ac_dir/install.sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/install.sh -c"
2284 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002285 elif test -f "$ac_dir/shtool"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002286 ac_aux_dir=$ac_dir
2287 ac_install_sh="$ac_aux_dir/shtool install -c"
2288 break
2289 fi
2290done
2291if test -z "$ac_aux_dir"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002293fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002294
2295# These three variables are undocumented and unsupported,
2296# and are intended to be withdrawn in a future Autoconf release.
2297# They can cause serious problems if a builder's source tree is in a directory
2298# whose full name contains unusual characters.
2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2302
Lev Walkinf15320b2004-06-03 03:38:44 +00002303
Lev Walkinf15320b2004-06-03 03:38:44 +00002304# Find a good install program. We prefer a C program (faster),
2305# so one script is as good as another. But avoid the broken or
2306# incompatible versions:
2307# SysV /etc/install, /usr/sbin/install
2308# SunOS /usr/etc/install
2309# IRIX /sbin/install
2310# AIX /bin/install
2311# AmigaOS /C/install, which installs bootblocks on floppy discs
2312# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2313# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2314# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002315# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00002316# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkinb3751942012-09-02 19:36:47 -07002317# Reject install programs that cannot install multiple files.
Lev Walkinaef10c32014-01-14 01:47:25 -08002318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002319$as_echo_n "checking for a BSD-compatible install... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002320if test -z "$INSTALL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002321if ${ac_cv_path_install+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002322 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002323else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002329 # Account for people who put trailing slashes in PATH elements.
2330case $as_dir/ in #((
2331 ./ | .// | /[cC]/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002332 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkinaef10c32014-01-14 01:47:25 -08002333 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002334 /usr/ucb/* ) ;;
2335 *)
2336 # OSF1 and SCO ODT 3.0 have their own names for install.
2337 # Don't use installbsd from OSF since it installs stuff as root
2338 # by default.
2339 for ac_prog in ginstall scoinst install; do
2340 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002341 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002342 if test $ac_prog = install &&
2343 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2344 # AIX install. It has an incompatible calling convention.
2345 :
2346 elif test $ac_prog = install &&
2347 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2348 # program-specific install script used by HP pwplus--don't use.
2349 :
2350 else
Lev Walkinb3751942012-09-02 19:36:47 -07002351 rm -rf conftest.one conftest.two conftest.dir
2352 echo one > conftest.one
2353 echo two > conftest.two
2354 mkdir conftest.dir
2355 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2356 test -s conftest.one && test -s conftest.two &&
2357 test -s conftest.dir/conftest.one &&
2358 test -s conftest.dir/conftest.two
2359 then
2360 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2361 break 3
2362 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002363 fi
2364 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002365 done
2366 done
2367 ;;
2368esac
Lev Walkinb3751942012-09-02 19:36:47 -07002369
Lev Walkinaef10c32014-01-14 01:47:25 -08002370 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002371IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002372
Lev Walkinb3751942012-09-02 19:36:47 -07002373rm -rf conftest.one conftest.two conftest.dir
Lev Walkinf15320b2004-06-03 03:38:44 +00002374
2375fi
2376 if test "${ac_cv_path_install+set}" = set; then
2377 INSTALL=$ac_cv_path_install
2378 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002379 # As a last resort, use the slow shell script. Don't cache a
2380 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +00002381 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +00002382 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +00002383 INSTALL=$ac_install_sh
2384 fi
2385fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002387$as_echo "$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002388
2389# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2390# It thinks the first close brace ends the variable substitution.
2391test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2392
2393test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2394
2395test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2396
Lev Walkinaef10c32014-01-14 01:47:25 -08002397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002398$as_echo_n "checking whether build environment is sane... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002399# Just in case
2400sleep 1
2401echo timestamp > conftest.file
Lev Walkinb3751942012-09-02 19:36:47 -07002402# Reject unsafe characters in $srcdir or the absolute working directory
2403# name. Accept space and tab only in the latter.
2404am_lf='
2405'
2406case `pwd` in
2407 *[\\\"\#\$\&\'\`$am_lf]*)
Lev Walkinaef10c32014-01-14 01:47:25 -08002408 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Lev Walkinb3751942012-09-02 19:36:47 -07002409esac
2410case $srcdir in
2411 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Lev Walkinaef10c32014-01-14 01:47:25 -08002412 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Lev Walkinb3751942012-09-02 19:36:47 -07002413esac
2414
Lev Walkinf15320b2004-06-03 03:38:44 +00002415# Do `set' in a subshell so we don't clobber the current shell's
2416# arguments. Must try -L first in case configure is actually a
2417# symlink; some systems play weird games with the mod time of symlinks
2418# (eg FreeBSD returns the mod time of the symlink's containing
2419# directory).
2420if (
Lev Walkinb3751942012-09-02 19:36:47 -07002421 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Lev Walkinf15320b2004-06-03 03:38:44 +00002422 if test "$*" = "X"; then
2423 # -L didn't work.
Lev Walkinb3751942012-09-02 19:36:47 -07002424 set X `ls -t "$srcdir/configure" conftest.file`
Lev Walkinf15320b2004-06-03 03:38:44 +00002425 fi
2426 rm -f conftest.file
2427 if test "$*" != "X $srcdir/configure conftest.file" \
2428 && test "$*" != "X conftest.file $srcdir/configure"; then
2429
2430 # If neither matched, then we have a broken ls. This can happen
2431 # if, for instance, CONFIG_SHELL is bash and it inherits a
2432 # broken ls alias from the environment. This has actually
2433 # happened. Such a system could not be considered "sane".
Lev Walkinaef10c32014-01-14 01:47:25 -08002434 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2435alias in your environment" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002436 fi
2437
2438 test "$2" = conftest.file
2439 )
2440then
2441 # Ok.
2442 :
2443else
Lev Walkinaef10c32014-01-14 01:47:25 -08002444 as_fn_error $? "newly created file is older than distributed files!
2445Check your system clock" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002446fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002448$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002449test "$program_prefix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002450 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002451# Use a double $ so make ignores it.
2452test "$program_suffix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002453 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Lev Walkinb3751942012-09-02 19:36:47 -07002454# Double any \ or $.
Lev Walkinf15320b2004-06-03 03:38:44 +00002455# By default was `s,x,x', remove it if useless.
Lev Walkinb3751942012-09-02 19:36:47 -07002456ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2457program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Lev Walkinf15320b2004-06-03 03:38:44 +00002458
Lev Walkinf15320b2004-06-03 03:38:44 +00002459# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00002460am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00002461
Lev Walkinb3751942012-09-02 19:36:47 -07002462if test x"${MISSING+set}" != xset; then
2463 case $am_aux_dir in
2464 *\ * | *\ *)
2465 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2466 *)
2467 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2468 esac
2469fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002470# Use eval to expand $SHELL
2471if eval "$MISSING --run true"; then
2472 am_missing_run="$MISSING --run "
2473else
2474 am_missing_run=
Lev Walkinaef10c32014-01-14 01:47:25 -08002475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002476$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002477fi
2478
Lev Walkinb3751942012-09-02 19:36:47 -07002479if test x"${install_sh}" != xset; then
2480 case $am_aux_dir in
2481 *\ * | *\ *)
2482 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2483 *)
2484 install_sh="\${SHELL} $am_aux_dir/install-sh"
2485 esac
2486fi
2487
2488# Installed binaries are usually stripped using `strip' when the user
2489# run `make install-strip'. However `strip' might not be the right
2490# tool to use in cross-compilation environments, therefore Automake
2491# will honor the `STRIP' environment variable to overrule this program.
2492if test "$cross_compiling" != no; then
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2495set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002497$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002498if ${ac_cv_prog_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002499 $as_echo_n "(cached) " >&6
2500else
2501 if test -n "$STRIP"; then
2502 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002511 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08002512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002513 break 2
2514 fi
2515done
Lev Walkinaef10c32014-01-14 01:47:25 -08002516 done
Lev Walkinb3751942012-09-02 19:36:47 -07002517IFS=$as_save_IFS
2518
2519fi
2520fi
2521STRIP=$ac_cv_prog_STRIP
2522if test -n "$STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002524$as_echo "$STRIP" >&6; }
2525else
Lev Walkinaef10c32014-01-14 01:47:25 -08002526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002527$as_echo "no" >&6; }
2528fi
2529
2530
2531fi
2532if test -z "$ac_cv_prog_STRIP"; then
2533 ac_ct_STRIP=$STRIP
2534 # Extract the first word of "strip", so it can be a program name with args.
2535set dummy strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002537$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002538if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002539 $as_echo_n "(cached) " >&6
2540else
2541 if test -n "$ac_ct_STRIP"; then
2542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2543else
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002551 ac_cv_prog_ac_ct_STRIP="strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08002552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002553 break 2
2554 fi
2555done
Lev Walkinaef10c32014-01-14 01:47:25 -08002556 done
Lev Walkinb3751942012-09-02 19:36:47 -07002557IFS=$as_save_IFS
2558
2559fi
2560fi
2561ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2562if test -n "$ac_ct_STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002564$as_echo "$ac_ct_STRIP" >&6; }
2565else
Lev Walkinaef10c32014-01-14 01:47:25 -08002566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002567$as_echo "no" >&6; }
2568fi
2569
2570 if test "x$ac_ct_STRIP" = x; then
2571 STRIP=":"
2572 else
2573 case $cross_compiling:$ac_tool_warned in
2574yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08002575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2577ac_tool_warned=yes ;;
2578esac
2579 STRIP=$ac_ct_STRIP
2580 fi
2581else
2582 STRIP="$ac_cv_prog_STRIP"
2583fi
2584
2585fi
2586INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2587
Lev Walkinaef10c32014-01-14 01:47:25 -08002588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002589$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002590if test -z "$MKDIR_P"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002591 if ${ac_cv_path_mkdir+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002592 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00002593else
Lev Walkin4c776e52010-11-08 02:07:31 -08002594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2596do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002599 for ac_prog in mkdir gmkdir; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002600 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002601 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Lev Walkin4c776e52010-11-08 02:07:31 -08002602 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2603 'mkdir (GNU coreutils) '* | \
2604 'mkdir (coreutils) '* | \
2605 'mkdir (fileutils) '4.1*)
2606 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2607 break 3;;
2608 esac
2609 done
2610 done
Lev Walkinaef10c32014-01-14 01:47:25 -08002611 done
Lev Walkin4c776e52010-11-08 02:07:31 -08002612IFS=$as_save_IFS
2613
2614fi
2615
Lev Walkinaef10c32014-01-14 01:47:25 -08002616 test -d ./--version && rmdir ./--version
Lev Walkin4c776e52010-11-08 02:07:31 -08002617 if test "${ac_cv_path_mkdir+set}" = set; then
2618 MKDIR_P="$ac_cv_path_mkdir -p"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002619 else
Lev Walkin4c776e52010-11-08 02:07:31 -08002620 # As a last resort, use the slow shell script. Don't cache a
2621 # value for MKDIR_P within a source directory, because that will
2622 # break other packages using the cache if that directory is
2623 # removed, or if the value is a relative name.
Lev Walkin4c776e52010-11-08 02:07:31 -08002624 MKDIR_P="$ac_install_sh -d"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002625 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002626fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002628$as_echo "$MKDIR_P" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002629
2630mkdir_p="$MKDIR_P"
2631case $mkdir_p in
2632 [\\/$]* | ?:[\\/]*) ;;
2633 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2634esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002635
2636for ac_prog in gawk mawk nawk awk
2637do
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002641$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002642if ${ac_cv_prog_AWK+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002643 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002644else
2645 if test -n "$AWK"; then
2646 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002655 ac_cv_prog_AWK="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08002656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002657 break 2
2658 fi
2659done
Lev Walkinaef10c32014-01-14 01:47:25 -08002660 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002661IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002662
2663fi
2664fi
2665AWK=$ac_cv_prog_AWK
2666if test -n "$AWK"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002668$as_echo "$AWK" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002669else
Lev Walkinaef10c32014-01-14 01:47:25 -08002670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002671$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002672fi
2673
Lev Walkin27fd0b62007-08-27 23:57:45 +00002674
Lev Walkinf15320b2004-06-03 03:38:44 +00002675 test -n "$AWK" && break
2676done
2677
Lev Walkinaef10c32014-01-14 01:47:25 -08002678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002679$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2680set x ${MAKE-make}
2681ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -08002682if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002683 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002684else
2685 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00002686SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +00002687all:
Lev Walkin27fd0b62007-08-27 23:57:45 +00002688 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +00002689_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08002690# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002691case `${MAKE-make} -f conftest.make 2>/dev/null` in
2692 *@@@%%%=?*=@@@%%%*)
2693 eval ac_cv_prog_make_${ac_make}_set=yes;;
2694 *)
2695 eval ac_cv_prog_make_${ac_make}_set=no;;
2696esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002697rm -f conftest.make
2698fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002699if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002701$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002702 SET_MAKE=
2703else
Lev Walkinaef10c32014-01-14 01:47:25 -08002704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002705$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002706 SET_MAKE="MAKE=${MAKE-make}"
2707fi
2708
Lev Walkin8e8b5482004-06-17 23:42:48 +00002709rm -rf .tst 2>/dev/null
2710mkdir .tst 2>/dev/null
2711if test -d .tst; then
2712 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00002713else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002714 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00002715fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002716rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00002717
Lev Walkin4c776e52010-11-08 02:07:31 -08002718if test "`cd $srcdir && pwd`" != "`pwd`"; then
2719 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2720 # is not polluted with repeated "-I."
2721 am__isrc=' -I$(srcdir)'
2722 # test to see if srcdir already configured
2723 if test -f $srcdir/config.status; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002724 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Lev Walkin4c776e52010-11-08 02:07:31 -08002725 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002726fi
2727
Lev Walkin8e8b5482004-06-17 23:42:48 +00002728# test whether we have cygpath
2729if test -z "$CYGPATH_W"; then
2730 if (cygpath --version) >/dev/null 2>/dev/null; then
2731 CYGPATH_W='cygpath -w'
2732 else
2733 CYGPATH_W=echo
2734 fi
2735fi
2736
2737
Lev Walkinf15320b2004-06-03 03:38:44 +00002738# Define the identity of the package.
Lev Walkine7c4b962010-11-09 03:10:36 -08002739 PACKAGE='asn1c'
Lev Walkine0d321a2014-09-11 01:28:57 -07002740 VERSION='0.9.26'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002741
Lev Walkinf15320b2004-06-03 03:38:44 +00002742
2743cat >>confdefs.h <<_ACEOF
2744#define PACKAGE "$PACKAGE"
2745_ACEOF
2746
2747
2748cat >>confdefs.h <<_ACEOF
2749#define VERSION "$VERSION"
2750_ACEOF
2751
Lev Walkinf15320b2004-06-03 03:38:44 +00002752# Some tools Automake needs.
2753
Lev Walkin8e8b5482004-06-17 23:42:48 +00002754ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002755
2756
2757AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2758
2759
Lev Walkin8e8b5482004-06-17 23:42:48 +00002760AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002761
2762
2763AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2764
2765
2766MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2767
Lev Walkinf15320b2004-06-03 03:38:44 +00002768# We need awk for the "check" target. The system "awk" is bad on
2769# some platforms.
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002770# Always define AMTAR for backward compatibility.
2771
2772AMTAR=${AMTAR-"${am_missing_run}tar"}
2773
2774am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2775
2776
Lev Walkinf15320b2004-06-03 03:38:44 +00002777
2778
2779
Lev Walkine7c4b962010-11-09 03:10:36 -08002780ac_config_headers="$ac_config_headers config.h"
Lev Walkinf15320b2004-06-03 03:38:44 +00002781
2782
2783
Lev Walkine0d321a2014-09-11 01:28:57 -07002784
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2786$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2787 # Check whether --enable-maintainer-mode was given.
2788if test "${enable_maintainer_mode+set}" = set; then :
2789 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2790else
2791 USE_MAINTAINER_MODE=no
2792fi
2793
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2795$as_echo "$USE_MAINTAINER_MODE" >&6; }
2796 if test $USE_MAINTAINER_MODE = yes; then
2797 MAINTAINER_MODE_TRUE=
2798 MAINTAINER_MODE_FALSE='#'
2799else
2800 MAINTAINER_MODE_TRUE='#'
2801 MAINTAINER_MODE_FALSE=
2802fi
2803
2804 MAINT=$MAINTAINER_MODE_TRUE
2805
2806
2807
Lev Walkin4da95cf2010-10-16 02:46:32 -07002808case `pwd` in
2809 *\ * | *\ *)
Lev Walkinaef10c32014-01-14 01:47:25 -08002810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002811$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07002812esac
2813
2814
2815
Lev Walkinaef10c32014-01-14 01:47:25 -08002816macro_version='2.4'
2817macro_revision='1.3293'
Lev Walkin4da95cf2010-10-16 02:46:32 -07002818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831ltmain="$ac_aux_dir/ltmain.sh"
2832
Lev Walkine7c4b962010-11-09 03:10:36 -08002833# Make sure we can run config.sub.
2834$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002835 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002836
Lev Walkinaef10c32014-01-14 01:47:25 -08002837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002838$as_echo_n "checking build system type... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002839if ${ac_cv_build+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002840 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002841else
2842 ac_build_alias=$build_alias
2843test "x$ac_build_alias" = x &&
2844 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2845test "x$ac_build_alias" = x &&
Lev Walkinaef10c32014-01-14 01:47:25 -08002846 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002847ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002848 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002849
2850fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002852$as_echo "$ac_cv_build" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002853case $ac_cv_build in
2854*-*-*) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08002855*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Lev Walkine7c4b962010-11-09 03:10:36 -08002856esac
2857build=$ac_cv_build
2858ac_save_IFS=$IFS; IFS='-'
2859set x $ac_cv_build
2860shift
2861build_cpu=$1
2862build_vendor=$2
2863shift; shift
2864# Remember, the first character of IFS is used to create $*,
2865# except with old shells:
2866build_os=$*
2867IFS=$ac_save_IFS
2868case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2869
2870
Lev Walkinaef10c32014-01-14 01:47:25 -08002871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002872$as_echo_n "checking host system type... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002873if ${ac_cv_host+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002874 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002875else
2876 if test "x$host_alias" = x; then
2877 ac_cv_host=$ac_cv_build
2878else
2879 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002880 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002881fi
2882
2883fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002885$as_echo "$ac_cv_host" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002886case $ac_cv_host in
2887*-*-*) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08002888*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Lev Walkine7c4b962010-11-09 03:10:36 -08002889esac
2890host=$ac_cv_host
2891ac_save_IFS=$IFS; IFS='-'
2892set x $ac_cv_host
2893shift
2894host_cpu=$1
2895host_vendor=$2
2896shift; shift
2897# Remember, the first character of IFS is used to create $*,
2898# except with old shells:
2899host_os=$*
2900IFS=$ac_save_IFS
2901case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2902
2903
Lev Walkinaef10c32014-01-14 01:47:25 -08002904# Backslashify metacharacters that are still active within
2905# double-quoted strings.
2906sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2907
2908# Same as above, but do not quote variable references.
2909double_quote_subst='s/\(["`\\]\)/\\\1/g'
2910
2911# Sed substitution to delay expansion of an escaped shell variable in a
2912# double_quote_subst'ed string.
2913delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2914
2915# Sed substitution to delay expansion of an escaped single quote.
2916delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2917
2918# Sed substitution to avoid accidental globbing in evaled expressions
2919no_glob_subst='s/\*/\\\*/g'
2920
2921ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2922ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2923ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2924
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2926$as_echo_n "checking how to print strings... " >&6; }
2927# Test print first, because it will be a builtin if present.
2928if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2929 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2930 ECHO='print -r --'
2931elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2932 ECHO='printf %s\n'
2933else
2934 # Use this function as a fallback that always works.
2935 func_fallback_echo ()
2936 {
2937 eval 'cat <<_LTECHO_EOF
2938$1
2939_LTECHO_EOF'
2940 }
2941 ECHO='func_fallback_echo'
2942fi
2943
2944# func_echo_all arg...
2945# Invoke $ECHO with all args, space-separated.
2946func_echo_all ()
2947{
2948 $ECHO ""
2949}
2950
2951case "$ECHO" in
2952 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2953$as_echo "printf" >&6; } ;;
2954 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2955$as_echo "print -r" >&6; } ;;
2956 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2957$as_echo "cat" >&6; } ;;
2958esac
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
Lev Walkin8e8b5482004-06-17 23:42:48 +00002973DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002974
Lev Walkin27fd0b62007-08-27 23:57:45 +00002975ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002976
Lev Walkinf15320b2004-06-03 03:38:44 +00002977
2978am_make=${MAKE-make}
2979cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002980am__doit:
Lev Walkinb3751942012-09-02 19:36:47 -07002981 @echo this is the am__doit target
Lev Walkin8e8b5482004-06-17 23:42:48 +00002982.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002983END
2984# If we don't find an include directive, just comment out the code.
Lev Walkinaef10c32014-01-14 01:47:25 -08002985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002986$as_echo_n "checking for style of include used by $am_make... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002987am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002988am__quote=
2989_am_result=none
2990# First try GNU make style include.
2991echo "include confinc" > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07002992# Ignore all kinds of additional output from `make'.
2993case `$am_make -s -f confmf 2> /dev/null` in #(
2994*the\ am__doit\ target*)
2995 am__include=include
2996 am__quote=
2997 _am_result=GNU
2998 ;;
2999esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003000# Now try BSD make style include.
3001if test "$am__include" = "#"; then
3002 echo '.include "confinc"' > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07003003 case `$am_make -s -f confmf 2> /dev/null` in #(
3004 *the\ am__doit\ target*)
3005 am__include=.include
3006 am__quote="\""
3007 _am_result=BSD
3008 ;;
3009 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003010fi
3011
3012
Lev Walkinaef10c32014-01-14 01:47:25 -08003013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003014$as_echo "$_am_result" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003015rm -f confinc confmf
3016
Lev Walkin27fd0b62007-08-27 23:57:45 +00003017# Check whether --enable-dependency-tracking was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08003018if test "${enable_dependency_tracking+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003019 enableval=$enable_dependency_tracking;
3020fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003021
Lev Walkin8e8b5482004-06-17 23:42:48 +00003022if test "x$enable_dependency_tracking" != xno; then
3023 am_depcomp="$ac_aux_dir/depcomp"
3024 AMDEPBACKSLASH='\'
3025fi
Lev Walkin4c776e52010-11-08 02:07:31 -08003026 if test "x$enable_dependency_tracking" != xno; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003027 AMDEP_TRUE=
3028 AMDEP_FALSE='#'
3029else
3030 AMDEP_TRUE='#'
3031 AMDEP_FALSE=
3032fi
3033
3034
Lev Walkinf15320b2004-06-03 03:38:44 +00003035ac_ext=c
3036ac_cpp='$CPP $CPPFLAGS'
3037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003044$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003045if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003046 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003047else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003060 break 2
3061 fi
3062done
Lev Walkinaef10c32014-01-14 01:47:25 -08003063 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003064IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003065
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003071$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003072else
Lev Walkinaef10c32014-01-14 01:47:25 -08003073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003074$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003075fi
3076
Lev Walkin27fd0b62007-08-27 23:57:45 +00003077
Lev Walkinf15320b2004-06-03 03:38:44 +00003078fi
3079if test -z "$ac_cv_prog_CC"; then
3080 ac_ct_CC=$CC
3081 # Extract the first word of "gcc", so it can be a program name with args.
3082set dummy gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003084$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003085if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003086 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003087else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003098 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003100 break 2
3101 fi
3102done
Lev Walkinaef10c32014-01-14 01:47:25 -08003103 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003104IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003105
3106fi
3107fi
3108ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003111$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003112else
Lev Walkinaef10c32014-01-14 01:47:25 -08003113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003114$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003115fi
3116
Lev Walkin27fd0b62007-08-27 23:57:45 +00003117 if test "x$ac_ct_CC" = x; then
3118 CC=""
3119 else
3120 case $cross_compiling:$ac_tool_warned in
3121yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08003122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003124ac_tool_warned=yes ;;
3125esac
3126 CC=$ac_ct_CC
3127 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003128else
3129 CC="$ac_cv_prog_CC"
3130fi
3131
3132if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +00003135set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003137$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003138if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003139 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003140else
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3143else
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003151 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003153 break 2
3154 fi
3155done
Lev Walkinaef10c32014-01-14 01:47:25 -08003156 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003157IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003158
3159fi
3160fi
3161CC=$ac_cv_prog_CC
3162if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003164$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003165else
Lev Walkinaef10c32014-01-14 01:47:25 -08003166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003167$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003168fi
3169
Lev Walkin27fd0b62007-08-27 23:57:45 +00003170
Lev Walkinf15320b2004-06-03 03:38:44 +00003171 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003172fi
3173if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175set dummy cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003177$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003178if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003179 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003180else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184 ac_prog_rejected=no
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193 ac_prog_rejected=yes
3194 continue
3195 fi
3196 ac_cv_prog_CC="cc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003198 break 2
3199 fi
3200done
Lev Walkinaef10c32014-01-14 01:47:25 -08003201 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003202IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003203
3204if test $ac_prog_rejected = yes; then
3205 # We found a bogon in the path, so make sure we never use it.
3206 set dummy $ac_cv_prog_CC
3207 shift
3208 if test $# != 0; then
3209 # We chose a different compiler from the bogus one.
3210 # However, it has the same basename, so the bogon will be chosen
3211 # first if we set CC to just the basename; use the full file name.
3212 shift
3213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214 fi
3215fi
3216fi
3217fi
3218CC=$ac_cv_prog_CC
3219if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003221$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003222else
Lev Walkinaef10c32014-01-14 01:47:25 -08003223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003224$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003225fi
3226
Lev Walkin27fd0b62007-08-27 23:57:45 +00003227
Lev Walkinf15320b2004-06-03 03:38:44 +00003228fi
3229if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003231 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00003232 do
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003236$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003237if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003238 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003239else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08003251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003252 break 2
3253 fi
3254done
Lev Walkinaef10c32014-01-14 01:47:25 -08003255 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003256IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003263$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003264else
Lev Walkinaef10c32014-01-14 01:47:25 -08003265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003266$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003267fi
3268
Lev Walkin27fd0b62007-08-27 23:57:45 +00003269
Lev Walkinf15320b2004-06-03 03:38:44 +00003270 test -n "$CC" && break
3271 done
3272fi
3273if test -z "$CC"; then
3274 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +00003275 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00003276do
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003280$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003281if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003282 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003283else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003294 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08003295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003296 break 2
3297 fi
3298done
Lev Walkinaef10c32014-01-14 01:47:25 -08003299 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003300IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003301
3302fi
3303fi
3304ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003307$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003308else
Lev Walkinaef10c32014-01-14 01:47:25 -08003309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003310$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003311fi
3312
Lev Walkin27fd0b62007-08-27 23:57:45 +00003313
Lev Walkinf15320b2004-06-03 03:38:44 +00003314 test -n "$ac_ct_CC" && break
3315done
3316
Lev Walkin27fd0b62007-08-27 23:57:45 +00003317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08003322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003324ac_tool_warned=yes ;;
3325esac
3326 CC=$ac_ct_CC
3327 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003328fi
3329
3330fi
3331
3332
Lev Walkinaef10c32014-01-14 01:47:25 -08003333test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003335as_fn_error $? "no acceptable C compiler found in \$PATH
3336See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003337
3338# Provide some information about the compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -08003339$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003340set X $ac_compile
3341ac_compiler=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003342for ac_option in --version -v -V -qversion; do
3343 { { ac_try="$ac_compiler $ac_option >&5"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003344case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Lev Walkinf15320b2004-06-03 03:38:44 +00003351 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003352 if test -s conftest.err; then
3353 sed '10a\
3354... rest of stderr output deleted ...
3355 10q' conftest.err >conftest.er1
3356 cat conftest.er1 >&5
3357 fi
3358 rm -f conftest.er1 conftest.err
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361done
Lev Walkinf15320b2004-06-03 03:38:44 +00003362
Lev Walkinaef10c32014-01-14 01:47:25 -08003363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003364/* end confdefs.h. */
3365
3366int
3367main ()
3368{
3369
3370 ;
3371 return 0;
3372}
3373_ACEOF
3374ac_clean_files_save=$ac_clean_files
Lev Walkinb3751942012-09-02 19:36:47 -07003375ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Lev Walkinf15320b2004-06-03 03:38:44 +00003376# Try to create an executable without -o first, disregard a.out.
3377# It will help us diagnose broken compilers, and finding out an intuition
3378# of exeext.
Lev Walkinaef10c32014-01-14 01:47:25 -08003379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380$as_echo_n "checking whether the C compiler works... " >&6; }
Lev Walkinb3751942012-09-02 19:36:47 -07003381ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3382
3383# The possible output files:
3384ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3385
Lev Walkin27fd0b62007-08-27 23:57:45 +00003386ac_rmfiles=
3387for ac_file in $ac_files
3388do
3389 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3392 esac
3393done
3394rm -f $ac_rmfiles
3395
Lev Walkinaef10c32014-01-14 01:47:25 -08003396if { { ac_try="$ac_link_default"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003403 (eval "$ac_link_default") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003404 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3408# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3409# in a Makefile. We should not override ac_cv_exeext if it was cached,
3410# so that the user can short-circuit this test for compilers unknown to
3411# Autoconf.
Lev Walkin4c776e52010-11-08 02:07:31 -08003412for ac_file in $ac_files ''
Lev Walkinf15320b2004-06-03 03:38:44 +00003413do
3414 test -f "$ac_file" || continue
3415 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003417 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003418 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003419 # We found the default executable, but exeext='' is most
3420 # certainly right.
3421 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003422 *.* )
Lev Walkinaef10c32014-01-14 01:47:25 -08003423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003424 then :; else
3425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426 fi
3427 # We set ac_cv_exeext here because the later test for it is not
3428 # safe: cross compilers may not add the suffix if given an `-o'
3429 # argument, so we may need to know it at that point already.
3430 # Even if this section looks crufty: it has the advantage of
3431 # actually working.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003432 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003433 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003434 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003435 esac
3436done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003437test "$ac_cv_exeext" = no && ac_cv_exeext=
3438
Lev Walkinf15320b2004-06-03 03:38:44 +00003439else
Lev Walkin4c776e52010-11-08 02:07:31 -08003440 ac_file=''
3441fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003442if test -z "$ac_file"; then :
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445$as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003446sed 's/^/| /' conftest.$ac_ext >&5
3447
Lev Walkinaef10c32014-01-14 01:47:25 -08003448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003450as_fn_error 77 "C compiler cannot create executables
3451See \`config.log' for more details" "$LINENO" 5; }
3452else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003454$as_echo "yes" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003455fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3457$as_echo_n "checking for C compiler default output file name... " >&6; }
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3459$as_echo "$ac_file" >&6; }
3460ac_exeext=$ac_cv_exeext
Lev Walkinf15320b2004-06-03 03:38:44 +00003461
Lev Walkinb3751942012-09-02 19:36:47 -07003462rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Lev Walkinf15320b2004-06-03 03:38:44 +00003463ac_clean_files=$ac_clean_files_save
Lev Walkinaef10c32014-01-14 01:47:25 -08003464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003465$as_echo_n "checking for suffix of executables... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003466if { { ac_try="$ac_link"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003467case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003473 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003474 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3478# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3479# work properly (i.e., refer to `conftest.exe'), while it won't with
3480# `rm'.
3481for ac_file in conftest.exe conftest conftest.*; do
3482 test -f "$ac_file" || continue
3483 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00003486 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003487 * ) break;;
3488 esac
3489done
3490else
Lev Walkinaef10c32014-01-14 01:47:25 -08003491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003493as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3494See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003495fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003496rm -f conftest conftest$ac_cv_exeext
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003498$as_echo "$ac_cv_exeext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003499
3500rm -f conftest.$ac_ext
3501EXEEXT=$ac_cv_exeext
3502ac_exeext=$EXEEXT
Lev Walkinaef10c32014-01-14 01:47:25 -08003503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h. */
3505#include <stdio.h>
3506int
3507main ()
3508{
3509FILE *f = fopen ("conftest.out", "w");
3510 return ferror (f) || fclose (f) != 0;
3511
3512 ;
3513 return 0;
3514}
3515_ACEOF
3516ac_clean_files="$ac_clean_files conftest.out"
3517# Check that the compiler produces executables we can run. If not, either
3518# the compiler is broken, or we cross compile.
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3520$as_echo_n "checking whether we are cross compiling... " >&6; }
3521if test "$cross_compiling" != yes; then
3522 { { ac_try="$ac_link"
3523case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526esac
3527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528$as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_link") 2>&5
3530 ac_status=$?
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }
3533 if { ac_try='./conftest$ac_cv_exeext'
3534 { { case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537esac
3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539$as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_try") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; }; then
3544 cross_compiling=no
3545 else
3546 if test "$cross_compiling" = maybe; then
3547 cross_compiling=yes
3548 else
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551as_fn_error $? "cannot run C compiled programs.
3552If you meant to cross compile, use \`--host'.
3553See \`config.log' for more details" "$LINENO" 5; }
3554 fi
3555 fi
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3558$as_echo "$cross_compiling" >&6; }
3559
3560rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3561ac_clean_files=$ac_clean_files_save
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003563$as_echo_n "checking for suffix of object files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003564if ${ac_cv_objext+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003565 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003566else
Lev Walkinaef10c32014-01-14 01:47:25 -08003567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003568/* end confdefs.h. */
3569
3570int
3571main ()
3572{
3573
3574 ;
3575 return 0;
3576}
3577_ACEOF
3578rm -f conftest.o conftest.obj
Lev Walkinaef10c32014-01-14 01:47:25 -08003579if { { ac_try="$ac_compile"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003580case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003586 (eval "$ac_compile") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003587 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003590 for ac_file in conftest.o conftest.obj conftest.*; do
3591 test -f "$ac_file" || continue;
Lev Walkinf15320b2004-06-03 03:38:44 +00003592 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595 break;;
3596 esac
3597done
3598else
Lev Walkinb3751942012-09-02 19:36:47 -07003599 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003600sed 's/^/| /' conftest.$ac_ext >&5
3601
Lev Walkinaef10c32014-01-14 01:47:25 -08003602{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003604as_fn_error $? "cannot compute suffix of object files: cannot compile
3605See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003606fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003607rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003610$as_echo "$ac_cv_objext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003611OBJEXT=$ac_cv_objext
3612ac_objext=$OBJEXT
Lev Walkinaef10c32014-01-14 01:47:25 -08003613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003615if ${ac_cv_c_compiler_gnu+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003616 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003617else
Lev Walkinaef10c32014-01-14 01:47:25 -08003618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003619/* end confdefs.h. */
3620
3621int
3622main ()
3623{
3624#ifndef __GNUC__
3625 choke me
3626#endif
3627
3628 ;
3629 return 0;
3630}
3631_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003632if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003633 ac_compiler_gnu=yes
3634else
Lev Walkinaef10c32014-01-14 01:47:25 -08003635 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003636fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003638ac_cv_c_compiler_gnu=$ac_compiler_gnu
3639
3640fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003642$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3643if test $ac_compiler_gnu = yes; then
3644 GCC=yes
3645else
3646 GCC=
3647fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003648ac_test_CFLAGS=${CFLAGS+set}
3649ac_save_CFLAGS=$CFLAGS
Lev Walkinaef10c32014-01-14 01:47:25 -08003650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003651$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003652if ${ac_cv_prog_cc_g+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003653 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003654else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003655 ac_save_c_werror_flag=$ac_c_werror_flag
3656 ac_c_werror_flag=yes
3657 ac_cv_prog_cc_g=no
3658 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -08003659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003660/* end confdefs.h. */
3661
3662int
3663main ()
3664{
3665
3666 ;
3667 return 0;
3668}
3669_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003670if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003671 ac_cv_prog_cc_g=yes
3672else
Lev Walkinaef10c32014-01-14 01:47:25 -08003673 CFLAGS=""
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003675/* end confdefs.h. */
3676
3677int
3678main ()
3679{
3680
3681 ;
3682 return 0;
3683}
3684_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003685if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003686
Lev Walkinaef10c32014-01-14 01:47:25 -08003687else
3688 ac_c_werror_flag=$ac_save_c_werror_flag
Lev Walkin27fd0b62007-08-27 23:57:45 +00003689 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -08003690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003691/* end confdefs.h. */
3692
3693int
3694main ()
3695{
3696
3697 ;
3698 return 0;
3699}
3700_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003701if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003702 ac_cv_prog_cc_g=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00003703fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003705fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_c_werror_flag=$ac_save_c_werror_flag
3710fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003712$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003713if test "$ac_test_CFLAGS" = set; then
3714 CFLAGS=$ac_save_CFLAGS
3715elif test $ac_cv_prog_cc_g = yes; then
3716 if test "$GCC" = yes; then
3717 CFLAGS="-g -O2"
3718 else
3719 CFLAGS="-g"
3720 fi
3721else
3722 if test "$GCC" = yes; then
3723 CFLAGS="-O2"
3724 else
3725 CFLAGS=
3726 fi
3727fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003730if ${ac_cv_prog_cc_c89+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003731 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003732else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003733 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003734ac_save_CC=$CC
Lev Walkinaef10c32014-01-14 01:47:25 -08003735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003736/* end confdefs.h. */
3737#include <stdarg.h>
3738#include <stdio.h>
Lev Walkinaef10c32014-01-14 01:47:25 -08003739struct stat;
Lev Walkinf15320b2004-06-03 03:38:44 +00003740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3741struct buf { int x; };
3742FILE * (*rcsopen) (struct buf *, struct stat *, int);
3743static char *e (p, i)
3744 char **p;
3745 int i;
3746{
3747 return p[i];
3748}
3749static char *f (char * (*g) (char **, int), char **p, ...)
3750{
3751 char *s;
3752 va_list v;
3753 va_start (v,p);
3754 s = g (p, va_arg (v,int));
3755 va_end (v);
3756 return s;
3757}
Lev Walkin8e8b5482004-06-17 23:42:48 +00003758
3759/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3760 function prototypes and stuff, but not '\xHH' hex character constants.
3761 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +00003762 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +00003763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3764 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +00003765 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00003766int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3767
Lev Walkin27fd0b62007-08-27 23:57:45 +00003768/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3769 inside strings and character constants. */
3770#define FOO(x) 'x'
3771int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3772
Lev Walkinf15320b2004-06-03 03:38:44 +00003773int test (int i, double x);
3774struct s1 {int (*f) (int a);};
3775struct s2 {int (*f) (double a);};
3776int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3777int argc;
3778char **argv;
3779int
3780main ()
3781{
3782return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3783 ;
3784 return 0;
3785}
3786_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00003787for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +00003789do
3790 CC="$ac_save_CC $ac_arg"
Lev Walkinaef10c32014-01-14 01:47:25 -08003791 if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003792 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +00003793fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003794rm -f core conftest.err conftest.$ac_objext
3795 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +00003796done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003797rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003798CC=$ac_save_CC
3799
3800fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003801# AC_CACHE_VAL
3802case "x$ac_cv_prog_cc_c89" in
3803 x)
Lev Walkinaef10c32014-01-14 01:47:25 -08003804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003805$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003806 xno)
Lev Walkinaef10c32014-01-14 01:47:25 -08003807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003808$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003809 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00003810 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinaef10c32014-01-14 01:47:25 -08003811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003812$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003813esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003814if test "x$ac_cv_prog_cc_c89" != xno; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003815
Lev Walkinaef10c32014-01-14 01:47:25 -08003816fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003817
Lev Walkinf15320b2004-06-03 03:38:44 +00003818ac_ext=c
3819ac_cpp='$CPP $CPPFLAGS'
3820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823
3824depcc="$CC" am_compiler_list=
3825
Lev Walkinaef10c32014-01-14 01:47:25 -08003826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003827$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003828if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003829 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003830else
3831 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3832 # We make a subdir and do the tests there. Otherwise we can end up
3833 # making bogus files that we don't know about and never remove. For
3834 # instance it was reported that on HP-UX the gcc test will end up
3835 # making a dummy file named `D' -- because `-MD' means `put the output
3836 # in D'.
3837 mkdir conftest.dir
3838 # Copy depcomp to subdir because otherwise we won't find it if we're
3839 # using a relative directory.
3840 cp "$am_depcomp" conftest.dir
3841 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003842 # We will build objects and dependencies in a subdirectory because
3843 # it helps to detect inapplicable dependency modes. For instance
3844 # both Tru64's cc and ICC support -MD to output dependencies as a
3845 # side effect of compilation, but ICC will put the dependencies in
3846 # the current directory while Tru64 will put them in the object
3847 # directory.
3848 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003849
3850 am_cv_CC_dependencies_compiler_type=none
3851 if test "$am_compiler_list" = ""; then
3852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3853 fi
Lev Walkinb3751942012-09-02 19:36:47 -07003854 am__universal=false
3855 case " $depcc " in #(
3856 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3857 esac
3858
Lev Walkinf15320b2004-06-03 03:38:44 +00003859 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003860 # Setup a source with many dependencies, because some compilers
3861 # like to wrap large dependency lists on column 80 (with \), and
3862 # we should not choose a depcomp mode which is confused by this.
3863 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003864 # We need to recreate these files for each test, as the compiler may
3865 # overwrite some of them when testing with obscure command lines.
3866 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003867 : > sub/conftest.c
3868 for i in 1 2 3 4 5 6; do
3869 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3870 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3871 # Solaris 8's {/usr,}/bin/sh.
3872 touch sub/conftst$i.h
3873 done
3874 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003875
Lev Walkinb3751942012-09-02 19:36:47 -07003876 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3877 # mode. It turns out that the SunPro C++ compiler does not properly
3878 # handle `-M -o', and we need to detect this. Also, some Intel
3879 # versions had trouble with output in subdirs
3880 am__obj=sub/conftest.${OBJEXT-o}
3881 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +00003882 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -07003883 gcc)
3884 # This depmode causes a compiler race in universal mode.
3885 test "$am__universal" = false || continue
3886 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003887 nosideeffect)
3888 # after this tag, mechanisms are not by side-effect, so they'll
3889 # only be used when explicitly requested
3890 if test "x$enable_dependency_tracking" = xyes; then
3891 continue
3892 else
3893 break
3894 fi
3895 ;;
Lev Walkinb3751942012-09-02 19:36:47 -07003896 msvisualcpp | msvcmsys)
3897 # This compiler won't grok `-c -o', but also, the minuso test has
3898 # not run yet. These depmodes are late enough in the game, and
3899 # so weak that their functioning should not be impacted.
3900 am__obj=conftest.${OBJEXT-o}
3901 am__minus_obj=
3902 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003903 none) break ;;
3904 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003905 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -07003906 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003907 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -07003908 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003909 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -08003910 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003911 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -07003912 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003913 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003914 # icc doesn't choke on unknown options, it will just issue warnings
3915 # or remarks (even with -Werror). So we grep stderr for any message
3916 # that says an option was ignored or not supported.
3917 # When given -MP, icc 7.0 and 7.1 complain thusly:
3918 # icc: Command line warning: ignoring option '-M'; no argument required
3919 # The diagnosis changed in icc 8.0:
3920 # icc: Command line remark: option '-MP' not supported
3921 if (grep 'ignoring option' conftest.err ||
3922 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3923 am_cv_CC_dependencies_compiler_type=$depmode
3924 break
3925 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003926 fi
3927 done
3928
3929 cd ..
3930 rm -rf conftest.dir
3931else
3932 am_cv_CC_dependencies_compiler_type=none
3933fi
3934
3935fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003937$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003938CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3939
Lev Walkin4c776e52010-11-08 02:07:31 -08003940 if
Lev Walkin8e8b5482004-06-17 23:42:48 +00003941 test "x$enable_dependency_tracking" != xno \
3942 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3943 am__fastdepCC_TRUE=
3944 am__fastdepCC_FALSE='#'
3945else
3946 am__fastdepCC_TRUE='#'
3947 am__fastdepCC_FALSE=
3948fi
3949
3950
Lev Walkinaef10c32014-01-14 01:47:25 -08003951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003952$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003953if ${ac_cv_path_SED+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003954 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003955else
Lev Walkin4da95cf2010-10-16 02:46:32 -07003956 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3957 for ac_i in 1 2 3 4 5 6 7; do
3958 ac_script="$ac_script$as_nl$ac_script"
3959 done
Lev Walkinb3751942012-09-02 19:36:47 -07003960 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Lev Walkinaef10c32014-01-14 01:47:25 -08003961 { ac_script=; unset ac_script;}
Lev Walkinb3751942012-09-02 19:36:47 -07003962 if test -z "$SED"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07003963 ac_path_SED_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07003964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin8e8b5482004-06-17 23:42:48 +00003966for as_dir in $PATH
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003970 for ac_prog in sed gsed; do
Lev Walkinb3751942012-09-02 19:36:47 -07003971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08003973 as_fn_executable_p "$ac_path_SED" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07003974# Check for GNU ac_path_SED and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07003975 # Check for GNU $ac_path_SED
3976case `"$ac_path_SED" --version 2>&1` in
3977*GNU*)
3978 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3979*)
3980 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07003981 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003982 while :
3983 do
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07003987 $as_echo '' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003988 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08003990 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin4da95cf2010-10-16 02:46:32 -07003991 if test $ac_count -gt ${ac_path_SED_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_SED="$ac_path_SED"
3994 ac_path_SED_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003995 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3998 done
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000esac
4001
Lev Walkinb3751942012-09-02 19:36:47 -07004002 $ac_path_SED_found && break 3
4003 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004004 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004005 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004006IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004007 if test -z "$ac_cv_path_SED"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004008 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004009 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004010else
4011 ac_cv_path_SED=$SED
4012fi
4013
4014fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004016$as_echo "$ac_cv_path_SED" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004017 SED="$ac_cv_path_SED"
4018 rm -f conftest.sed
4019
4020test -z "$SED" && SED=sed
4021Xsed="$SED -e 1s/^X//"
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
Lev Walkin8e8b5482004-06-17 23:42:48 +00004032
Lev Walkinaef10c32014-01-14 01:47:25 -08004033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004034$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004035if ${ac_cv_path_GREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004036 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00004037else
Lev Walkinb3751942012-09-02 19:36:47 -07004038 if test -z "$GREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004039 ac_path_GREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004040 # Loop through the user's path and test for each of PROGNAME-LIST
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00004042for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004046 for ac_prog in grep ggrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004049 as_fn_executable_p "$ac_path_GREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004050# Check for GNU ac_path_GREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004051 # Check for GNU $ac_path_GREP
4052case `"$ac_path_GREP" --version 2>&1` in
4053*GNU*)
4054 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4055*)
4056 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004057 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004058 while :
4059 do
4060 cat "conftest.in" "conftest.in" >"conftest.tmp"
4061 mv "conftest.tmp" "conftest.in"
4062 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004063 $as_echo 'GREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004064 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004066 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin27fd0b62007-08-27 23:57:45 +00004067 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4068 # Best one so far, save it but keep looking for a better one
4069 ac_cv_path_GREP="$ac_path_GREP"
4070 ac_path_GREP_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00004071 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004072 # 10*(2^10) chars as input seems more than enough
4073 test $ac_count -gt 10 && break
4074 done
4075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4076esac
4077
Lev Walkinb3751942012-09-02 19:36:47 -07004078 $ac_path_GREP_found && break 3
4079 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004080 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004081 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004082IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004083 if test -z "$ac_cv_path_GREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004084 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004085 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004086else
4087 ac_cv_path_GREP=$GREP
4088fi
4089
Lev Walkin27fd0b62007-08-27 23:57:45 +00004090fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004092$as_echo "$ac_cv_path_GREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004093 GREP="$ac_cv_path_GREP"
4094
4095
Lev Walkinaef10c32014-01-14 01:47:25 -08004096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004097$as_echo_n "checking for egrep... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004098if ${ac_cv_path_EGREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004099 $as_echo_n "(cached) " >&6
Lev Walkin27fd0b62007-08-27 23:57:45 +00004100else
4101 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4102 then ac_cv_path_EGREP="$GREP -E"
4103 else
Lev Walkinb3751942012-09-02 19:36:47 -07004104 if test -z "$EGREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004105 ac_path_EGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004106 # Loop through the user's path and test for each of PROGNAME-LIST
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00004108for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004112 for ac_prog in egrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004115 as_fn_executable_p "$ac_path_EGREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004116# Check for GNU ac_path_EGREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004117 # Check for GNU $ac_path_EGREP
4118case `"$ac_path_EGREP" --version 2>&1` in
4119*GNU*)
4120 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4121*)
4122 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004123 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004124 while :
4125 do
4126 cat "conftest.in" "conftest.in" >"conftest.tmp"
4127 mv "conftest.tmp" "conftest.in"
4128 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004129 $as_echo 'EGREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004130 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004132 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin27fd0b62007-08-27 23:57:45 +00004133 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4134 # Best one so far, save it but keep looking for a better one
4135 ac_cv_path_EGREP="$ac_path_EGREP"
4136 ac_path_EGREP_max=$ac_count
4137 fi
4138 # 10*(2^10) chars as input seems more than enough
4139 test $ac_count -gt 10 && break
4140 done
4141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142esac
4143
Lev Walkinb3751942012-09-02 19:36:47 -07004144 $ac_path_EGREP_found && break 3
4145 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004146 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004147 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004148IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004149 if test -z "$ac_cv_path_EGREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004150 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004151 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004152else
4153 ac_cv_path_EGREP=$EGREP
4154fi
4155
Lev Walkin27fd0b62007-08-27 23:57:45 +00004156 fi
4157fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004159$as_echo "$ac_cv_path_EGREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004160 EGREP="$ac_cv_path_EGREP"
Lev Walkinf15320b2004-06-03 03:38:44 +00004161
4162
Lev Walkinaef10c32014-01-14 01:47:25 -08004163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004164$as_echo_n "checking for fgrep... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004165if ${ac_cv_path_FGREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004166 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004167else
4168 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4169 then ac_cv_path_FGREP="$GREP -F"
4170 else
Lev Walkinb3751942012-09-02 19:36:47 -07004171 if test -z "$FGREP"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004172 ac_path_FGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin4da95cf2010-10-16 02:46:32 -07004175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004179 for ac_prog in fgrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004182 as_fn_executable_p "$ac_path_FGREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004183# Check for GNU ac_path_FGREP and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07004184 # Check for GNU $ac_path_FGREP
4185case `"$ac_path_FGREP" --version 2>&1` in
4186*GNU*)
4187 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4188*)
4189 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004190 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004191 while :
4192 do
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004196 $as_echo 'FGREP' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004197 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004199 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin4da95cf2010-10-16 02:46:32 -07004200 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_FGREP="$ac_path_FGREP"
4203 ac_path_FGREP_max=$ac_count
4204 fi
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4207 done
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209esac
4210
Lev Walkinb3751942012-09-02 19:36:47 -07004211 $ac_path_FGREP_found && break 3
4212 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004213 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004214 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004215IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004216 if test -z "$ac_cv_path_FGREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004217 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004218 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004219else
4220 ac_cv_path_FGREP=$FGREP
4221fi
4222
Lev Walkin4da95cf2010-10-16 02:46:32 -07004223 fi
4224fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004226$as_echo "$ac_cv_path_FGREP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004227 FGREP="$ac_cv_path_FGREP"
4228
4229
4230test -z "$GREP" && GREP=grep
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
Lev Walkinf15320b2004-06-03 03:38:44 +00004249
Lev Walkin27fd0b62007-08-27 23:57:45 +00004250# Check whether --with-gnu-ld was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08004251if test "${with_gnu_ld+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00004252 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004253else
4254 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00004255fi
4256
Lev Walkinf15320b2004-06-03 03:38:44 +00004257ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00004258if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004259 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkinaef10c32014-01-14 01:47:25 -08004260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004261$as_echo_n "checking for ld used by $CC... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004262 case $host in
4263 *-*-mingw*)
4264 # gcc leaves a trailing carriage return which upsets mingw
4265 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4266 *)
4267 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4268 esac
4269 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00004270 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004271 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004272 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004273 # Canonicalize the pathname of ld
Lev Walkin4da95cf2010-10-16 02:46:32 -07004274 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4275 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4276 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00004277 done
4278 test -z "$LD" && LD="$ac_prog"
4279 ;;
4280 "")
4281 # If it fails, then pretend we aren't using GCC.
4282 ac_prog=ld
4283 ;;
4284 *)
4285 # If it is relative, then search for the first ld in PATH.
4286 with_gnu_ld=unknown
4287 ;;
4288 esac
4289elif test "$with_gnu_ld" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004291$as_echo_n "checking for GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004292else
Lev Walkinaef10c32014-01-14 01:47:25 -08004293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004294$as_echo_n "checking for non-GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004295fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004296if ${lt_cv_path_LD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004297 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004298else
4299 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004301 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004302 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004303 test -z "$ac_dir" && ac_dir=.
4304 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004305 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00004306 # Check to see if the program is GNU ld. I'd rather use --version,
Lev Walkinfbf1d282007-12-03 14:58:39 +00004307 # but apparently some variants of GNU ld only accept -v.
Lev Walkinf15320b2004-06-03 03:38:44 +00004308 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004309 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4310 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004311 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004312 ;;
4313 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00004314 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004315 ;;
4316 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004317 fi
4318 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004319 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004320else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004321 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00004322fi
4323fi
4324
Lev Walkin8e8b5482004-06-17 23:42:48 +00004325LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00004326if test -n "$LD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004328$as_echo "$LD" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004329else
Lev Walkinaef10c32014-01-14 01:47:25 -08004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004331$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004332fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004333test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004335$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004336if ${lt_cv_prog_gnu_ld+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004337 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004338else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004339 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004340case `$LD -v 2>&1 </dev/null` in
4341*GNU* | *'with BFD'*)
4342 lt_cv_prog_gnu_ld=yes
4343 ;;
4344*)
4345 lt_cv_prog_gnu_ld=no
4346 ;;
4347esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004348fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004350$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004351with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00004352
4353
Lev Walkin8e8b5482004-06-17 23:42:48 +00004354
Lev Walkin4da95cf2010-10-16 02:46:32 -07004355
4356
4357
4358
4359
4360
Lev Walkinaef10c32014-01-14 01:47:25 -08004361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004362$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004363if ${lt_cv_path_NM+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004364 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004365else
4366 if test -n "$NM"; then
4367 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004368 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004369else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004370 lt_nm_to_check="${ac_tool_prefix}nm"
4371 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4372 lt_nm_to_check="$lt_nm_to_check nm"
4373 fi
4374 for lt_tmp_nm in $lt_nm_to_check; do
4375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4376 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4377 IFS="$lt_save_ifs"
4378 test -z "$ac_dir" && ac_dir=.
4379 tmp_nm="$ac_dir/$lt_tmp_nm"
4380 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4381 # Check to see if the nm accepts a BSD-compat flag.
4382 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4383 # nm: unknown option "B" ignored
4384 # Tru64's nm complains that /dev/null is an invalid object file
4385 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4386 */dev/null* | *'Invalid file or object type'*)
4387 lt_cv_path_NM="$tmp_nm -B"
Lev Walkin8e8b5482004-06-17 23:42:48 +00004388 break
4389 ;;
4390 *)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004391 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4392 */dev/null*)
4393 lt_cv_path_NM="$tmp_nm -p"
4394 break
4395 ;;
4396 *)
4397 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4398 continue # so that we can try to find one that supports BSD flags
4399 ;;
4400 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00004401 ;;
4402 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +00004403 fi
4404 done
4405 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004406 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004407 : ${lt_cv_path_NM=no}
Lev Walkinf15320b2004-06-03 03:38:44 +00004408fi
4409fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004411$as_echo "$lt_cv_path_NM" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004412if test "$lt_cv_path_NM" != "no"; then
4413 NM="$lt_cv_path_NM"
4414else
4415 # Didn't find any BSD compatible name lister, look for dumpbin.
Lev Walkinaef10c32014-01-14 01:47:25 -08004416 if test -n "$DUMPBIN"; then :
4417 # Let the user override the test.
4418 else
4419 if test -n "$ac_tool_prefix"; then
4420 for ac_prog in dumpbin "link -dump"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004421 do
4422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4423set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08004424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004425$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004426if ${ac_cv_prog_DUMPBIN+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004427 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004428else
4429 if test -n "$DUMPBIN"; then
4430 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004439 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08004440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004441 break 2
4442 fi
4443done
Lev Walkinaef10c32014-01-14 01:47:25 -08004444 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004445IFS=$as_save_IFS
4446
4447fi
4448fi
4449DUMPBIN=$ac_cv_prog_DUMPBIN
4450if test -n "$DUMPBIN"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004452$as_echo "$DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004453else
Lev Walkinaef10c32014-01-14 01:47:25 -08004454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004455$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004456fi
4457
4458
4459 test -n "$DUMPBIN" && break
4460 done
4461fi
4462if test -z "$DUMPBIN"; then
4463 ac_ct_DUMPBIN=$DUMPBIN
Lev Walkinaef10c32014-01-14 01:47:25 -08004464 for ac_prog in dumpbin "link -dump"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004465do
4466 # Extract the first word of "$ac_prog", so it can be a program name with args.
4467set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08004468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004469$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004470if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004471 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004472else
4473 if test -n "$ac_ct_DUMPBIN"; then
4474 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4475else
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004483 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08004484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004485 break 2
4486 fi
4487done
Lev Walkinaef10c32014-01-14 01:47:25 -08004488 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004489IFS=$as_save_IFS
4490
4491fi
4492fi
4493ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4494if test -n "$ac_ct_DUMPBIN"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004496$as_echo "$ac_ct_DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004497else
Lev Walkinaef10c32014-01-14 01:47:25 -08004498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004499$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004500fi
4501
4502
4503 test -n "$ac_ct_DUMPBIN" && break
4504done
4505
4506 if test "x$ac_ct_DUMPBIN" = x; then
4507 DUMPBIN=":"
4508 else
4509 case $cross_compiling:$ac_tool_warned in
4510yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08004511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07004513ac_tool_warned=yes ;;
4514esac
4515 DUMPBIN=$ac_ct_DUMPBIN
4516 fi
4517fi
4518
Lev Walkinaef10c32014-01-14 01:47:25 -08004519 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4520 *COFF*)
4521 DUMPBIN="$DUMPBIN -symbols"
4522 ;;
4523 *)
4524 DUMPBIN=:
4525 ;;
4526 esac
4527 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004528
4529 if test "$DUMPBIN" != ":"; then
4530 NM="$DUMPBIN"
4531 fi
4532fi
4533test -z "$NM" && NM=nm
4534
4535
4536
4537
4538
4539
Lev Walkinaef10c32014-01-14 01:47:25 -08004540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004541$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004542if ${lt_cv_nm_interface+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004543 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004544else
4545 lt_cv_nm_interface="BSD nm"
4546 echo "int some_variable = 0;" > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08004547 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004548 (eval "$ac_compile" 2>conftest.err)
4549 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08004550 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004551 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4552 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08004553 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004554 cat conftest.out >&5
4555 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4556 lt_cv_nm_interface="MS dumpbin"
4557 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004558 rm -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07004559fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004561$as_echo "$lt_cv_nm_interface" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004562
Lev Walkinaef10c32014-01-14 01:47:25 -08004563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004564$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004565LN_S=$as_ln_s
4566if test "$LN_S" = "ln -s"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004568$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004569else
Lev Walkinaef10c32014-01-14 01:47:25 -08004570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004571$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004572fi
4573
Lev Walkin4da95cf2010-10-16 02:46:32 -07004574# find the maximum length of command line arguments
Lev Walkinaef10c32014-01-14 01:47:25 -08004575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004576$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004577if ${lt_cv_sys_max_cmd_len+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004578 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004579else
4580 i=0
4581 teststring="ABCD"
4582
4583 case $build_os in
4584 msdosdjgpp*)
4585 # On DJGPP, this test can blow up pretty badly due to problems in libc
4586 # (any single argument exceeding 2000 bytes causes a buffer overrun
4587 # during glob expansion). Even if it were fixed, the result of this
4588 # check would be larger than it should be.
4589 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4590 ;;
4591
4592 gnu*)
4593 # Under GNU Hurd, this test is not required because there is
4594 # no limit to the length of command line arguments.
4595 # Libtool will interpret -1 as no limit whatsoever
4596 lt_cv_sys_max_cmd_len=-1;
4597 ;;
4598
Lev Walkinaef10c32014-01-14 01:47:25 -08004599 cygwin* | mingw* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004600 # On Win9x/ME, this test blows up -- it succeeds, but takes
4601 # about 5 minutes as the teststring grows exponentially.
4602 # Worse, since 9x/ME are not pre-emptively multitasking,
4603 # you end up with a "frozen" computer, even though with patience
4604 # the test eventually succeeds (with a max line length of 256k).
4605 # Instead, let's just punt: use the minimum linelength reported by
4606 # all of the supported platforms: 8192 (on NT/2K/XP).
4607 lt_cv_sys_max_cmd_len=8192;
4608 ;;
4609
Lev Walkinaef10c32014-01-14 01:47:25 -08004610 mint*)
4611 # On MiNT this can take a long time and run out of memory.
4612 lt_cv_sys_max_cmd_len=8192;
4613 ;;
4614
Lev Walkin4da95cf2010-10-16 02:46:32 -07004615 amigaos*)
4616 # On AmigaOS with pdksh, this test takes hours, literally.
4617 # So we just punt and use a minimum line length of 8192.
4618 lt_cv_sys_max_cmd_len=8192;
4619 ;;
4620
4621 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4622 # This has been around since 386BSD, at least. Likely further.
4623 if test -x /sbin/sysctl; then
4624 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4625 elif test -x /usr/sbin/sysctl; then
4626 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4627 else
4628 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4629 fi
4630 # And add a safety zone
4631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4633 ;;
4634
4635 interix*)
4636 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4637 lt_cv_sys_max_cmd_len=196608
4638 ;;
4639
4640 osf*)
4641 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4642 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4643 # nice to cause kernel panics so lets avoid the loop below.
4644 # First set a reasonable default.
4645 lt_cv_sys_max_cmd_len=16384
4646 #
4647 if test -x /sbin/sysconfig; then
4648 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4649 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4650 esac
4651 fi
4652 ;;
4653 sco3.2v5*)
4654 lt_cv_sys_max_cmd_len=102400
4655 ;;
4656 sysv5* | sco5v6* | sysv4.2uw2*)
4657 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4658 if test -n "$kargmax"; then
4659 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4660 else
4661 lt_cv_sys_max_cmd_len=32768
4662 fi
4663 ;;
4664 *)
4665 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4666 if test -n "$lt_cv_sys_max_cmd_len"; then
4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4669 else
4670 # Make teststring a little bigger before we do anything with it.
4671 # a 1K string should be a reasonable start.
4672 for i in 1 2 3 4 5 6 7 8 ; do
4673 teststring=$teststring$teststring
4674 done
4675 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4676 # If test is not a shell built-in, we'll probably end up computing a
4677 # maximum length that is only half of the actual maximum length, but
4678 # we can't tell.
Lev Walkinaef10c32014-01-14 01:47:25 -08004679 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4680 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Lev Walkin4da95cf2010-10-16 02:46:32 -07004681 test $i != 17 # 1/2 MB should be enough
4682 do
4683 i=`expr $i + 1`
4684 teststring=$teststring$teststring
4685 done
4686 # Only check the string length outside the loop.
4687 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4688 teststring=
4689 # Add a significant safety factor because C++ compilers can tack on
4690 # massive amounts of additional arguments before passing them to the
4691 # linker. It appears as though 1/2 is a usable value.
4692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4693 fi
4694 ;;
4695 esac
4696
4697fi
4698
4699if test -n $lt_cv_sys_max_cmd_len ; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004701$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004702else
Lev Walkinaef10c32014-01-14 01:47:25 -08004703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004704$as_echo "none" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004705fi
4706max_cmd_len=$lt_cv_sys_max_cmd_len
4707
4708
4709
4710
4711
4712
4713: ${CP="cp -f"}
4714: ${MV="mv -f"}
4715: ${RM="rm -f"}
4716
Lev Walkinaef10c32014-01-14 01:47:25 -08004717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004718$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004719# Try some XSI features
4720xsi_shell=no
4721( _lt_dummy="a/b/c"
Lev Walkinaef10c32014-01-14 01:47:25 -08004722 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4723 = c,a/b,b/c, \
Lev Walkin4da95cf2010-10-16 02:46:32 -07004724 && eval 'test $(( 1 + 1 )) -eq 2 \
4725 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4726 && xsi_shell=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08004727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004728$as_echo "$xsi_shell" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004729
4730
Lev Walkinaef10c32014-01-14 01:47:25 -08004731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004732$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004733lt_shell_append=no
4734( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4735 >/dev/null 2>&1 \
4736 && lt_shell_append=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08004737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004738$as_echo "$lt_shell_append" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004739
4740
4741if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4742 lt_unset=unset
4743else
4744 lt_unset=false
4745fi
4746
4747
4748
4749
4750
4751# test EBCDIC or ASCII
4752case `echo X|tr X '\101'` in
4753 A) # ASCII based system
4754 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4755 lt_SP2NL='tr \040 \012'
4756 lt_NL2SP='tr \015\012 \040\040'
4757 ;;
4758 *) # EBCDIC based system
4759 lt_SP2NL='tr \100 \n'
4760 lt_NL2SP='tr \r\n \100\100'
4761 ;;
4762esac
4763
4764
4765
4766
4767
4768
4769
4770
4771
Lev Walkinaef10c32014-01-14 01:47:25 -08004772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4773$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4774if ${lt_cv_to_host_file_cmd+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776else
4777 case $host in
4778 *-*-mingw* )
4779 case $build in
4780 *-*-mingw* ) # actually msys
4781 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4782 ;;
4783 *-*-cygwin* )
4784 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4785 ;;
4786 * ) # otherwise, assume *nix
4787 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4788 ;;
4789 esac
4790 ;;
4791 *-*-cygwin* )
4792 case $build in
4793 *-*-mingw* ) # actually msys
4794 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4795 ;;
4796 *-*-cygwin* )
4797 lt_cv_to_host_file_cmd=func_convert_file_noop
4798 ;;
4799 * ) # otherwise, assume *nix
4800 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4801 ;;
4802 esac
4803 ;;
4804 * ) # unhandled hosts (and "normal" native builds)
4805 lt_cv_to_host_file_cmd=func_convert_file_noop
4806 ;;
4807esac
4808
4809fi
4810
4811to_host_file_cmd=$lt_cv_to_host_file_cmd
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4813$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4814
4815
4816
4817
4818
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4820$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4821if ${lt_cv_to_tool_file_cmd+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823else
4824 #assume ordinary cross tools, or native build.
4825lt_cv_to_tool_file_cmd=func_convert_file_noop
4826case $host in
4827 *-*-mingw* )
4828 case $build in
4829 *-*-mingw* ) # actually msys
4830 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4831 ;;
4832 esac
4833 ;;
4834esac
4835
4836fi
4837
4838to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4840$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4841
4842
4843
4844
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004847$as_echo_n "checking for $LD option to reload object files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004848if ${lt_cv_ld_reload_flag+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004849 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004850else
4851 lt_cv_ld_reload_flag='-r'
4852fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004854$as_echo "$lt_cv_ld_reload_flag" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004855reload_flag=$lt_cv_ld_reload_flag
4856case $reload_flag in
4857"" | " "*) ;;
4858*) reload_flag=" $reload_flag" ;;
4859esac
4860reload_cmds='$LD$reload_flag -o $output$reload_objs'
4861case $host_os in
Lev Walkinaef10c32014-01-14 01:47:25 -08004862 cygwin* | mingw* | pw32* | cegcc*)
4863 if test "$GCC" != yes; then
4864 reload_cmds=false
4865 fi
4866 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07004867 darwin*)
4868 if test "$GCC" = yes; then
4869 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4870 else
4871 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4872 fi
4873 ;;
4874esac
4875
4876
4877
4878
4879
4880
4881
4882
4883
Lev Walkinaef10c32014-01-14 01:47:25 -08004884if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4886set dummy ${ac_tool_prefix}objdump; ac_word=$2
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888$as_echo_n "checking for $ac_word... " >&6; }
4889if ${ac_cv_prog_OBJDUMP+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891else
4892 if test -n "$OBJDUMP"; then
4893 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906done
4907 done
4908IFS=$as_save_IFS
Lev Walkin4da95cf2010-10-16 02:46:32 -07004909
Lev Walkinaef10c32014-01-14 01:47:25 -08004910fi
4911fi
4912OBJDUMP=$ac_cv_prog_OBJDUMP
4913if test -n "$OBJDUMP"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4915$as_echo "$OBJDUMP" >&6; }
4916else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
4919fi
4920
4921
4922fi
4923if test -z "$ac_cv_prog_OBJDUMP"; then
4924 ac_ct_OBJDUMP=$OBJDUMP
4925 # Extract the first word of "objdump", so it can be a program name with args.
4926set dummy objdump; ac_word=$2
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928$as_echo_n "checking for $ac_word... " >&6; }
4929if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931else
4932 if test -n "$ac_ct_OBJDUMP"; then
4933 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4934else
4935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4945 fi
4946done
4947 done
4948IFS=$as_save_IFS
4949
4950fi
4951fi
4952ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4953if test -n "$ac_ct_OBJDUMP"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4955$as_echo "$ac_ct_OBJDUMP" >&6; }
4956else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
4959fi
4960
4961 if test "x$ac_ct_OBJDUMP" = x; then
4962 OBJDUMP="false"
4963 else
4964 case $cross_compiling:$ac_tool_warned in
4965yes:)
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968ac_tool_warned=yes ;;
4969esac
4970 OBJDUMP=$ac_ct_OBJDUMP
4971 fi
4972else
4973 OBJDUMP="$ac_cv_prog_OBJDUMP"
4974fi
4975
4976test -z "$OBJDUMP" && OBJDUMP=objdump
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004987$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004988if ${lt_cv_deplibs_check_method+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004989 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00004990else
4991 lt_cv_file_magic_cmd='$MAGIC_CMD'
4992lt_cv_file_magic_test_file=
4993lt_cv_deplibs_check_method='unknown'
4994# Need to set the preceding variable on all platforms that support
4995# interlibrary dependencies.
4996# 'none' -- dependencies not supported.
4997# `unknown' -- same as none, but documents that we really don't know.
4998# 'pass_all' -- all dependencies passed with no checks.
4999# 'test_compile' -- check by making test program.
5000# 'file_magic [[regex]]' -- check by looking for files in library path
5001# which responds to the $file_magic_cmd with a given extended regex.
5002# If you have `file' or equivalent on your system and you're not sure
5003# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00005004
Lev Walkin8e8b5482004-06-17 23:42:48 +00005005case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07005006aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005007 lt_cv_deplibs_check_method=pass_all
5008 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00005009
Lev Walkin8e8b5482004-06-17 23:42:48 +00005010beos*)
5011 lt_cv_deplibs_check_method=pass_all
5012 ;;
5013
Lev Walkinfbf1d282007-12-03 14:58:39 +00005014bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5016 lt_cv_file_magic_cmd='/usr/bin/file -L'
5017 lt_cv_file_magic_test_file=/shlib/libc.so
5018 ;;
5019
5020cygwin*)
5021 # func_win32_libid is a shell function defined in ltmain.sh
5022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5023 lt_cv_file_magic_cmd='func_win32_libid'
5024 ;;
5025
5026mingw* | pw32*)
5027 # Base MSYS/MinGW do not provide the 'file' command needed by
Lev Walkin4da95cf2010-10-16 02:46:32 -07005028 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5029 # unless we find 'file', for example because we are cross-compiling.
Lev Walkinaef10c32014-01-14 01:47:25 -08005030 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5031 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5033 lt_cv_file_magic_cmd='func_win32_libid'
5034 else
Lev Walkinaef10c32014-01-14 01:47:25 -08005035 # Keep this pattern in sync with the one in func_win32_libid.
5036 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Lev Walkin4da95cf2010-10-16 02:46:32 -07005037 lt_cv_file_magic_cmd='$OBJDUMP -f'
5038 fi
5039 ;;
5040
Lev Walkinaef10c32014-01-14 01:47:25 -08005041cegcc*)
5042 # use the weaker test based on 'objdump'. See mingw*.
5043 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5044 lt_cv_file_magic_cmd='$OBJDUMP -f'
5045 ;;
5046
Lev Walkin8e8b5482004-06-17 23:42:48 +00005047darwin* | rhapsody*)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
5050
Lev Walkin4da95cf2010-10-16 02:46:32 -07005051freebsd* | dragonfly*)
5052 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005053 case $host_cpu in
5054 i*86 )
5055 # Not sure whether the presence of OpenBSD here was a mistake.
5056 # Let's accept both of them until this is cleared up.
Lev Walkinfbf1d282007-12-03 14:58:39 +00005057 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005058 lt_cv_file_magic_cmd=/usr/bin/file
5059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5060 ;;
5061 esac
5062 else
5063 lt_cv_deplibs_check_method=pass_all
5064 fi
5065 ;;
5066
5067gnu*)
5068 lt_cv_deplibs_check_method=pass_all
5069 ;;
5070
Lev Walkinaef10c32014-01-14 01:47:25 -08005071haiku*)
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
5074
Lev Walkin8e8b5482004-06-17 23:42:48 +00005075hpux10.20* | hpux11*)
5076 lt_cv_file_magic_cmd=/usr/bin/file
Lev Walkinfbf1d282007-12-03 14:58:39 +00005077 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00005078 ia64*)
5079 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5080 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5081 ;;
5082 hppa*64*)
Lev Walkinaef10c32014-01-14 01:47:25 -08005083 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]'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005084 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5085 ;;
5086 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08005087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005088 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5089 ;;
5090 esac
5091 ;;
5092
Lev Walkin4da95cf2010-10-16 02:46:32 -07005093interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00005094 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5096 ;;
5097
Lev Walkin8e8b5482004-06-17 23:42:48 +00005098irix5* | irix6* | nonstopux*)
5099 case $LD in
5100 *-32|*"-32 ") libmagic=32-bit;;
5101 *-n32|*"-n32 ") libmagic=N32;;
5102 *-64|*"-64 ") libmagic=64-bit;;
5103 *) libmagic=never-match;;
5104 esac
5105 lt_cv_deplibs_check_method=pass_all
5106 ;;
5107
5108# This must be Linux ELF.
Lev Walkinaef10c32014-01-14 01:47:25 -08005109linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005110 lt_cv_deplibs_check_method=pass_all
5111 ;;
5112
5113netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005114 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5116 else
5117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5118 fi
5119 ;;
5120
5121newos6*)
5122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5123 lt_cv_file_magic_cmd=/usr/bin/file
5124 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5125 ;;
5126
Lev Walkin4da95cf2010-10-16 02:46:32 -07005127*nto* | *qnx*)
5128 lt_cv_deplibs_check_method=pass_all
Lev Walkin8e8b5482004-06-17 23:42:48 +00005129 ;;
5130
5131openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00005133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005134 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00005135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005136 fi
5137 ;;
5138
5139osf3* | osf4* | osf5*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142
Lev Walkin4da95cf2010-10-16 02:46:32 -07005143rdos*)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146
Lev Walkin8e8b5482004-06-17 23:42:48 +00005147solaris*)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
Lev Walkin4da95cf2010-10-16 02:46:32 -07005151sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154
Lev Walkinfbf1d282007-12-03 14:58:39 +00005155sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005156 case $host_vendor in
5157 motorola)
5158 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]'
5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5160 ;;
5161 ncr)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164 sequent)
5165 lt_cv_file_magic_cmd='/bin/file'
5166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5167 ;;
5168 sni)
5169 lt_cv_file_magic_cmd='/bin/file'
5170 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5171 lt_cv_file_magic_test_file=/lib/libc.so
5172 ;;
5173 siemens)
5174 lt_cv_deplibs_check_method=pass_all
5175 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005176 pc)
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005179 esac
5180 ;;
5181
Lev Walkin4da95cf2010-10-16 02:46:32 -07005182tpf*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005183 lt_cv_deplibs_check_method=pass_all
5184 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00005185esac
5186
Lev Walkin8e8b5482004-06-17 23:42:48 +00005187fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005189$as_echo "$lt_cv_deplibs_check_method" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005190
5191file_magic_glob=
5192want_nocaseglob=no
5193if test "$build" = "$host"; then
5194 case $host_os in
5195 mingw* | pw32*)
5196 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5197 want_nocaseglob=yes
5198 else
5199 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5200 fi
5201 ;;
5202 esac
5203fi
5204
Lev Walkin8e8b5482004-06-17 23:42:48 +00005205file_magic_cmd=$lt_cv_file_magic_cmd
5206deplibs_check_method=$lt_cv_deplibs_check_method
5207test -z "$deplibs_check_method" && deplibs_check_method=unknown
5208
5209
5210
5211
Lev Walkin4da95cf2010-10-16 02:46:32 -07005212
5213
5214
5215
5216
5217
5218
5219
Lev Walkinaef10c32014-01-14 01:47:25 -08005220
5221
5222
5223
5224
5225
5226
5227
5228
5229
Lev Walkin4da95cf2010-10-16 02:46:32 -07005230if test -n "$ac_tool_prefix"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005231 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5232set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005234$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005235if ${ac_cv_prog_DLLTOOL+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237else
5238 if test -n "$DLLTOOL"; then
5239 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252done
5253 done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258DLLTOOL=$ac_cv_prog_DLLTOOL
5259if test -n "$DLLTOOL"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5261$as_echo "$DLLTOOL" >&6; }
5262else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267
5268fi
5269if test -z "$ac_cv_prog_DLLTOOL"; then
5270 ac_ct_DLLTOOL=$DLLTOOL
5271 # Extract the first word of "dlltool", so it can be a program name with args.
5272set dummy dlltool; ac_word=$2
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274$as_echo_n "checking for $ac_word... " >&6; }
5275if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277else
5278 if test -n "$ac_ct_DLLTOOL"; then
5279 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5280else
5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH
5283do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292done
5293 done
5294IFS=$as_save_IFS
5295
5296fi
5297fi
5298ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5299if test -n "$ac_ct_DLLTOOL"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5301$as_echo "$ac_ct_DLLTOOL" >&6; }
5302else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304$as_echo "no" >&6; }
5305fi
5306
5307 if test "x$ac_ct_DLLTOOL" = x; then
5308 DLLTOOL="false"
5309 else
5310 case $cross_compiling:$ac_tool_warned in
5311yes:)
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314ac_tool_warned=yes ;;
5315esac
5316 DLLTOOL=$ac_ct_DLLTOOL
5317 fi
5318else
5319 DLLTOOL="$ac_cv_prog_DLLTOOL"
5320fi
5321
5322test -z "$DLLTOOL" && DLLTOOL=dlltool
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5334$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5335if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337else
5338 lt_cv_sharedlib_from_linklib_cmd='unknown'
5339
5340case $host_os in
5341cygwin* | mingw* | pw32* | cegcc*)
5342 # two different shell functions defined in ltmain.sh
5343 # decide which to use based on capabilities of $DLLTOOL
5344 case `$DLLTOOL --help 2>&1` in
5345 *--identify-strict*)
5346 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5347 ;;
5348 *)
5349 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5350 ;;
5351 esac
5352 ;;
5353*)
5354 # fallback: assume linklib IS sharedlib
5355 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5356 ;;
5357esac
5358
5359fi
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5361$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5362sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5363test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5364
5365
5366
5367
5368
5369
5370
5371
5372if test -n "$ac_tool_prefix"; then
5373 for ac_prog in ar
5374 do
5375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5376set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378$as_echo_n "checking for $ac_word... " >&6; }
5379if ${ac_cv_prog_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005380 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005381else
5382 if test -n "$AR"; then
5383 ac_cv_prog_AR="$AR" # Let the user override the test.
5384else
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005394 break 2
5395 fi
5396done
Lev Walkinaef10c32014-01-14 01:47:25 -08005397 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005398IFS=$as_save_IFS
5399
5400fi
5401fi
5402AR=$ac_cv_prog_AR
5403if test -n "$AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005405$as_echo "$AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005406else
Lev Walkinaef10c32014-01-14 01:47:25 -08005407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005408$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005409fi
5410
5411
Lev Walkinaef10c32014-01-14 01:47:25 -08005412 test -n "$AR" && break
5413 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005414fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005415if test -z "$AR"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005416 ac_ct_AR=$AR
Lev Walkinaef10c32014-01-14 01:47:25 -08005417 for ac_prog in ar
5418do
5419 # Extract the first word of "$ac_prog", so it can be a program name with args.
5420set dummy $ac_prog; ac_word=$2
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005422$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005423if ${ac_cv_prog_ac_ct_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005424 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005425else
5426 if test -n "$ac_ct_AR"; then
5427 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5428else
5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_ac_ct_AR="$ac_prog"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005438 break 2
5439 fi
5440done
Lev Walkinaef10c32014-01-14 01:47:25 -08005441 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005442IFS=$as_save_IFS
5443
5444fi
5445fi
5446ac_ct_AR=$ac_cv_prog_ac_ct_AR
5447if test -n "$ac_ct_AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005449$as_echo "$ac_ct_AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005450else
Lev Walkinaef10c32014-01-14 01:47:25 -08005451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005452$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005453fi
5454
Lev Walkinaef10c32014-01-14 01:47:25 -08005455
5456 test -n "$ac_ct_AR" && break
5457done
5458
Lev Walkin4da95cf2010-10-16 02:46:32 -07005459 if test "x$ac_ct_AR" = x; then
5460 AR="false"
5461 else
5462 case $cross_compiling:$ac_tool_warned in
5463yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005466ac_tool_warned=yes ;;
5467esac
5468 AR=$ac_ct_AR
5469 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07005470fi
5471
Lev Walkinaef10c32014-01-14 01:47:25 -08005472: ${AR=ar}
5473: ${AR_FLAGS=cru}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005474
Lev Walkin4da95cf2010-10-16 02:46:32 -07005475
Lev Walkin4c776e52010-11-08 02:07:31 -08005476
5477
Lev Walkin4da95cf2010-10-16 02:46:32 -07005478
5479
5480
5481
5482
5483
5484
Lev Walkinaef10c32014-01-14 01:47:25 -08005485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5486$as_echo_n "checking for archiver @FILE support... " >&6; }
5487if ${lt_cv_ar_at_file+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489else
5490 lt_cv_ar_at_file=no
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h. */
5493
5494int
5495main ()
5496{
5497
5498 ;
5499 return 0;
5500}
5501_ACEOF
5502if ac_fn_c_try_compile "$LINENO"; then :
5503 echo conftest.$ac_objext > conftest.lst
5504 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5506 (eval $lt_ar_try) 2>&5
5507 ac_status=$?
5508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5509 test $ac_status = 0; }
5510 if test "$ac_status" -eq 0; then
5511 # Ensure the archiver fails upon bogus file names.
5512 rm -f conftest.$ac_objext libconftest.a
5513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5514 (eval $lt_ar_try) 2>&5
5515 ac_status=$?
5516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5517 test $ac_status = 0; }
5518 if test "$ac_status" -ne 0; then
5519 lt_cv_ar_at_file=@
5520 fi
5521 fi
5522 rm -f conftest.* libconftest.a
5523
5524fi
5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526
5527fi
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5529$as_echo "$lt_cv_ar_at_file" >&6; }
5530
5531if test "x$lt_cv_ar_at_file" = xno; then
5532 archiver_list_spec=
5533else
5534 archiver_list_spec=$lt_cv_ar_at_file
5535fi
5536
5537
5538
5539
5540
5541
5542
Lev Walkin4da95cf2010-10-16 02:46:32 -07005543if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5545set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005547$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005548if ${ac_cv_prog_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005549 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005550else
5551 if test -n "$STRIP"; then
5552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08005562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005563 break 2
5564 fi
5565done
Lev Walkinaef10c32014-01-14 01:47:25 -08005566 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005567IFS=$as_save_IFS
5568
5569fi
5570fi
5571STRIP=$ac_cv_prog_STRIP
5572if test -n "$STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005574$as_echo "$STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005575else
Lev Walkinaef10c32014-01-14 01:47:25 -08005576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005577$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005578fi
5579
5580
5581fi
5582if test -z "$ac_cv_prog_STRIP"; then
5583 ac_ct_STRIP=$STRIP
5584 # Extract the first word of "strip", so it can be a program name with args.
5585set dummy strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005587$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005588if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005589 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005590else
5591 if test -n "$ac_ct_STRIP"; then
5592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5593else
5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005601 ac_cv_prog_ac_ct_STRIP="strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08005602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005603 break 2
5604 fi
5605done
Lev Walkinaef10c32014-01-14 01:47:25 -08005606 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005607IFS=$as_save_IFS
5608
5609fi
5610fi
5611ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5612if test -n "$ac_ct_STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005614$as_echo "$ac_ct_STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005615else
Lev Walkinaef10c32014-01-14 01:47:25 -08005616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005617$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005618fi
5619
5620 if test "x$ac_ct_STRIP" = x; then
5621 STRIP=":"
5622 else
5623 case $cross_compiling:$ac_tool_warned in
5624yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005627ac_tool_warned=yes ;;
5628esac
5629 STRIP=$ac_ct_STRIP
5630 fi
5631else
5632 STRIP="$ac_cv_prog_STRIP"
5633fi
5634
5635test -z "$STRIP" && STRIP=:
5636
5637
5638
5639
5640
5641
5642if test -n "$ac_tool_prefix"; then
5643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5644set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005646$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005647if ${ac_cv_prog_RANLIB+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005648 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005649else
5650 if test -n "$RANLIB"; then
5651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Lev Walkinaef10c32014-01-14 01:47:25 -08005661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005662 break 2
5663 fi
5664done
Lev Walkinaef10c32014-01-14 01:47:25 -08005665 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005666IFS=$as_save_IFS
5667
5668fi
5669fi
5670RANLIB=$ac_cv_prog_RANLIB
5671if test -n "$RANLIB"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005673$as_echo "$RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005674else
Lev Walkinaef10c32014-01-14 01:47:25 -08005675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005676$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005677fi
5678
5679
5680fi
5681if test -z "$ac_cv_prog_RANLIB"; then
5682 ac_ct_RANLIB=$RANLIB
5683 # Extract the first word of "ranlib", so it can be a program name with args.
5684set dummy ranlib; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005686$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005687if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005688 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005689else
5690 if test -n "$ac_ct_RANLIB"; then
5691 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005700 ac_cv_prog_ac_ct_RANLIB="ranlib"
Lev Walkinaef10c32014-01-14 01:47:25 -08005701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005702 break 2
5703 fi
5704done
Lev Walkinaef10c32014-01-14 01:47:25 -08005705 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005706IFS=$as_save_IFS
5707
5708fi
5709fi
5710ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5711if test -n "$ac_ct_RANLIB"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005713$as_echo "$ac_ct_RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005714else
Lev Walkinaef10c32014-01-14 01:47:25 -08005715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005716$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005717fi
5718
5719 if test "x$ac_ct_RANLIB" = x; then
5720 RANLIB=":"
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005726ac_tool_warned=yes ;;
5727esac
5728 RANLIB=$ac_ct_RANLIB
5729 fi
5730else
5731 RANLIB="$ac_cv_prog_RANLIB"
5732fi
5733
5734test -z "$RANLIB" && RANLIB=:
5735
5736
5737
5738
5739
5740
5741# Determine commands to create old-style static archives.
5742old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5743old_postinstall_cmds='chmod 644 $oldlib'
5744old_postuninstall_cmds=
5745
5746if test -n "$RANLIB"; then
5747 case $host_os in
5748 openbsd*)
5749 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5750 ;;
5751 *)
5752 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5753 ;;
5754 esac
5755 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5756fi
5757
Lev Walkinaef10c32014-01-14 01:47:25 -08005758case $host_os in
5759 darwin*)
5760 lock_old_archive_extraction=yes ;;
5761 *)
5762 lock_old_archive_extraction=no ;;
5763esac
5764
5765
5766
5767
5768
5769
Lev Walkin4da95cf2010-10-16 02:46:32 -07005770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
Lev Walkin8e8b5482004-06-17 23:42:48 +00005803# If no C compiler was specified, use CC.
5804LTCC=${LTCC-"$CC"}
5805
Lev Walkinfbf1d282007-12-03 14:58:39 +00005806# If no C compiler flags were specified, use CFLAGS.
5807LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5808
Lev Walkin8e8b5482004-06-17 23:42:48 +00005809# Allow CC to be a program name with arguments.
5810compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00005811
5812
Lev Walkin4da95cf2010-10-16 02:46:32 -07005813# Check for command to grab the raw symbol name followed by C symbol from nm.
Lev Walkinaef10c32014-01-14 01:47:25 -08005814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005815$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005816if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005817 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005818else
5819
5820# These are sane defaults that work on at least a few old systems.
5821# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5822
5823# Character class describing NM global symbol codes.
5824symcode='[BCDEGRST]'
5825
5826# Regexp to match symbols that can be accessed directly from C.
5827sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5828
5829# Define system-specific variables.
5830case $host_os in
5831aix*)
5832 symcode='[BCDT]'
5833 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08005834cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005835 symcode='[ABCDGISTW]'
5836 ;;
5837hpux*)
5838 if test "$host_cpu" = ia64; then
5839 symcode='[ABCDEGRST]'
5840 fi
5841 ;;
5842irix* | nonstopux*)
5843 symcode='[BCDEGRST]'
5844 ;;
5845osf*)
5846 symcode='[BCDEGQRST]'
5847 ;;
5848solaris*)
5849 symcode='[BDRT]'
5850 ;;
5851sco3.2v5*)
5852 symcode='[DT]'
5853 ;;
5854sysv4.2uw2*)
5855 symcode='[DT]'
5856 ;;
5857sysv5* | sco5v6* | unixware* | OpenUNIX*)
5858 symcode='[ABDT]'
5859 ;;
5860sysv4)
5861 symcode='[DFNSTU]'
5862 ;;
5863esac
5864
5865# If we're using GNU nm, then use its standard symbol codes.
5866case `$NM -V 2>&1` in
5867*GNU* | *'with BFD'*)
5868 symcode='[ABCDGIRSTW]' ;;
5869esac
5870
5871# Transform an extracted symbol line into a proper C declaration.
5872# Some systems (esp. on ia64) link data and code symbols differently,
5873# so use this general approach.
5874lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5875
5876# Transform an extracted symbol line into symbol name and symbol address
Lev Walkinaef10c32014-01-14 01:47:25 -08005877lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5878lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005879
5880# Handle CRLF in mingw tool chain
5881opt_cr=
5882case $build_os in
5883mingw*)
5884 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5885 ;;
5886esac
5887
5888# Try without a prefix underscore, then with it.
5889for ac_symprfx in "" "_"; do
5890
5891 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5892 symxfrm="\\1 $ac_symprfx\\2 \\2"
5893
5894 # Write the raw and C identifiers.
5895 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5896 # Fake it for dumpbin and say T for any non-static function
5897 # and D for any global variable.
5898 # Also find C++ and __fastcall symbols from MSVC++,
5899 # which start with @ or ?.
5900 lt_cv_sys_global_symbol_pipe="$AWK '"\
5901" {last_section=section; section=\$ 3};"\
5902" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5903" \$ 0!~/External *\|/{next};"\
5904" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5905" {if(hide[section]) next};"\
5906" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5907" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5908" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5909" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5910" ' prfx=^$ac_symprfx"
5911 else
5912 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5913 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005914 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005915
5916 # Check to see that the pipe works correctly.
5917 pipe_works=no
5918
Lev Walkinaef10c32014-01-14 01:47:25 -08005919 rm -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07005920 cat > conftest.$ac_ext <<_LT_EOF
5921#ifdef __cplusplus
5922extern "C" {
5923#endif
5924char nm_test_var;
5925void nm_test_func(void);
5926void nm_test_func(void){}
5927#ifdef __cplusplus
5928}
5929#endif
5930int main(){nm_test_var='a';nm_test_func();return(0);}
5931_LT_EOF
5932
Lev Walkinaef10c32014-01-14 01:47:25 -08005933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005934 (eval $ac_compile) 2>&5
5935 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005938 # Now try to grab the symbols.
5939 nlist=conftest.nm
Lev Walkinaef10c32014-01-14 01:47:25 -08005940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5941 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005942 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944 test $ac_status = 0; } && test -s "$nlist"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005945 # Try sorting and uniquifying the output.
5946 if sort "$nlist" | uniq > "$nlist"T; then
5947 mv -f "$nlist"T "$nlist"
5948 else
5949 rm -f "$nlist"T
5950 fi
5951
5952 # Make sure that we snagged all the symbols we need.
5953 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5954 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5955 cat <<_LT_EOF > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08005956/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5957#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5958/* DATA imports from DLLs on WIN32 con't be const, because runtime
5959 relocations are performed -- see ld's documentation on pseudo-relocs. */
5960# define LT_DLSYM_CONST
5961#elif defined(__osf__)
5962/* This system does not cope well with relocations in const data. */
5963# define LT_DLSYM_CONST
5964#else
5965# define LT_DLSYM_CONST const
5966#endif
5967
Lev Walkin4da95cf2010-10-16 02:46:32 -07005968#ifdef __cplusplus
5969extern "C" {
5970#endif
5971
5972_LT_EOF
5973 # Now generate the symbol file.
5974 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5975
5976 cat <<_LT_EOF >> conftest.$ac_ext
5977
5978/* The mapping between symbol names and symbols. */
Lev Walkinaef10c32014-01-14 01:47:25 -08005979LT_DLSYM_CONST struct {
Lev Walkin4da95cf2010-10-16 02:46:32 -07005980 const char *name;
5981 void *address;
5982}
5983lt__PROGRAM__LTX_preloaded_symbols[] =
5984{
5985 { "@PROGRAM@", (void *) 0 },
5986_LT_EOF
5987 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5988 cat <<\_LT_EOF >> conftest.$ac_ext
5989 {0, (void *) 0}
5990};
5991
5992/* This works around a problem in FreeBSD linker */
5993#ifdef FREEBSD_WORKAROUND
5994static const void *lt_preloaded_setup() {
5995 return lt__PROGRAM__LTX_preloaded_symbols;
5996}
5997#endif
5998
5999#ifdef __cplusplus
6000}
6001#endif
6002_LT_EOF
6003 # Now try linking the two files.
6004 mv conftest.$ac_objext conftstm.$ac_objext
Lev Walkinaef10c32014-01-14 01:47:25 -08006005 lt_globsym_save_LIBS=$LIBS
6006 lt_globsym_save_CFLAGS=$CFLAGS
Lev Walkin4da95cf2010-10-16 02:46:32 -07006007 LIBS="conftstm.$ac_objext"
6008 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Lev Walkinaef10c32014-01-14 01:47:25 -08006009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006010 (eval $ac_link) 2>&5
6011 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6013 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006014 pipe_works=yes
6015 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006016 LIBS=$lt_globsym_save_LIBS
6017 CFLAGS=$lt_globsym_save_CFLAGS
Lev Walkin4da95cf2010-10-16 02:46:32 -07006018 else
6019 echo "cannot find nm_test_func in $nlist" >&5
6020 fi
6021 else
6022 echo "cannot find nm_test_var in $nlist" >&5
6023 fi
6024 else
6025 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6026 fi
6027 else
6028 echo "$progname: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6030 fi
6031 rm -rf conftest* conftst*
6032
6033 # Do not use the global_symbol_pipe unless it works.
6034 if test "$pipe_works" = yes; then
6035 break
6036 else
6037 lt_cv_sys_global_symbol_pipe=
6038 fi
6039done
6040
6041fi
6042
6043if test -z "$lt_cv_sys_global_symbol_pipe"; then
6044 lt_cv_sys_global_symbol_to_cdecl=
6045fi
6046if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006048$as_echo "failed" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006049else
Lev Walkinaef10c32014-01-14 01:47:25 -08006050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006051$as_echo "ok" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006052fi
6053
Lev Walkinaef10c32014-01-14 01:47:25 -08006054# Response file support.
6055if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6056 nm_file_list_spec='@'
6057elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6058 nm_file_list_spec='@'
6059fi
6060
Lev Walkin4da95cf2010-10-16 02:46:32 -07006061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
Lev Walkinaef10c32014-01-14 01:47:25 -08006083
6084
6085
6086
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6088$as_echo_n "checking for sysroot... " >&6; }
6089
6090# Check whether --with-sysroot was given.
6091if test "${with_sysroot+set}" = set; then :
6092 withval=$with_sysroot;
6093else
6094 with_sysroot=no
6095fi
6096
6097
6098lt_sysroot=
6099case ${with_sysroot} in #(
6100 yes)
6101 if test "$GCC" = yes; then
6102 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6103 fi
6104 ;; #(
6105 /*)
6106 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6107 ;; #(
6108 no|'')
6109 ;; #(
6110 *)
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6112$as_echo "${with_sysroot}" >&6; }
6113 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6114 ;;
6115esac
6116
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6118$as_echo "${lt_sysroot:-no}" >&6; }
6119
6120
6121
6122
6123
Lev Walkin27fd0b62007-08-27 23:57:45 +00006124# Check whether --enable-libtool-lock was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08006125if test "${enable_libtool_lock+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00006126 enableval=$enable_libtool_lock;
6127fi
Lev Walkinf15320b2004-06-03 03:38:44 +00006128
Lev Walkin8e8b5482004-06-17 23:42:48 +00006129test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00006130
6131# Some flags need to be propagated to the compiler or linker for good
6132# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00006133case $host in
6134ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00006135 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00006136 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00006138 (eval $ac_compile) 2>&5
6139 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141 test $ac_status = 0; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006142 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07006143 *ELF-32*)
6144 HPUX_IA64_MODE="32"
6145 ;;
6146 *ELF-64*)
6147 HPUX_IA64_MODE="64"
6148 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006149 esac
6150 fi
6151 rm -rf conftest*
6152 ;;
6153*-*-irix6*)
6154 # Find out which ABI we are using.
Lev Walkinaef10c32014-01-14 01:47:25 -08006155 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006157 (eval $ac_compile) 2>&5
6158 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006161 if test "$lt_cv_prog_gnu_ld" = yes; then
6162 case `/usr/bin/file conftest.$ac_objext` in
6163 *32-bit*)
6164 LD="${LD-ld} -melf32bsmip"
6165 ;;
6166 *N32*)
6167 LD="${LD-ld} -melf32bmipn32"
6168 ;;
6169 *64-bit*)
6170 LD="${LD-ld} -melf64bmip"
6171 ;;
6172 esac
6173 else
6174 case `/usr/bin/file conftest.$ac_objext` in
6175 *32-bit*)
6176 LD="${LD-ld} -32"
6177 ;;
6178 *N32*)
6179 LD="${LD-ld} -n32"
6180 ;;
6181 *64-bit*)
6182 LD="${LD-ld} -64"
6183 ;;
6184 esac
6185 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006186 fi
6187 rm -rf conftest*
6188 ;;
6189
Lev Walkin4da95cf2010-10-16 02:46:32 -07006190x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6191s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00006192 # Find out which ABI we are using.
6193 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006195 (eval $ac_compile) 2>&5
6196 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198 test $ac_status = 0; }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00006199 case `/usr/bin/file conftest.o` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07006200 *32-bit*)
6201 case $host in
6202 x86_64-*kfreebsd*-gnu)
6203 LD="${LD-ld} -m elf_i386_fbsd"
6204 ;;
6205 x86_64-*linux*)
6206 LD="${LD-ld} -m elf_i386"
6207 ;;
6208 ppc64-*linux*|powerpc64-*linux*)
6209 LD="${LD-ld} -m elf32ppclinux"
6210 ;;
6211 s390x-*linux*)
6212 LD="${LD-ld} -m elf_s390"
6213 ;;
6214 sparc64-*linux*)
6215 LD="${LD-ld} -m elf32_sparc"
6216 ;;
6217 esac
6218 ;;
6219 *64-bit*)
6220 case $host in
6221 x86_64-*kfreebsd*-gnu)
6222 LD="${LD-ld} -m elf_x86_64_fbsd"
6223 ;;
6224 x86_64-*linux*)
6225 LD="${LD-ld} -m elf_x86_64"
6226 ;;
6227 ppc*-*linux*|powerpc*-*linux*)
6228 LD="${LD-ld} -m elf64ppc"
6229 ;;
6230 s390*-*linux*|s390*-*tpf*)
6231 LD="${LD-ld} -m elf64_s390"
6232 ;;
6233 sparc*-*linux*)
6234 LD="${LD-ld} -m elf64_sparc"
6235 ;;
6236 esac
6237 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006238 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00006239 fi
6240 rm -rf conftest*
6241 ;;
6242
6243*-*-sco3.2v5*)
6244 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6245 SAVE_CFLAGS="$CFLAGS"
6246 CFLAGS="$CFLAGS -belf"
Lev Walkinaef10c32014-01-14 01:47:25 -08006247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006248$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006249if ${lt_cv_cc_needs_belf+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006250 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00006251else
Lev Walkin8e8b5482004-06-17 23:42:48 +00006252 ac_ext=c
6253ac_cpp='$CPP $CPPFLAGS'
6254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257
Lev Walkinaef10c32014-01-14 01:47:25 -08006258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00006259/* end confdefs.h. */
6260
6261int
6262main ()
6263{
6264
6265 ;
6266 return 0;
6267}
6268_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08006269if ac_fn_c_try_link "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00006270 lt_cv_cc_needs_belf=yes
6271else
Lev Walkinaef10c32014-01-14 01:47:25 -08006272 lt_cv_cc_needs_belf=no
Lev Walkinf15320b2004-06-03 03:38:44 +00006273fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006274rm -f core conftest.err conftest.$ac_objext \
6275 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006276 ac_ext=c
6277ac_cpp='$CPP $CPPFLAGS'
6278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281
Lev Walkinf15320b2004-06-03 03:38:44 +00006282fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006284$as_echo "$lt_cv_cc_needs_belf" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00006285 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6286 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6287 CFLAGS="$SAVE_CFLAGS"
6288 fi
6289 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006290sparc*-*solaris*)
6291 # Find out which ABI we are using.
6292 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkinfbf1d282007-12-03 14:58:39 +00006294 (eval $ac_compile) 2>&5
6295 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297 test $ac_status = 0; }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00006298 case `/usr/bin/file conftest.o` in
6299 *64-bit*)
6300 case $lt_cv_prog_gnu_ld in
6301 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07006302 *)
6303 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6304 LD="${LD-ld} -64"
6305 fi
6306 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006307 esac
6308 ;;
6309 esac
6310 fi
6311 rm -rf conftest*
6312 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00006313esac
6314
Lev Walkin8e8b5482004-06-17 23:42:48 +00006315need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00006316
Lev Walkinaef10c32014-01-14 01:47:25 -08006317if test -n "$ac_tool_prefix"; then
6318 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6319set dummy ${ac_tool_prefix}mt; ac_word=$2
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321$as_echo_n "checking for $ac_word... " >&6; }
6322if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324else
6325 if test -n "$MANIFEST_TOOL"; then
6326 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339done
6340 done
6341IFS=$as_save_IFS
6342
6343fi
6344fi
6345MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6346if test -n "$MANIFEST_TOOL"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6348$as_echo "$MANIFEST_TOOL" >&6; }
6349else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351$as_echo "no" >&6; }
6352fi
6353
6354
6355fi
6356if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6357 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6358 # Extract the first word of "mt", so it can be a program name with args.
6359set dummy mt; ac_word=$2
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361$as_echo_n "checking for $ac_word... " >&6; }
6362if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364else
6365 if test -n "$ac_ct_MANIFEST_TOOL"; then
6366 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380 done
6381IFS=$as_save_IFS
6382
6383fi
6384fi
6385ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6386if test -n "$ac_ct_MANIFEST_TOOL"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6388$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6389else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391$as_echo "no" >&6; }
6392fi
6393
6394 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6395 MANIFEST_TOOL=":"
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398yes:)
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401ac_tool_warned=yes ;;
6402esac
6403 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6404 fi
6405else
6406 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6407fi
6408
6409test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6411$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6412if ${lt_cv_path_mainfest_tool+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414else
6415 lt_cv_path_mainfest_tool=no
6416 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6417 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6418 cat conftest.err >&5
6419 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6420 lt_cv_path_mainfest_tool=yes
6421 fi
6422 rm -f conftest*
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6425$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6426if test "x$lt_cv_path_mainfest_tool" != xyes; then
6427 MANIFEST_TOOL=:
6428fi
6429
6430
6431
6432
6433
Lev Walkin4da95cf2010-10-16 02:46:32 -07006434
6435 case $host_os in
6436 rhapsody* | darwin*)
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6439set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006441$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006442if ${ac_cv_prog_DSYMUTIL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006443 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006444else
6445 if test -n "$DSYMUTIL"; then
6446 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006455 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Lev Walkinaef10c32014-01-14 01:47:25 -08006456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006457 break 2
6458 fi
6459done
Lev Walkinaef10c32014-01-14 01:47:25 -08006460 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006461IFS=$as_save_IFS
6462
6463fi
6464fi
6465DSYMUTIL=$ac_cv_prog_DSYMUTIL
6466if test -n "$DSYMUTIL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006468$as_echo "$DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006469else
Lev Walkinaef10c32014-01-14 01:47:25 -08006470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006471$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006472fi
6473
6474
6475fi
6476if test -z "$ac_cv_prog_DSYMUTIL"; then
6477 ac_ct_DSYMUTIL=$DSYMUTIL
6478 # Extract the first word of "dsymutil", so it can be a program name with args.
6479set dummy dsymutil; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006481$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006482if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006483 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006484else
6485 if test -n "$ac_ct_DSYMUTIL"; then
6486 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6487else
6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006495 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Lev Walkinaef10c32014-01-14 01:47:25 -08006496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006497 break 2
6498 fi
6499done
Lev Walkinaef10c32014-01-14 01:47:25 -08006500 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006501IFS=$as_save_IFS
6502
6503fi
6504fi
6505ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6506if test -n "$ac_ct_DSYMUTIL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006508$as_echo "$ac_ct_DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006509else
Lev Walkinaef10c32014-01-14 01:47:25 -08006510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006511$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006512fi
6513
6514 if test "x$ac_ct_DSYMUTIL" = x; then
6515 DSYMUTIL=":"
6516 else
6517 case $cross_compiling:$ac_tool_warned in
6518yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006521ac_tool_warned=yes ;;
6522esac
6523 DSYMUTIL=$ac_ct_DSYMUTIL
6524 fi
6525else
6526 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6527fi
6528
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6531set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006533$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006534if ${ac_cv_prog_NMEDIT+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006535 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006536else
6537 if test -n "$NMEDIT"; then
6538 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6539else
6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006547 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Lev Walkinaef10c32014-01-14 01:47:25 -08006548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006549 break 2
6550 fi
6551done
Lev Walkinaef10c32014-01-14 01:47:25 -08006552 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006553IFS=$as_save_IFS
6554
6555fi
6556fi
6557NMEDIT=$ac_cv_prog_NMEDIT
6558if test -n "$NMEDIT"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006560$as_echo "$NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006561else
Lev Walkinaef10c32014-01-14 01:47:25 -08006562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006563$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006564fi
6565
6566
6567fi
6568if test -z "$ac_cv_prog_NMEDIT"; then
6569 ac_ct_NMEDIT=$NMEDIT
6570 # Extract the first word of "nmedit", so it can be a program name with args.
6571set dummy nmedit; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006573$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006574if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006575 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006576else
6577 if test -n "$ac_ct_NMEDIT"; then
6578 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6579else
6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006587 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Lev Walkinaef10c32014-01-14 01:47:25 -08006588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006589 break 2
6590 fi
6591done
Lev Walkinaef10c32014-01-14 01:47:25 -08006592 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006593IFS=$as_save_IFS
6594
6595fi
6596fi
6597ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6598if test -n "$ac_ct_NMEDIT"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006600$as_echo "$ac_ct_NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006601else
Lev Walkinaef10c32014-01-14 01:47:25 -08006602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006603$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006604fi
6605
6606 if test "x$ac_ct_NMEDIT" = x; then
6607 NMEDIT=":"
6608 else
6609 case $cross_compiling:$ac_tool_warned in
6610yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006613ac_tool_warned=yes ;;
6614esac
6615 NMEDIT=$ac_ct_NMEDIT
6616 fi
6617else
6618 NMEDIT="$ac_cv_prog_NMEDIT"
6619fi
6620
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6623set dummy ${ac_tool_prefix}lipo; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006625$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006626if ${ac_cv_prog_LIPO+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006627 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006628else
6629 if test -n "$LIPO"; then
6630 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006639 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Lev Walkinaef10c32014-01-14 01:47:25 -08006640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006641 break 2
6642 fi
6643done
Lev Walkinaef10c32014-01-14 01:47:25 -08006644 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006645IFS=$as_save_IFS
6646
6647fi
6648fi
6649LIPO=$ac_cv_prog_LIPO
6650if test -n "$LIPO"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006652$as_echo "$LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006653else
Lev Walkinaef10c32014-01-14 01:47:25 -08006654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006655$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006656fi
6657
6658
6659fi
6660if test -z "$ac_cv_prog_LIPO"; then
6661 ac_ct_LIPO=$LIPO
6662 # Extract the first word of "lipo", so it can be a program name with args.
6663set dummy lipo; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006665$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006666if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006667 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006668else
6669 if test -n "$ac_ct_LIPO"; then
6670 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6671else
6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006679 ac_cv_prog_ac_ct_LIPO="lipo"
Lev Walkinaef10c32014-01-14 01:47:25 -08006680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006681 break 2
6682 fi
6683done
Lev Walkinaef10c32014-01-14 01:47:25 -08006684 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006685IFS=$as_save_IFS
6686
6687fi
6688fi
6689ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6690if test -n "$ac_ct_LIPO"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006692$as_echo "$ac_ct_LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006693else
Lev Walkinaef10c32014-01-14 01:47:25 -08006694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006695$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006696fi
6697
6698 if test "x$ac_ct_LIPO" = x; then
6699 LIPO=":"
6700 else
6701 case $cross_compiling:$ac_tool_warned in
6702yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006705ac_tool_warned=yes ;;
6706esac
6707 LIPO=$ac_ct_LIPO
6708 fi
6709else
6710 LIPO="$ac_cv_prog_LIPO"
6711fi
6712
6713 if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6715set dummy ${ac_tool_prefix}otool; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006717$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006718if ${ac_cv_prog_OTOOL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006719 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006720else
6721 if test -n "$OTOOL"; then
6722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006731 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Lev Walkinaef10c32014-01-14 01:47:25 -08006732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006733 break 2
6734 fi
6735done
Lev Walkinaef10c32014-01-14 01:47:25 -08006736 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006737IFS=$as_save_IFS
6738
6739fi
6740fi
6741OTOOL=$ac_cv_prog_OTOOL
6742if test -n "$OTOOL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006744$as_echo "$OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006745else
Lev Walkinaef10c32014-01-14 01:47:25 -08006746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006747$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006748fi
6749
6750
6751fi
6752if test -z "$ac_cv_prog_OTOOL"; then
6753 ac_ct_OTOOL=$OTOOL
6754 # Extract the first word of "otool", so it can be a program name with args.
6755set dummy otool; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006757$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006758if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006759 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006760else
6761 if test -n "$ac_ct_OTOOL"; then
6762 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006771 ac_cv_prog_ac_ct_OTOOL="otool"
Lev Walkinaef10c32014-01-14 01:47:25 -08006772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006773 break 2
6774 fi
6775done
Lev Walkinaef10c32014-01-14 01:47:25 -08006776 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006777IFS=$as_save_IFS
6778
6779fi
6780fi
6781ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6782if test -n "$ac_ct_OTOOL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006784$as_echo "$ac_ct_OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006785else
Lev Walkinaef10c32014-01-14 01:47:25 -08006786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006787$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006788fi
6789
6790 if test "x$ac_ct_OTOOL" = x; then
6791 OTOOL=":"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006797ac_tool_warned=yes ;;
6798esac
6799 OTOOL=$ac_ct_OTOOL
6800 fi
6801else
6802 OTOOL="$ac_cv_prog_OTOOL"
6803fi
6804
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6807set dummy ${ac_tool_prefix}otool64; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006809$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006810if ${ac_cv_prog_OTOOL64+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006811 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006812else
6813 if test -n "$OTOOL64"; then
6814 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6815else
6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006823 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Lev Walkinaef10c32014-01-14 01:47:25 -08006824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006825 break 2
6826 fi
6827done
Lev Walkinaef10c32014-01-14 01:47:25 -08006828 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006829IFS=$as_save_IFS
6830
6831fi
6832fi
6833OTOOL64=$ac_cv_prog_OTOOL64
6834if test -n "$OTOOL64"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006836$as_echo "$OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006837else
Lev Walkinaef10c32014-01-14 01:47:25 -08006838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006839$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006840fi
6841
6842
6843fi
6844if test -z "$ac_cv_prog_OTOOL64"; then
6845 ac_ct_OTOOL64=$OTOOL64
6846 # Extract the first word of "otool64", so it can be a program name with args.
6847set dummy otool64; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006849$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006850if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006851 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006852else
6853 if test -n "$ac_ct_OTOOL64"; then
6854 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6855else
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006863 ac_cv_prog_ac_ct_OTOOL64="otool64"
Lev Walkinaef10c32014-01-14 01:47:25 -08006864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006865 break 2
6866 fi
6867done
Lev Walkinaef10c32014-01-14 01:47:25 -08006868 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006869IFS=$as_save_IFS
6870
6871fi
6872fi
6873ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6874if test -n "$ac_ct_OTOOL64"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006876$as_echo "$ac_ct_OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006877else
Lev Walkinaef10c32014-01-14 01:47:25 -08006878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006879$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006880fi
6881
6882 if test "x$ac_ct_OTOOL64" = x; then
6883 OTOOL64=":"
6884 else
6885 case $cross_compiling:$ac_tool_warned in
6886yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006889ac_tool_warned=yes ;;
6890esac
6891 OTOOL64=$ac_ct_OTOOL64
6892 fi
6893else
6894 OTOOL64="$ac_cv_prog_OTOOL64"
6895fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
Lev Walkinaef10c32014-01-14 01:47:25 -08006923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006924$as_echo_n "checking for -single_module linker flag... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006925if ${lt_cv_apple_cc_single_mod+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006926 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006927else
6928 lt_cv_apple_cc_single_mod=no
6929 if test -z "${LT_MULTI_MODULE}"; then
6930 # By default we will add the -single_module flag. You can override
6931 # by either setting the environment variable LT_MULTI_MODULE
6932 # non-empty at configure time, or by adding -multi_module to the
6933 # link flags.
6934 rm -rf libconftest.dylib*
6935 echo "int foo(void){return 1;}" > conftest.c
6936 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6937-dynamiclib -Wl,-single_module conftest.c" >&5
6938 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6940 _lt_result=$?
6941 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6942 lt_cv_apple_cc_single_mod=yes
6943 else
6944 cat conftest.err >&5
6945 fi
6946 rm -rf libconftest.dylib*
6947 rm -f conftest.*
6948 fi
6949fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006951$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006953$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006954if ${lt_cv_ld_exported_symbols_list+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006955 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006956else
6957 lt_cv_ld_exported_symbols_list=no
6958 save_LDFLAGS=$LDFLAGS
6959 echo "_main" > conftest.sym
6960 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Lev Walkinaef10c32014-01-14 01:47:25 -08006961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07006962/* end confdefs.h. */
6963
6964int
6965main ()
6966{
6967
6968 ;
6969 return 0;
6970}
6971_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08006972if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07006973 lt_cv_ld_exported_symbols_list=yes
6974else
Lev Walkinaef10c32014-01-14 01:47:25 -08006975 lt_cv_ld_exported_symbols_list=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07006976fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006977rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07006979 LDFLAGS="$save_LDFLAGS"
6980
6981fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006983$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6985$as_echo_n "checking for -force_load linker flag... " >&6; }
6986if ${lt_cv_ld_force_load+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988else
6989 lt_cv_ld_force_load=no
6990 cat > conftest.c << _LT_EOF
6991int forced_loaded() { return 2;}
6992_LT_EOF
6993 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6994 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6995 echo "$AR cru libconftest.a conftest.o" >&5
6996 $AR cru libconftest.a conftest.o 2>&5
6997 echo "$RANLIB libconftest.a" >&5
6998 $RANLIB libconftest.a 2>&5
6999 cat > conftest.c << _LT_EOF
7000int main() { return 0;}
7001_LT_EOF
7002 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7003 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7004 _lt_result=$?
7005 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7006 lt_cv_ld_force_load=yes
7007 else
7008 cat conftest.err >&5
7009 fi
7010 rm -f conftest.err libconftest.a conftest conftest.c
7011 rm -rf conftest.dSYM
7012
7013fi
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7015$as_echo "$lt_cv_ld_force_load" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07007016 case $host_os in
7017 rhapsody* | darwin1.[012])
7018 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7019 darwin1.*)
7020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7021 darwin*) # darwin 5.x on
7022 # if running on 10.5 or later, the deployment target defaults
7023 # to the OS version, if on x86, and 10.4, the deployment
7024 # target defaults to 10.4. Don't you love it?
7025 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7026 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7027 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7028 10.[012]*)
7029 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7030 10.*)
7031 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7032 esac
7033 ;;
7034 esac
7035 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7036 _lt_dar_single_mod='$single_module'
7037 fi
7038 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7039 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7040 else
7041 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7042 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007043 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07007044 _lt_dsymutil='~$DSYMUTIL $lib || :'
7045 else
7046 _lt_dsymutil=
7047 fi
7048 ;;
7049 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00007050
Lev Walkin8e8b5482004-06-17 23:42:48 +00007051ac_ext=c
7052ac_cpp='$CPP $CPPFLAGS'
7053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinaef10c32014-01-14 01:47:25 -08007056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007057$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007058# On Suns, sometimes $CPP names a directory.
7059if test -n "$CPP" && test -d "$CPP"; then
7060 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00007061fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00007062if test -z "$CPP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007063 if ${ac_cv_prog_CPP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007064 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007065else
7066 # Double quotes because CPP needs to be expanded
7067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7068 do
7069 ac_preproc_ok=false
7070for ac_c_preproc_warn_flag in '' yes
7071do
7072 # Use a header file that comes with gcc, so configuring glibc
7073 # with a fresh cross-compiler works.
7074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075 # <limits.h> exists even on freestanding compilers.
7076 # On the NeXT, cc -E runs the code through the compiler's parser,
7077 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -08007078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007079/* end confdefs.h. */
7080#ifdef __STDC__
7081# include <limits.h>
7082#else
7083# include <assert.h>
7084#endif
7085 Syntax error
7086_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007087if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007088
Lev Walkinaef10c32014-01-14 01:47:25 -08007089else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007090 # Broken: fails on valid input.
7091continue
7092fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007093rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007094
Lev Walkin27fd0b62007-08-27 23:57:45 +00007095 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007096 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -08007097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007098/* end confdefs.h. */
7099#include <ac_nonexistent.h>
7100_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007101if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007102 # Broken: success on invalid input.
7103continue
7104else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007105 # Passes both tests.
7106ac_preproc_ok=:
7107break
7108fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007109rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007110
7111done
7112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -08007113rm -f conftest.i conftest.err conftest.$ac_ext
7114if $ac_preproc_ok; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007115 break
7116fi
7117
7118 done
7119 ac_cv_prog_CPP=$CPP
7120
7121fi
7122 CPP=$ac_cv_prog_CPP
7123else
7124 ac_cv_prog_CPP=$CPP
7125fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007127$as_echo "$CPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007128ac_preproc_ok=false
7129for ac_c_preproc_warn_flag in '' yes
7130do
7131 # Use a header file that comes with gcc, so configuring glibc
7132 # with a fresh cross-compiler works.
7133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7134 # <limits.h> exists even on freestanding compilers.
7135 # On the NeXT, cc -E runs the code through the compiler's parser,
7136 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -08007137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007138/* end confdefs.h. */
7139#ifdef __STDC__
7140# include <limits.h>
7141#else
7142# include <assert.h>
7143#endif
7144 Syntax error
7145_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007146if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007147
Lev Walkinaef10c32014-01-14 01:47:25 -08007148else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007149 # Broken: fails on valid input.
7150continue
7151fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007152rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007153
Lev Walkin27fd0b62007-08-27 23:57:45 +00007154 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007155 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -08007156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007157/* end confdefs.h. */
7158#include <ac_nonexistent.h>
7159_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007160if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007161 # Broken: success on invalid input.
7162continue
7163else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007164 # Passes both tests.
7165ac_preproc_ok=:
7166break
7167fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007168rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007169
7170done
7171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -08007172rm -f conftest.i conftest.err conftest.$ac_ext
7173if $ac_preproc_ok; then :
7174
Lev Walkin8e8b5482004-06-17 23:42:48 +00007175else
Lev Walkinaef10c32014-01-14 01:47:25 -08007176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08007178as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7179See \`config.log' for more details" "$LINENO" 5; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007180fi
7181
7182ac_ext=c
7183ac_cpp='$CPP $CPPFLAGS'
7184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7186ac_compiler_gnu=$ac_cv_c_compiler_gnu
7187
7188
Lev Walkinaef10c32014-01-14 01:47:25 -08007189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007190$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007191if ${ac_cv_header_stdc+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007192 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007193else
Lev Walkinaef10c32014-01-14 01:47:25 -08007194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007195/* end confdefs.h. */
7196#include <stdlib.h>
7197#include <stdarg.h>
7198#include <string.h>
7199#include <float.h>
7200
7201int
7202main ()
7203{
7204
7205 ;
7206 return 0;
7207}
7208_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007209if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007210 ac_cv_header_stdc=yes
7211else
Lev Walkinaef10c32014-01-14 01:47:25 -08007212 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007213fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007215
7216if test $ac_cv_header_stdc = yes; then
7217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -08007218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007219/* end confdefs.h. */
7220#include <string.h>
7221
7222_ACEOF
7223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -08007224 $EGREP "memchr" >/dev/null 2>&1; then :
7225
Lev Walkin8e8b5482004-06-17 23:42:48 +00007226else
7227 ac_cv_header_stdc=no
7228fi
Lev Walkinb3751942012-09-02 19:36:47 -07007229rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007230
7231fi
7232
7233if test $ac_cv_header_stdc = yes; then
7234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -08007235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007236/* end confdefs.h. */
7237#include <stdlib.h>
7238
7239_ACEOF
7240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -08007241 $EGREP "free" >/dev/null 2>&1; then :
7242
Lev Walkin8e8b5482004-06-17 23:42:48 +00007243else
7244 ac_cv_header_stdc=no
7245fi
Lev Walkinb3751942012-09-02 19:36:47 -07007246rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007247
7248fi
7249
7250if test $ac_cv_header_stdc = yes; then
7251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Lev Walkinaef10c32014-01-14 01:47:25 -08007252 if test "$cross_compiling" = yes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007253 :
7254else
Lev Walkinaef10c32014-01-14 01:47:25 -08007255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007256/* end confdefs.h. */
7257#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +00007258#include <stdlib.h>
Lev Walkin8e8b5482004-06-17 23:42:48 +00007259#if ((' ' & 0x0FF) == 0x020)
7260# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7261# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7262#else
7263# define ISLOWER(c) \
7264 (('a' <= (c) && (c) <= 'i') \
7265 || ('j' <= (c) && (c) <= 'r') \
7266 || ('s' <= (c) && (c) <= 'z'))
7267# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7268#endif
7269
7270#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7271int
7272main ()
7273{
7274 int i;
7275 for (i = 0; i < 256; i++)
7276 if (XOR (islower (i), ISLOWER (i))
7277 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +00007278 return 2;
7279 return 0;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007280}
7281_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007282if ac_fn_c_try_run "$LINENO"; then :
7283
Lev Walkin8e8b5482004-06-17 23:42:48 +00007284else
Lev Walkinaef10c32014-01-14 01:47:25 -08007285 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007286fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7288 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00007289fi
7290
Lev Walkin8e8b5482004-06-17 23:42:48 +00007291fi
7292fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007294$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007295if test $ac_cv_header_stdc = yes; then
7296
Lev Walkinaef10c32014-01-14 01:47:25 -08007297$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Lev Walkin8e8b5482004-06-17 23:42:48 +00007298
7299fi
7300
7301# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007302for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7303 inttypes.h stdint.h unistd.h
Lev Walkinaef10c32014-01-14 01:47:25 -08007304do :
7305 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7306ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7307"
7308if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007309 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -07007310#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007311_ACEOF
7312
7313fi
7314
7315done
7316
7317
Lev Walkin8e8b5482004-06-17 23:42:48 +00007318for ac_header in dlfcn.h
Lev Walkinaef10c32014-01-14 01:47:25 -08007319do :
7320 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7321"
7322if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007323 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007324#define HAVE_DLFCN_H 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007325_ACEOF
7326
7327fi
7328
7329done
7330
Lev Walkin8e8b5482004-06-17 23:42:48 +00007331
Lev Walkin8e8b5482004-06-17 23:42:48 +00007332
Lev Walkinaef10c32014-01-14 01:47:25 -08007333
7334
Lev Walkin4da95cf2010-10-16 02:46:32 -07007335# Set options
Lev Walkin8e8b5482004-06-17 23:42:48 +00007336
Lev Walkin27fd0b62007-08-27 23:57:45 +00007337
Lev Walkin8e8b5482004-06-17 23:42:48 +00007338
Lev Walkin4da95cf2010-10-16 02:46:32 -07007339 enable_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007340
Lev Walkin8e8b5482004-06-17 23:42:48 +00007341
Lev Walkin4da95cf2010-10-16 02:46:32 -07007342 enable_win32_dll=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007343
Lev Walkin8e8b5482004-06-17 23:42:48 +00007344
Lev Walkin4da95cf2010-10-16 02:46:32 -07007345 # Check whether --enable-shared was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007346if test "${enable_shared+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007347 enableval=$enable_shared; p=${PACKAGE-default}
7348 case $enableval in
7349 yes) enable_shared=yes ;;
7350 no) enable_shared=no ;;
7351 *)
7352 enable_shared=no
7353 # Look at the argument we got. We use all the common list separators.
7354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7355 for pkg in $enableval; do
7356 IFS="$lt_save_ifs"
7357 if test "X$pkg" = "X$p"; then
7358 enable_shared=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00007359 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007360 done
7361 IFS="$lt_save_ifs"
7362 ;;
7363 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007364else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007365 enable_shared=yes
7366fi
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376 # Check whether --enable-static was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007377if test "${enable_static+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007378 enableval=$enable_static; p=${PACKAGE-default}
7379 case $enableval in
7380 yes) enable_static=yes ;;
7381 no) enable_static=no ;;
7382 *)
7383 enable_static=no
7384 # Look at the argument we got. We use all the common list separators.
7385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7386 for pkg in $enableval; do
7387 IFS="$lt_save_ifs"
7388 if test "X$pkg" = "X$p"; then
7389 enable_static=yes
7390 fi
7391 done
7392 IFS="$lt_save_ifs"
7393 ;;
7394 esac
7395else
7396 enable_static=yes
7397fi
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408# Check whether --with-pic was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007409if test "${with_pic+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007410 withval=$with_pic; pic_mode="$withval"
7411else
7412 pic_mode=default
7413fi
7414
7415
7416test -z "$pic_mode" && pic_mode=default
7417
7418
7419
7420
7421
7422
7423
7424 # Check whether --enable-fast-install was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007425if test "${enable_fast_install+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007426 enableval=$enable_fast_install; p=${PACKAGE-default}
7427 case $enableval in
7428 yes) enable_fast_install=yes ;;
7429 no) enable_fast_install=no ;;
7430 *)
7431 enable_fast_install=no
7432 # Look at the argument we got. We use all the common list separators.
7433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7434 for pkg in $enableval; do
7435 IFS="$lt_save_ifs"
7436 if test "X$pkg" = "X$p"; then
7437 enable_fast_install=yes
7438 fi
7439 done
7440 IFS="$lt_save_ifs"
7441 ;;
7442 esac
7443else
7444 enable_fast_install=yes
7445fi
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457# This can be used to rebuild libtool when needed
7458LIBTOOL_DEPS="$ltmain"
7459
7460# Always use our own libtool.
7461LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
Lev Walkinaef10c32014-01-14 01:47:25 -08007487
Lev Walkin4da95cf2010-10-16 02:46:32 -07007488test -z "$LN_S" && LN_S="ln -s"
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503if test -n "${ZSH_VERSION+set}" ; then
7504 setopt NO_GLOB_SUBST
Lev Walkin8e8b5482004-06-17 23:42:48 +00007505fi
7506
Lev Walkinaef10c32014-01-14 01:47:25 -08007507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007508$as_echo_n "checking for objdir... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007509if ${lt_cv_objdir+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007510 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007511else
7512 rm -f .libs 2>/dev/null
7513mkdir .libs 2>/dev/null
7514if test -d .libs; then
7515 lt_cv_objdir=.libs
7516else
7517 # MS-DOS does not allow filenames that begin with a dot.
7518 lt_cv_objdir=_libs
7519fi
7520rmdir .libs 2>/dev/null
7521fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007523$as_echo "$lt_cv_objdir" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007524objdir=$lt_cv_objdir
7525
7526
7527
7528
7529
Lev Walkin4da95cf2010-10-16 02:46:32 -07007530cat >>confdefs.h <<_ACEOF
7531#define LT_OBJDIR "$lt_cv_objdir/"
7532_ACEOF
7533
7534
7535
7536
Lev Walkin8e8b5482004-06-17 23:42:48 +00007537case $host_os in
7538aix3*)
7539 # AIX sometimes has problems with the GCC collect2 program. For some
7540 # reason, if we set the COLLECT_NAMES environment variable, the problems
7541 # vanish in a puff of smoke.
7542 if test "X${COLLECT_NAMES+set}" != Xset; then
7543 COLLECT_NAMES=
7544 export COLLECT_NAMES
7545 fi
7546 ;;
7547esac
7548
Lev Walkin8e8b5482004-06-17 23:42:48 +00007549# Global variables:
Lev Walkin4da95cf2010-10-16 02:46:32 -07007550ofile=libtool
Lev Walkin8e8b5482004-06-17 23:42:48 +00007551can_build_shared=yes
7552
Lev Walkinfbf1d282007-12-03 14:58:39 +00007553# All known linkers require a `.a' archive for static linking (except MSVC,
Lev Walkin8e8b5482004-06-17 23:42:48 +00007554# which needs '.lib').
7555libext=a
Lev Walkin4da95cf2010-10-16 02:46:32 -07007556
Lev Walkin8e8b5482004-06-17 23:42:48 +00007557with_gnu_ld="$lt_cv_prog_gnu_ld"
7558
Lev Walkin8e8b5482004-06-17 23:42:48 +00007559old_CC="$CC"
7560old_CFLAGS="$CFLAGS"
7561
7562# Set sane defaults for various variables
Lev Walkin8e8b5482004-06-17 23:42:48 +00007563test -z "$CC" && CC=cc
7564test -z "$LTCC" && LTCC=$CC
Lev Walkinfbf1d282007-12-03 14:58:39 +00007565test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Lev Walkin8e8b5482004-06-17 23:42:48 +00007566test -z "$LD" && LD=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00007567test -z "$ac_objext" && ac_objext=o
7568
Lev Walkinfbf1d282007-12-03 14:58:39 +00007569for cc_temp in $compiler""; do
7570 case $cc_temp in
7571 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7572 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7573 \-*) ;;
7574 *) break;;
7575 esac
7576done
Lev Walkinaef10c32014-01-14 01:47:25 -08007577cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Lev Walkinfbf1d282007-12-03 14:58:39 +00007578
7579
Lev Walkin8e8b5482004-06-17 23:42:48 +00007580# Only perform the check for file, if the check method requires it
Lev Walkin4da95cf2010-10-16 02:46:32 -07007581test -z "$MAGIC_CMD" && MAGIC_CMD=file
Lev Walkin8e8b5482004-06-17 23:42:48 +00007582case $deplibs_check_method in
7583file_magic*)
7584 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007586$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007587if ${lt_cv_path_MAGIC_CMD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007588 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007589else
7590 case $MAGIC_CMD in
7591[\\/*] | ?:[\\/]*)
7592 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7593 ;;
7594*)
7595 lt_save_MAGIC_CMD="$MAGIC_CMD"
7596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7597 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7598 for ac_dir in $ac_dummy; do
7599 IFS="$lt_save_ifs"
7600 test -z "$ac_dir" && ac_dir=.
7601 if test -f $ac_dir/${ac_tool_prefix}file; then
7602 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7603 if test -n "$file_magic_test_file"; then
7604 case $deplibs_check_method in
7605 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007606 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7609 $EGREP "$file_magic_regex" > /dev/null; then
7610 :
7611 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007612 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007613
7614*** Warning: the command libtool uses to detect shared libraries,
7615*** $file_magic_cmd, produces output that libtool cannot recognize.
7616*** The result is that libtool may fail to recognize shared libraries
7617*** as such. This will affect the creation of libtool libraries that
7618*** depend on shared libraries, but programs linked with such libtool
7619*** libraries will work regardless of this problem. Nevertheless, you
7620*** may want to report the problem to your system manager and/or to
7621*** bug-libtool@gnu.org
7622
Lev Walkin4da95cf2010-10-16 02:46:32 -07007623_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007624 fi ;;
7625 esac
7626 fi
7627 break
7628 fi
7629 done
7630 IFS="$lt_save_ifs"
7631 MAGIC_CMD="$lt_save_MAGIC_CMD"
7632 ;;
7633esac
7634fi
7635
7636MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7637if test -n "$MAGIC_CMD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007639$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007640else
Lev Walkinaef10c32014-01-14 01:47:25 -08007641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007642$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007643fi
7644
Lev Walkin4da95cf2010-10-16 02:46:32 -07007645
7646
7647
7648
Lev Walkin8e8b5482004-06-17 23:42:48 +00007649if test -z "$lt_cv_path_MAGIC_CMD"; then
7650 if test -n "$ac_tool_prefix"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007652$as_echo_n "checking for file... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007653if ${lt_cv_path_MAGIC_CMD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007654 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007655else
7656 case $MAGIC_CMD in
7657[\\/*] | ?:[\\/]*)
7658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7659 ;;
7660*)
7661 lt_save_MAGIC_CMD="$MAGIC_CMD"
7662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7664 for ac_dir in $ac_dummy; do
7665 IFS="$lt_save_ifs"
7666 test -z "$ac_dir" && ac_dir=.
7667 if test -f $ac_dir/file; then
7668 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7669 if test -n "$file_magic_test_file"; then
7670 case $deplibs_check_method in
7671 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7675 $EGREP "$file_magic_regex" > /dev/null; then
7676 :
7677 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007678 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007679
7680*** Warning: the command libtool uses to detect shared libraries,
7681*** $file_magic_cmd, produces output that libtool cannot recognize.
7682*** The result is that libtool may fail to recognize shared libraries
7683*** as such. This will affect the creation of libtool libraries that
7684*** depend on shared libraries, but programs linked with such libtool
7685*** libraries will work regardless of this problem. Nevertheless, you
7686*** may want to report the problem to your system manager and/or to
7687*** bug-libtool@gnu.org
7688
Lev Walkin4da95cf2010-10-16 02:46:32 -07007689_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007690 fi ;;
7691 esac
7692 fi
7693 break
7694 fi
7695 done
7696 IFS="$lt_save_ifs"
7697 MAGIC_CMD="$lt_save_MAGIC_CMD"
7698 ;;
7699esac
7700fi
7701
7702MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703if test -n "$MAGIC_CMD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007705$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007706else
Lev Walkinaef10c32014-01-14 01:47:25 -08007707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007708$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007709fi
7710
Lev Walkin4da95cf2010-10-16 02:46:32 -07007711
Lev Walkin8e8b5482004-06-17 23:42:48 +00007712 else
7713 MAGIC_CMD=:
7714 fi
7715fi
7716
7717 fi
7718 ;;
7719esac
7720
Lev Walkin8e8b5482004-06-17 23:42:48 +00007721# Use C for the default configuration in the libtool script
Lev Walkin4da95cf2010-10-16 02:46:32 -07007722
Lev Walkin8e8b5482004-06-17 23:42:48 +00007723lt_save_CC="$CC"
7724ac_ext=c
7725ac_cpp='$CPP $CPPFLAGS'
7726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729
7730
7731# Source file extension for C test sources.
7732ac_ext=c
7733
7734# Object file extension for compiled C test sources.
7735objext=o
7736objext=$objext
7737
7738# Code to be used in simple compile tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007739lt_simple_compile_test_code="int some_variable = 0;"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007740
7741# Code to be used in simple link tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007742lt_simple_link_test_code='int main(){return(0);}'
7743
7744
7745
7746
7747
Lev Walkin8e8b5482004-06-17 23:42:48 +00007748
7749
7750# If no C compiler was specified, use CC.
7751LTCC=${LTCC-"$CC"}
7752
Lev Walkinfbf1d282007-12-03 14:58:39 +00007753# If no C compiler flags were specified, use CFLAGS.
7754LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7755
Lev Walkin8e8b5482004-06-17 23:42:48 +00007756# Allow CC to be a program name with arguments.
7757compiler=$CC
7758
Lev Walkin4da95cf2010-10-16 02:46:32 -07007759# Save the default compiler, since it gets overwritten when the other
7760# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7761compiler_DEFAULT=$CC
Lev Walkin8e8b5482004-06-17 23:42:48 +00007762
Lev Walkinfbf1d282007-12-03 14:58:39 +00007763# save warnings/boilerplate of simple test code
7764ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007765echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007766eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7767_lt_compiler_boilerplate=`cat conftest.err`
Lev Walkinaef10c32014-01-14 01:47:25 -08007768$RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007769
Lev Walkinfbf1d282007-12-03 14:58:39 +00007770ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007771echo "$lt_simple_link_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007772eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7773_lt_linker_boilerplate=`cat conftest.err`
Lev Walkin4da95cf2010-10-16 02:46:32 -07007774$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007775
7776
Lev Walkine7c4b962010-11-09 03:10:36 -08007777## CAVEAT EMPTOR:
7778## There is no encapsulation within the following macros, do not change
7779## the running order or otherwise move them around unless you know exactly
7780## what you are doing...
Lev Walkin4da95cf2010-10-16 02:46:32 -07007781if test -n "$compiler"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007782
7783lt_prog_compiler_no_builtin_flag=
7784
7785if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007786 case $cc_basename in
7787 nvcc*)
7788 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7789 *)
7790 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7791 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007792
Lev Walkinaef10c32014-01-14 01:47:25 -08007793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007794$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007795if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007796 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007797else
7798 lt_cv_prog_compiler_rtti_exceptions=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007799 ac_outfile=conftest.$ac_objext
7800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007801 lt_compiler_flag="-fno-rtti -fno-exceptions"
7802 # Insert the option either (1) after the last *FLAGS variable, or
7803 # (2) before a word containing "conftest.", or (3) at the end.
7804 # Note that $ac_compile itself does not contain backslashes and begins
7805 # with a dollar sign (not a hyphen), so the echo should work correctly.
7806 # The option is referenced via a variable to avoid confusing sed.
7807 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7810 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08007811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007812 (eval "$lt_compile" 2>conftest.err)
7813 ac_status=$?
7814 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08007815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007816 if (exit $ac_status) && test -s "$ac_outfile"; then
7817 # The compiler can only warn and ignore the option if not recognized
Lev Walkinfbf1d282007-12-03 14:58:39 +00007818 # So say no if there are warnings other than the usual output.
Lev Walkinaef10c32014-01-14 01:47:25 -08007819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007822 lt_cv_prog_compiler_rtti_exceptions=yes
7823 fi
7824 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007825 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007826
7827fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007829$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007830
7831if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7832 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7833else
7834 :
7835fi
7836
7837fi
7838
Lev Walkin4da95cf2010-10-16 02:46:32 -07007839
7840
7841
7842
7843
7844 lt_prog_compiler_wl=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007845lt_prog_compiler_pic=
7846lt_prog_compiler_static=
7847
Lev Walkin8e8b5482004-06-17 23:42:48 +00007848
7849 if test "$GCC" = yes; then
7850 lt_prog_compiler_wl='-Wl,'
7851 lt_prog_compiler_static='-static'
7852
7853 case $host_os in
7854 aix*)
7855 # All AIX code is PIC.
7856 if test "$host_cpu" = ia64; then
7857 # AIX 5 now supports IA64 processor
7858 lt_prog_compiler_static='-Bstatic'
7859 fi
7860 ;;
7861
7862 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007863 case $host_cpu in
7864 powerpc)
7865 # see comment about AmigaOS4 .so support
7866 lt_prog_compiler_pic='-fPIC'
7867 ;;
7868 m68k)
7869 # FIXME: we need at least 68020 code to build shared libraries, but
7870 # adding the `-m68020' flag to GCC prevents building anything better,
7871 # like `-m68040'.
7872 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7873 ;;
7874 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007875 ;;
7876
Lev Walkin4da95cf2010-10-16 02:46:32 -07007877 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007878 # PIC is the default for these OSes.
7879 ;;
7880
Lev Walkinaef10c32014-01-14 01:47:25 -08007881 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007882 # This hack is so that the source file can tell whether it is being
7883 # built for inclusion in a dll (and should export symbols for example).
Lev Walkin4da95cf2010-10-16 02:46:32 -07007884 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7885 # (--disable-auto-import) libraries
Lev Walkin8e8b5482004-06-17 23:42:48 +00007886 lt_prog_compiler_pic='-DDLL_EXPORT'
7887 ;;
7888
7889 darwin* | rhapsody*)
7890 # PIC is the default on this platform
7891 # Common symbols not allowed in MH_DYLIB files
7892 lt_prog_compiler_pic='-fno-common'
7893 ;;
7894
Lev Walkinaef10c32014-01-14 01:47:25 -08007895 haiku*)
7896 # PIC is the default for Haiku.
7897 # The "-static" flag exists, but is broken.
7898 lt_prog_compiler_static=
7899 ;;
7900
Lev Walkin4da95cf2010-10-16 02:46:32 -07007901 hpux*)
Lev Walkinaef10c32014-01-14 01:47:25 -08007902 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7903 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7904 # sets the default TLS model and affects inlining.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007905 case $host_cpu in
Lev Walkinaef10c32014-01-14 01:47:25 -08007906 hppa*64*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007907 # +Z the default
7908 ;;
7909 *)
7910 lt_prog_compiler_pic='-fPIC'
7911 ;;
7912 esac
7913 ;;
7914
7915 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7917 # Instead, we relocate shared libraries at runtime.
7918 ;;
7919
Lev Walkin8e8b5482004-06-17 23:42:48 +00007920 msdosdjgpp*)
7921 # Just because we use GCC doesn't mean we suddenly get shared libraries
7922 # on systems that don't support them.
7923 lt_prog_compiler_can_build_shared=no
7924 enable_shared=no
7925 ;;
7926
Lev Walkin4da95cf2010-10-16 02:46:32 -07007927 *nto* | *qnx*)
7928 # QNX uses GNU C++, but need to define -shared option too, otherwise
7929 # it will coredump.
7930 lt_prog_compiler_pic='-fPIC -shared'
7931 ;;
7932
Lev Walkin8e8b5482004-06-17 23:42:48 +00007933 sysv4*MP*)
7934 if test -d /usr/nec; then
7935 lt_prog_compiler_pic=-Kconform_pic
7936 fi
7937 ;;
7938
Lev Walkin8e8b5482004-06-17 23:42:48 +00007939 *)
7940 lt_prog_compiler_pic='-fPIC'
7941 ;;
7942 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08007943
7944 case $cc_basename in
7945 nvcc*) # Cuda Compiler Driver 2.2
7946 lt_prog_compiler_wl='-Xlinker '
7947 lt_prog_compiler_pic='-Xcompiler -fPIC'
7948 ;;
7949 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007950 else
7951 # PORTME Check for flag to pass linker flags through the system compiler.
7952 case $host_os in
7953 aix*)
7954 lt_prog_compiler_wl='-Wl,'
7955 if test "$host_cpu" = ia64; then
7956 # AIX 5 now supports IA64 processor
7957 lt_prog_compiler_static='-Bstatic'
7958 else
7959 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7960 fi
7961 ;;
7962
Lev Walkinaef10c32014-01-14 01:47:25 -08007963 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007964 # This hack is so that the source file can tell whether it is being
7965 # built for inclusion in a dll (and should export symbols for example).
7966 lt_prog_compiler_pic='-DDLL_EXPORT'
7967 ;;
7968
7969 hpux9* | hpux10* | hpux11*)
7970 lt_prog_compiler_wl='-Wl,'
7971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7972 # not for PA HP-UX.
Lev Walkinfbf1d282007-12-03 14:58:39 +00007973 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007974 hppa*64*|ia64*)
7975 # +Z the default
7976 ;;
7977 *)
7978 lt_prog_compiler_pic='+Z'
7979 ;;
7980 esac
7981 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7982 lt_prog_compiler_static='${wl}-a ${wl}archive'
7983 ;;
7984
7985 irix5* | irix6* | nonstopux*)
7986 lt_prog_compiler_wl='-Wl,'
7987 # PIC (with -KPIC) is the default.
7988 lt_prog_compiler_static='-non_shared'
7989 ;;
7990
Lev Walkinaef10c32014-01-14 01:47:25 -08007991 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007992 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08007993 # old Intel for x86_64 which still supported -KPIC.
7994 ecc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007995 lt_prog_compiler_wl='-Wl,'
7996 lt_prog_compiler_pic='-KPIC'
7997 lt_prog_compiler_static='-static'
7998 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08007999 # icc used to be incompatible with GCC.
8000 # ICC 10 doesn't accept -KPIC any more.
8001 icc* | ifort*)
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-fPIC'
8004 lt_prog_compiler_static='-static'
8005 ;;
8006 # Lahey Fortran 8.1.
8007 lf95*)
8008 lt_prog_compiler_wl='-Wl,'
8009 lt_prog_compiler_pic='--shared'
8010 lt_prog_compiler_static='--static'
8011 ;;
8012 nagfor*)
8013 # NAG Fortran compiler
8014 lt_prog_compiler_wl='-Wl,-Wl,,'
8015 lt_prog_compiler_pic='-PIC'
8016 lt_prog_compiler_static='-Bstatic'
8017 ;;
8018 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008019 # Portland Group compilers (*not* the Pentium gcc compiler,
8020 # which looks to be a dead project)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-fpic'
8023 lt_prog_compiler_static='-Bstatic'
8024 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008025 ccc*)
8026 lt_prog_compiler_wl='-Wl,'
8027 # All Alpha code is PIC.
8028 lt_prog_compiler_static='-non_shared'
8029 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008030 xl* | bgxl* | bgf* | mpixl*)
8031 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Lev Walkin4da95cf2010-10-16 02:46:32 -07008032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_pic='-qpic'
8034 lt_prog_compiler_static='-qstaticlink'
8035 ;;
8036 *)
8037 case `$CC -V 2>&1 | sed 5q` in
Lev Walkinaef10c32014-01-14 01:47:25 -08008038 *Sun\ F* | *Sun*Fortran*)
8039 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8040 lt_prog_compiler_pic='-KPIC'
8041 lt_prog_compiler_static='-Bstatic'
8042 lt_prog_compiler_wl=''
8043 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008044 *Sun\ C*)
8045 # Sun C 5.9
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 lt_prog_compiler_wl='-Wl,'
8049 ;;
8050 esac
8051 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008052 esac
8053 ;;
8054
Lev Walkin4da95cf2010-10-16 02:46:32 -07008055 newsos6)
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-Bstatic'
8058 ;;
8059
8060 *nto* | *qnx*)
8061 # QNX uses GNU C++, but need to define -shared option too, otherwise
8062 # it will coredump.
8063 lt_prog_compiler_pic='-fPIC -shared'
8064 ;;
8065
Lev Walkin8e8b5482004-06-17 23:42:48 +00008066 osf3* | osf4* | osf5*)
8067 lt_prog_compiler_wl='-Wl,'
8068 # All OSF/1 code is PIC.
8069 lt_prog_compiler_static='-non_shared'
8070 ;;
8071
Lev Walkin4da95cf2010-10-16 02:46:32 -07008072 rdos*)
8073 lt_prog_compiler_static='-non_shared'
8074 ;;
8075
Lev Walkin8e8b5482004-06-17 23:42:48 +00008076 solaris*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-Bstatic'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008079 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08008080 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008081 lt_prog_compiler_wl='-Qoption ld ';;
8082 *)
8083 lt_prog_compiler_wl='-Wl,';;
8084 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008085 ;;
8086
8087 sunos4*)
8088 lt_prog_compiler_wl='-Qoption ld '
8089 lt_prog_compiler_pic='-PIC'
8090 lt_prog_compiler_static='-Bstatic'
8091 ;;
8092
Lev Walkinfbf1d282007-12-03 14:58:39 +00008093 sysv4 | sysv4.2uw2* | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='-KPIC'
8096 lt_prog_compiler_static='-Bstatic'
8097 ;;
8098
8099 sysv4*MP*)
8100 if test -d /usr/nec ;then
8101 lt_prog_compiler_pic='-Kconform_pic'
8102 lt_prog_compiler_static='-Bstatic'
8103 fi
8104 ;;
8105
Lev Walkinfbf1d282007-12-03 14:58:39 +00008106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='-KPIC'
8109 lt_prog_compiler_static='-Bstatic'
8110 ;;
8111
8112 unicos*)
8113 lt_prog_compiler_wl='-Wl,'
8114 lt_prog_compiler_can_build_shared=no
8115 ;;
8116
Lev Walkin8e8b5482004-06-17 23:42:48 +00008117 uts4*)
8118 lt_prog_compiler_pic='-pic'
8119 lt_prog_compiler_static='-Bstatic'
8120 ;;
8121
8122 *)
8123 lt_prog_compiler_can_build_shared=no
8124 ;;
8125 esac
8126 fi
8127
Lev Walkinfbf1d282007-12-03 14:58:39 +00008128case $host_os in
Lev Walkin8e8b5482004-06-17 23:42:48 +00008129 # For platforms which do not support PIC, -DPIC is meaningless:
8130 *djgpp*)
8131 lt_prog_compiler_pic=
8132 ;;
8133 *)
8134 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8135 ;;
8136esac
8137
Lev Walkinaef10c32014-01-14 01:47:25 -08008138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8139$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8140if ${lt_cv_prog_compiler_pic+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142else
8143 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8144fi
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8146$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8147lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Lev Walkin4da95cf2010-10-16 02:46:32 -07008148
8149#
8150# Check to make sure the PIC flag actually works.
8151#
8152if test -n "$lt_prog_compiler_pic"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008154$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008155if ${lt_cv_prog_compiler_pic_works+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008156 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07008157else
8158 lt_cv_prog_compiler_pic_works=no
8159 ac_outfile=conftest.$ac_objext
8160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8161 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8162 # Insert the option either (1) after the last *FLAGS variable, or
8163 # (2) before a word containing "conftest.", or (3) at the end.
8164 # Note that $ac_compile itself does not contain backslashes and begins
8165 # with a dollar sign (not a hyphen), so the echo should work correctly.
8166 # The option is referenced via a variable to avoid confusing sed.
8167 lt_compile=`echo "$ac_compile" | $SED \
8168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8170 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008172 (eval "$lt_compile" 2>conftest.err)
8173 ac_status=$?
8174 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008176 if (exit $ac_status) && test -s "$ac_outfile"; then
8177 # The compiler can only warn and ignore the option if not recognized
8178 # So say no if there are warnings other than the usual output.
Lev Walkinaef10c32014-01-14 01:47:25 -08008179 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07008180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8182 lt_cv_prog_compiler_pic_works=yes
8183 fi
8184 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008185 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008186
8187fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008189$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07008190
8191if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8192 case $lt_prog_compiler_pic in
8193 "" | " "*) ;;
8194 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8195 esac
8196else
8197 lt_prog_compiler_pic=
8198 lt_prog_compiler_can_build_shared=no
8199fi
8200
8201fi
8202
8203
8204
8205
8206
8207
Lev Walkinaef10c32014-01-14 01:47:25 -08008208
8209
8210
8211
8212
Lev Walkinfbf1d282007-12-03 14:58:39 +00008213#
8214# Check to make sure the static flag actually works.
8215#
8216wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Lev Walkinaef10c32014-01-14 01:47:25 -08008217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008218$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008219if ${lt_cv_prog_compiler_static_works+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008220 $as_echo_n "(cached) " >&6
Lev Walkinfbf1d282007-12-03 14:58:39 +00008221else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008222 lt_cv_prog_compiler_static_works=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00008223 save_LDFLAGS="$LDFLAGS"
8224 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008225 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00008226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8227 # The linker can only warn and ignore the option if not recognized
8228 # So say no if there are warnings
8229 if test -s conftest.err; then
8230 # Append any errors to the config.log.
8231 cat conftest.err 1>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008232 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8234 if diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008235 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008236 fi
8237 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008238 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008239 fi
8240 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008241 $RM -r conftest*
Lev Walkinfbf1d282007-12-03 14:58:39 +00008242 LDFLAGS="$save_LDFLAGS"
8243
8244fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008246$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +00008247
Lev Walkin4da95cf2010-10-16 02:46:32 -07008248if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008249 :
8250else
8251 lt_prog_compiler_static=
8252fi
8253
8254
Lev Walkin4da95cf2010-10-16 02:46:32 -07008255
8256
8257
8258
8259
Lev Walkinaef10c32014-01-14 01:47:25 -08008260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008261$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008262if ${lt_cv_prog_compiler_c_o+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008263 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00008264else
8265 lt_cv_prog_compiler_c_o=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008266 $RM -r conftest 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008267 mkdir conftest
8268 cd conftest
8269 mkdir out
Lev Walkin4da95cf2010-10-16 02:46:32 -07008270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008271
8272 lt_compiler_flag="-o out/conftest2.$ac_objext"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00008278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008282 (eval "$lt_compile" 2>out/conftest.err)
8283 ac_status=$?
8284 cat out/conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8287 then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
Lev Walkinaef10c32014-01-14 01:47:25 -08008290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008293 lt_cv_prog_compiler_c_o=yes
8294 fi
8295 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008296 chmod u+w . 2>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008297 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008298 # SGI C++ compiler will create directory out/ii_files/ for
8299 # template instantiation
Lev Walkin4da95cf2010-10-16 02:46:32 -07008300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301 $RM out/* && rmdir out
Lev Walkin8e8b5482004-06-17 23:42:48 +00008302 cd ..
Lev Walkin4da95cf2010-10-16 02:46:32 -07008303 $RM -r conftest
Lev Walkinaef10c32014-01-14 01:47:25 -08008304 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008305
8306fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008308$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008309
8310
Lev Walkin4da95cf2010-10-16 02:46:32 -07008311
8312
8313
8314
Lev Walkinaef10c32014-01-14 01:47:25 -08008315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008316$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008317if ${lt_cv_prog_compiler_c_o+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008318 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07008319else
8320 lt_cv_prog_compiler_c_o=no
8321 $RM -r conftest 2>/dev/null
8322 mkdir conftest
8323 cd conftest
8324 mkdir out
8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326
8327 lt_compiler_flag="-o out/conftest2.$ac_objext"
8328 # Insert the option either (1) after the last *FLAGS variable, or
8329 # (2) before a word containing "conftest.", or (3) at the end.
8330 # Note that $ac_compile itself does not contain backslashes and begins
8331 # with a dollar sign (not a hyphen), so the echo should work correctly.
8332 lt_compile=`echo "$ac_compile" | $SED \
8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008337 (eval "$lt_compile" 2>out/conftest.err)
8338 ac_status=$?
8339 cat out/conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8342 then
8343 # The compiler can only warn and ignore the option if not recognized
8344 # So say no if there are warnings
Lev Walkinaef10c32014-01-14 01:47:25 -08008345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07008346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8348 lt_cv_prog_compiler_c_o=yes
8349 fi
8350 fi
8351 chmod u+w . 2>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008352 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008353 # SGI C++ compiler will create directory out/ii_files/ for
8354 # template instantiation
8355 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8356 $RM out/* && rmdir out
8357 cd ..
8358 $RM -r conftest
Lev Walkinaef10c32014-01-14 01:47:25 -08008359 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008360
8361fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008363$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07008364
8365
8366
8367
Lev Walkin8e8b5482004-06-17 23:42:48 +00008368hard_links="nottested"
8369if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8370 # do not overwrite the value of need_locks provided by the user
Lev Walkinaef10c32014-01-14 01:47:25 -08008371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008372$as_echo_n "checking if we can lock with hard links... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008373 hard_links=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008374 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8376 touch conftest.a
8377 ln conftest.a conftest.b 2>&5 || hard_links=no
8378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkinaef10c32014-01-14 01:47:25 -08008379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008380$as_echo "$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008381 if test "$hard_links" = no; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008383$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00008384 need_locks=warn
8385 fi
8386else
8387 need_locks=no
8388fi
8389
Lev Walkin4da95cf2010-10-16 02:46:32 -07008390
8391
8392
8393
8394
Lev Walkinaef10c32014-01-14 01:47:25 -08008395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008396$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008397
8398 runpath_var=
8399 allow_undefined_flag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008400 always_export_symbols=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008401 archive_cmds=
8402 archive_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008403 compiler_needs_object=no
8404 enable_shared_with_static_runtimes=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008405 export_dynamic_flag_spec=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008406 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8407 hardcode_automatic=no
8408 hardcode_direct=no
8409 hardcode_direct_absolute=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008410 hardcode_libdir_flag_spec=
8411 hardcode_libdir_flag_spec_ld=
8412 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008413 hardcode_minus_L=no
8414 hardcode_shlibpath_var=unsupported
Lev Walkin4da95cf2010-10-16 02:46:32 -07008415 inherit_rpath=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008416 link_all_deplibs=unknown
Lev Walkin8e8b5482004-06-17 23:42:48 +00008417 module_cmds=
8418 module_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008419 old_archive_from_new_cmds=
8420 old_archive_from_expsyms_cmds=
8421 thread_safe_flag_spec=
8422 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008423 # include_expsyms should be a list of space-separated symbols to be *always*
8424 # included in the symbol list
8425 include_expsyms=
8426 # exclude_expsyms can be an extended regexp of symbols to exclude
8427 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8428 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8429 # as well as any symbol that contains `d'.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008430 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008431 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8432 # platforms (ab)use it in PIC code, but their linkers get confused if
8433 # the symbol is explicitly referenced. Since portable code cannot
8434 # rely on this symbol name, it's probably fine to never include it in
8435 # preloaded symbol tables.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008436 # Exclude shared library initialization/finalization symbols.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008437 extract_expsyms_cmds=
8438
8439 case $host_os in
Lev Walkinaef10c32014-01-14 01:47:25 -08008440 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008441 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8442 # When not using gcc, we currently assume that we are using
8443 # Microsoft Visual C++.
8444 if test "$GCC" != yes; then
8445 with_gnu_ld=no
8446 fi
8447 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008448 interix*)
8449 # we just hope/assume this is gcc and not c89 (= MSVC++)
8450 with_gnu_ld=yes
8451 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008452 openbsd*)
8453 with_gnu_ld=no
8454 ;;
8455 esac
8456
8457 ld_shlibs=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008458
8459 # On some targets, GNU ld is compatible enough with the native linker
8460 # that we're better off using the native interface for both.
8461 lt_use_gnu_ld_interface=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008462 if test "$with_gnu_ld" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008463 case $host_os in
8464 aix*)
8465 # The AIX port of GNU ld has always aspired to compatibility
8466 # with the native linker. However, as the warning in the GNU ld
8467 # block says, versions before 2.19.5* couldn't really create working
8468 # shared libraries, regardless of the interface used.
8469 case `$LD -v 2>&1` in
8470 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8471 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8472 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8473 *)
8474 lt_use_gnu_ld_interface=yes
8475 ;;
8476 esac
8477 ;;
8478 *)
8479 lt_use_gnu_ld_interface=yes
8480 ;;
8481 esac
8482 fi
8483
8484 if test "$lt_use_gnu_ld_interface" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008485 # If archive_cmds runs LD, not CC, wlarc should be empty
8486 wlarc='${wl}'
8487
Lev Walkinfbf1d282007-12-03 14:58:39 +00008488 # Set some defaults for GNU ld with shared library support. These
8489 # are reset later if shared libraries are not supported. Putting them
8490 # here allows them to be overridden if necessary.
8491 runpath_var=LD_RUN_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07008492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008493 export_dynamic_flag_spec='${wl}--export-dynamic'
8494 # ancient GNU ld didn't support --whole-archive et. al.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008495 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8496 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8497 else
8498 whole_archive_flag_spec=
Lev Walkinfbf1d282007-12-03 14:58:39 +00008499 fi
8500 supports_anon_versioning=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008501 case `$LD -v 2>&1` in
Lev Walkinaef10c32014-01-14 01:47:25 -08008502 *GNU\ gold*) supports_anon_versioning=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008503 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8504 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8505 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8506 *\ 2.11.*) ;; # other 2.11 versions
8507 *) supports_anon_versioning=yes ;;
8508 esac
8509
Lev Walkin8e8b5482004-06-17 23:42:48 +00008510 # See if GNU ld supports shared libraries.
8511 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008512 aix[3-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008513 # On AIX/PPC, the GNU linker is very broken
8514 if test "$host_cpu" != ia64; then
8515 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008516 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008517
Lev Walkinaef10c32014-01-14 01:47:25 -08008518*** Warning: the GNU linker, at least up to release 2.19, is reported
Lev Walkin8e8b5482004-06-17 23:42:48 +00008519*** to be unable to reliably create shared libraries on AIX.
8520*** Therefore, libtool is disabling shared libraries support. If you
Lev Walkinaef10c32014-01-14 01:47:25 -08008521*** really care for shared libraries, you may want to install binutils
8522*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8523*** You will then need to restart the configuration process.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008524
Lev Walkin4da95cf2010-10-16 02:46:32 -07008525_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008526 fi
8527 ;;
8528
8529 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008530 case $host_cpu in
8531 powerpc)
8532 # see comment about AmigaOS4 .so support
8533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534 archive_expsym_cmds=''
8535 ;;
8536 m68k)
8537 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)'
8538 hardcode_libdir_flag_spec='-L$libdir'
8539 hardcode_minus_L=yes
8540 ;;
8541 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008542 ;;
8543
8544 beos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008545 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008546 allow_undefined_flag=unsupported
8547 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8548 # support --undefined. This deserves some investigation. FIXME
8549 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 else
8551 ld_shlibs=no
8552 fi
8553 ;;
8554
Lev Walkinaef10c32014-01-14 01:47:25 -08008555 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008556 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Lev Walkin8e8b5482004-06-17 23:42:48 +00008557 # as there is no search path for DLLs.
8558 hardcode_libdir_flag_spec='-L$libdir'
Lev Walkinaef10c32014-01-14 01:47:25 -08008559 export_dynamic_flag_spec='${wl}--export-all-symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008560 allow_undefined_flag=unsupported
8561 always_export_symbols=no
8562 enable_shared_with_static_runtimes=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008563 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'
8564 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008565
Lev Walkin4da95cf2010-10-16 02:46:32 -07008566 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008568 # If the export-symbols file already is a .def file (1st line
8569 # is EXPORTS), use it as is; otherwise, prepend...
8570 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8571 cp $export_symbols $output_objdir/$soname.def;
8572 else
8573 echo EXPORTS > $output_objdir/$soname.def;
8574 cat $export_symbols >> $output_objdir/$soname.def;
8575 fi~
Lev Walkinfbf1d282007-12-03 14:58:39 +00008576 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8577 else
8578 ld_shlibs=no
8579 fi
8580 ;;
8581
Lev Walkinaef10c32014-01-14 01:47:25 -08008582 haiku*)
8583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8584 link_all_deplibs=yes
8585 ;;
8586
Lev Walkin4da95cf2010-10-16 02:46:32 -07008587 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008588 hardcode_direct=no
8589 hardcode_shlibpath_var=no
8590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8591 export_dynamic_flag_spec='${wl}-E'
8592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8593 # Instead, shared libraries are loaded at an image base (0x10000000 by
8594 # default) and relocated if they conflict, which is a slow very memory
8595 # consuming and fragmenting process. To avoid this, we pick a random,
8596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8599 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'
8600 ;;
8601
Lev Walkinaef10c32014-01-14 01:47:25 -08008602 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008603 tmp_diet=no
8604 if test "$host_os" = linux-dietlibc; then
8605 case $cc_basename in
8606 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8607 esac
8608 fi
8609 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8610 && test "$tmp_diet" = no
8611 then
Lev Walkinaef10c32014-01-14 01:47:25 -08008612 tmp_addflag=' $pic_flag'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008613 tmp_sharedflag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008614 case $cc_basename,$host_cpu in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008615 pgcc*) # Portland Group C compiler
Lev Walkinaef10c32014-01-14 01:47:25 -08008616 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'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008617 tmp_addflag=' $pic_flag'
8618 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008619 pgf77* | pgf90* | pgf95* | pgfortran*)
8620 # Portland Group f77 and f90 compilers
8621 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'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008622 tmp_addflag=' $pic_flag -Mnomain' ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008623 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Lev Walkinfbf1d282007-12-03 14:58:39 +00008624 tmp_addflag=' -i_dynamic' ;;
8625 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8626 tmp_addflag=' -i_dynamic -nofor_main' ;;
8627 ifc* | ifort*) # Intel Fortran compiler
8628 tmp_addflag=' -nofor_main' ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008629 lf95*) # Lahey Fortran 8.1
8630 whole_archive_flag_spec=
8631 tmp_sharedflag='--shared' ;;
8632 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008633 tmp_sharedflag='-qmkshrobj'
8634 tmp_addflag= ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008635 nvcc*) # Cuda Compiler Driver 2.2
8636 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'
8637 compiler_needs_object=yes
8638 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008639 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008640 case `$CC -V 2>&1 | sed 5q` in
8641 *Sun\ C*) # Sun C 5.9
Lev Walkinaef10c32014-01-14 01:47:25 -08008642 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008643 compiler_needs_object=yes
8644 tmp_sharedflag='-G' ;;
8645 *Sun\ F*) # Sun Fortran 8.3
8646 tmp_sharedflag='-G' ;;
8647 esac
8648 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008649
Lev Walkin4da95cf2010-10-16 02:46:32 -07008650 if test "x$supports_anon_versioning" = xyes; then
8651 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8653 echo "local: *; };" >> $output_objdir/$libname.ver~
8654 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8655 fi
8656
8657 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08008658 xlf* | bgf* | bgxlf* | mpixlf*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008659 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8660 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8661 hardcode_libdir_flag_spec=
8662 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Lev Walkinaef10c32014-01-14 01:47:25 -08008663 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008664 if test "x$supports_anon_versioning" = xyes; then
8665 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8666 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8667 echo "local: *; };" >> $output_objdir/$libname.ver~
Lev Walkinaef10c32014-01-14 01:47:25 -08008668 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008669 fi
8670 ;;
8671 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008672 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008673 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008674 fi
8675 ;;
8676
8677 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008679 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8680 wlarc=
8681 else
Lev Walkinaef10c32014-01-14 01:47:25 -08008682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008684 fi
8685 ;;
8686
Lev Walkinfbf1d282007-12-03 14:58:39 +00008687 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008688 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008689 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008690 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008691
8692*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8693*** create shared libraries on Solaris systems. Therefore, libtool
8694*** is disabling shared libraries support. We urge you to upgrade GNU
8695*** binutils to release 2.9.1 or newer. Another option is to modify
8696*** your PATH or compiler configuration so that the native linker is
8697*** used, and then restart.
8698
Lev Walkin4da95cf2010-10-16 02:46:32 -07008699_LT_EOF
8700 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8702 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008703 else
8704 ld_shlibs=no
8705 fi
8706 ;;
8707
Lev Walkinfbf1d282007-12-03 14:58:39 +00008708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8709 case `$LD -v 2>&1` in
8710 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8711 ld_shlibs=no
8712 cat <<_LT_EOF 1>&2
8713
8714*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8715*** reliably create shared libraries on SCO systems. Therefore, libtool
8716*** is disabling shared libraries support. We urge you to upgrade GNU
8717*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8718*** your PATH or compiler configuration so that the native linker is
8719*** used, and then restart.
8720
8721_LT_EOF
8722 ;;
8723 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008724 # For security reasons, it is highly recommended that you always
8725 # use absolute paths for naming shared libraries, and exclude the
8726 # DT_RUNPATH tag from executables and libraries. But doing so
8727 # requires that you compile everything twice, which is a pain.
8728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008732 else
8733 ld_shlibs=no
8734 fi
8735 ;;
8736 esac
8737 ;;
8738
Lev Walkin8e8b5482004-06-17 23:42:48 +00008739 sunos4*)
8740 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8741 wlarc=
8742 hardcode_direct=yes
8743 hardcode_shlibpath_var=no
8744 ;;
8745
Lev Walkin8e8b5482004-06-17 23:42:48 +00008746 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008750 else
8751 ld_shlibs=no
8752 fi
8753 ;;
8754 esac
8755
Lev Walkinfbf1d282007-12-03 14:58:39 +00008756 if test "$ld_shlibs" = no; then
8757 runpath_var=
8758 hardcode_libdir_flag_spec=
8759 export_dynamic_flag_spec=
8760 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008761 fi
8762 else
8763 # PORTME fill in a description of your system's linker (not GNU ld)
8764 case $host_os in
8765 aix3*)
8766 allow_undefined_flag=unsupported
8767 always_export_symbols=yes
8768 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'
8769 # Note: this linker hardcodes the directories in LIBPATH if there
8770 # are no directories specified by -L.
8771 hardcode_minus_L=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008773 # Neither direct hardcoding nor static linking is supported with a
8774 # broken collect2.
8775 hardcode_direct=unsupported
8776 fi
8777 ;;
8778
Lev Walkin4da95cf2010-10-16 02:46:32 -07008779 aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008780 if test "$host_cpu" = ia64; then
8781 # On IA64, the linker does run time linking by default, so we don't
8782 # have to do anything special.
8783 aix_use_runtimelinking=no
8784 exp_sym_flag='-Bexport'
8785 no_entry_flag=""
8786 else
8787 # If we're using GNU nm, then we don't want the "-C" option.
8788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Lev Walkinaef10c32014-01-14 01:47:25 -08008789 # Also, AIX nm treats weak defined symbols like other global
8790 # defined symbols, whereas GNU nm marks them as "W".
Lev Walkin4da95cf2010-10-16 02:46:32 -07008791 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008792 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008793 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008794 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008795 fi
8796 aix_use_runtimelinking=no
8797
8798 # Test if we are trying to use run time linking or normal
8799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8800 # need to do runtime linking.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008801 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008802 for ld_flag in $LDFLAGS; do
Lev Walkin4da95cf2010-10-16 02:46:32 -07008803 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8804 aix_use_runtimelinking=yes
8805 break
8806 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008807 done
Lev Walkinfbf1d282007-12-03 14:58:39 +00008808 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008809 esac
8810
8811 exp_sym_flag='-bexport'
8812 no_entry_flag='-bnoentry'
8813 fi
8814
8815 # When large executables or shared objects are built, AIX ld can
8816 # have problems creating the table of contents. If linking a library
8817 # or program results in "error TOC overflow" add -mminimal-toc to
8818 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8819 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8820
8821 archive_cmds=''
8822 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008823 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008824 hardcode_libdir_separator=':'
8825 link_all_deplibs=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008826 file_list_spec='${wl}-f,'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008827
8828 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008829 case $host_os in aix4.[012]|aix4.[012].*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008830 # We only want to do this on AIX 4.2 and lower, the check
8831 # below for broken collect2 doesn't work under 4.3+
8832 collect2name=`${CC} -print-prog-name=collect2`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008833 if test -f "$collect2name" &&
8834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008835 then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008836 # We have reworked collect2
8837 :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008838 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008839 # We have old collect2
8840 hardcode_direct=unsupported
8841 # It fails to find uninstalled libraries when the uninstalled
8842 # path is not listed in the libpath. Setting hardcode_minus_L
8843 # to unsupported forces relinking
8844 hardcode_minus_L=yes
8845 hardcode_libdir_flag_spec='-L$libdir'
8846 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008847 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008848 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008849 esac
8850 shared_flag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008851 if test "$aix_use_runtimelinking" = yes; then
8852 shared_flag="$shared_flag "'${wl}-G'
8853 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008854 else
8855 # not using gcc
8856 if test "$host_cpu" = ia64; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8858 # chokes on -Wl,-G. The following line is correct:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008859 shared_flag='-G'
8860 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008861 if test "$aix_use_runtimelinking" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008862 shared_flag='${wl}-G'
8863 else
8864 shared_flag='${wl}-bM:SRE'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008865 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008866 fi
8867 fi
8868
Lev Walkinaef10c32014-01-14 01:47:25 -08008869 export_dynamic_flag_spec='${wl}-bexpall'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008870 # It seems that -bexpall does not export symbols beginning with
8871 # underscore (_), so it is better to generate a list of symbols to export.
8872 always_export_symbols=yes
8873 if test "$aix_use_runtimelinking" = yes; then
8874 # Warning - without using the other runtime loading flags (-brtl),
8875 # -berok will link without error, but may produce a broken library.
8876 allow_undefined_flag='-berok'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008877 # Determine the default libpath from the value encoded in an
8878 # empty executable.
Lev Walkinaef10c32014-01-14 01:47:25 -08008879 if test "${lt_cv_aix_libpath+set}" = set; then
8880 aix_libpath=$lt_cv_aix_libpath
8881else
8882 if ${lt_cv_aix_libpath_+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884else
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008886/* end confdefs.h. */
8887
8888int
8889main ()
8890{
8891
8892 ;
8893 return 0;
8894}
8895_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08008896if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008897
Lev Walkinaef10c32014-01-14 01:47:25 -08008898 lt_aix_libpath_sed='
8899 /Import File Strings/,/^$/ {
8900 /^0/ {
8901 s/^0 *\([^ ]*\) *$/\1/
8902 p
8903 }
8904 }'
8905 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8906 # Check for a 64-bit object if we didn't find anything.
8907 if test -z "$lt_cv_aix_libpath_"; then
8908 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8909 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08008910fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008911rm -f core conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8913 if test -z "$lt_cv_aix_libpath_"; then
8914 lt_cv_aix_libpath_="/usr/lib:/lib"
8915 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008916
Lev Walkin8e8b5482004-06-17 23:42:48 +00008917fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008918
Lev Walkinaef10c32014-01-14 01:47:25 -08008919 aix_libpath=$lt_cv_aix_libpath_
8920fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008921
8922 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Lev Walkinaef10c32014-01-14 01:47:25 -08008923 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008924 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00008925 if test "$host_cpu" = ia64; then
8926 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8927 allow_undefined_flag="-z nodefs"
Lev Walkinfbf1d282007-12-03 14:58:39 +00008928 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"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008929 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008930 # Determine the default libpath from the value encoded in an
8931 # empty executable.
Lev Walkinaef10c32014-01-14 01:47:25 -08008932 if test "${lt_cv_aix_libpath+set}" = set; then
8933 aix_libpath=$lt_cv_aix_libpath
8934else
8935 if ${lt_cv_aix_libpath_+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937else
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008939/* end confdefs.h. */
8940
8941int
8942main ()
8943{
8944
8945 ;
8946 return 0;
8947}
8948_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08008949if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008950
Lev Walkinaef10c32014-01-14 01:47:25 -08008951 lt_aix_libpath_sed='
8952 /Import File Strings/,/^$/ {
8953 /^0/ {
8954 s/^0 *\([^ ]*\) *$/\1/
8955 p
8956 }
8957 }'
8958 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959 # Check for a 64-bit object if we didn't find anything.
8960 if test -z "$lt_cv_aix_libpath_"; then
8961 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8962 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08008963fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008964rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 if test -z "$lt_cv_aix_libpath_"; then
8967 lt_cv_aix_libpath_="/usr/lib:/lib"
8968 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008969
Lev Walkin8e8b5482004-06-17 23:42:48 +00008970fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008971
Lev Walkinaef10c32014-01-14 01:47:25 -08008972 aix_libpath=$lt_cv_aix_libpath_
8973fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008974
8975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8976 # Warning - without using the other run time loading flags,
8977 # -berok will link without error, but may produce a broken library.
8978 no_undefined_flag=' ${wl}-bernotok'
8979 allow_undefined_flag=' ${wl}-berok'
Lev Walkinaef10c32014-01-14 01:47:25 -08008980 if test "$with_gnu_ld" = yes; then
8981 # We only use this code for GNU lds that support --whole-archive.
8982 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8983 else
8984 # Exported symbols can be pulled into shared objects from archives
8985 whole_archive_flag_spec='$convenience'
8986 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008987 archive_cmds_need_lc=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008988 # This is similar to how AIX traditionally builds its shared libraries.
8989 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008990 fi
8991 fi
8992 ;;
8993
8994 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008995 case $host_cpu in
8996 powerpc)
8997 # see comment about AmigaOS4 .so support
8998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8999 archive_expsym_cmds=''
9000 ;;
9001 m68k)
9002 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)'
9003 hardcode_libdir_flag_spec='-L$libdir'
9004 hardcode_minus_L=yes
9005 ;;
9006 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009007 ;;
9008
Lev Walkinfbf1d282007-12-03 14:58:39 +00009009 bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009010 export_dynamic_flag_spec=-rdynamic
9011 ;;
9012
Lev Walkinaef10c32014-01-14 01:47:25 -08009013 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009014 # When not using gcc, we currently assume that we are using
9015 # Microsoft Visual C++.
9016 # hardcode_libdir_flag_spec is actually meaningless, as there is
9017 # no search path for DLLs.
Lev Walkinaef10c32014-01-14 01:47:25 -08009018 case $cc_basename in
9019 cl*)
9020 # Native MSVC
9021 hardcode_libdir_flag_spec=' '
9022 allow_undefined_flag=unsupported
9023 always_export_symbols=yes
9024 file_list_spec='@'
9025 # Tell ltmain to make .lib files, not .a files.
9026 libext=lib
9027 # Tell ltmain to make .dll files, not .so files.
9028 shrext_cmds=".dll"
9029 # FIXME: Setting linknames here is a bad hack.
9030 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9031 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9032 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9033 else
9034 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9035 fi~
9036 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9037 linknames='
9038 # The linker will not automatically build a static lib if we build a DLL.
9039 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9040 enable_shared_with_static_runtimes=yes
9041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9042 # Don't use ranlib
9043 old_postinstall_cmds='chmod 644 $oldlib'
9044 postlink_cmds='lt_outputfile="@OUTPUT@"~
9045 lt_tool_outputfile="@TOOL_OUTPUT@"~
9046 case $lt_outputfile in
9047 *.exe|*.EXE) ;;
9048 *)
9049 lt_outputfile="$lt_outputfile.exe"
9050 lt_tool_outputfile="$lt_tool_outputfile.exe"
9051 ;;
9052 esac~
9053 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9054 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9055 $RM "$lt_outputfile.manifest";
9056 fi'
9057 ;;
9058 *)
9059 # Assume MSVC wrapper
9060 hardcode_libdir_flag_spec=' '
9061 allow_undefined_flag=unsupported
9062 # Tell ltmain to make .lib files, not .a files.
9063 libext=lib
9064 # Tell ltmain to make .dll files, not .so files.
9065 shrext_cmds=".dll"
9066 # FIXME: Setting linknames here is a bad hack.
9067 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9068 # The linker will automatically build a .lib file if we build a DLL.
9069 old_archive_from_new_cmds='true'
9070 # FIXME: Should let the user specify the lib program.
9071 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9072 enable_shared_with_static_runtimes=yes
9073 ;;
9074 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009075 ;;
9076
9077 darwin* | rhapsody*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009078
9079
9080 archive_cmds_need_lc=no
9081 hardcode_direct=no
9082 hardcode_automatic=yes
9083 hardcode_shlibpath_var=unsupported
Lev Walkinaef10c32014-01-14 01:47:25 -08009084 if test "$lt_cv_ld_force_load" = "yes"; then
9085 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\"`'
9086 else
9087 whole_archive_flag_spec=''
9088 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009089 link_all_deplibs=yes
9090 allow_undefined_flag="$_lt_dar_allow_undefined"
Lev Walkinaef10c32014-01-14 01:47:25 -08009091 case $cc_basename in
9092 ifort*) _lt_dar_can_shared=yes ;;
9093 *) _lt_dar_can_shared=$GCC ;;
9094 esac
9095 if test "$_lt_dar_can_shared" = "yes"; then
9096 output_verbose_link_cmd=func_echo_all
Lev Walkin4da95cf2010-10-16 02:46:32 -07009097 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9098 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9099 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}"
9100 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}"
9101
9102 else
9103 ld_shlibs=no
9104 fi
9105
Lev Walkin8e8b5482004-06-17 23:42:48 +00009106 ;;
9107
9108 dgux*)
9109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9110 hardcode_libdir_flag_spec='-L$libdir'
9111 hardcode_shlibpath_var=no
9112 ;;
9113
9114 freebsd1*)
9115 ld_shlibs=no
9116 ;;
9117
9118 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9119 # support. Future versions do this automatically, but an explicit c++rt0.o
9120 # does not break anything, and helps significantly (at the cost of a little
9121 # extra space).
9122 freebsd2.2*)
9123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9124 hardcode_libdir_flag_spec='-R$libdir'
9125 hardcode_direct=yes
9126 hardcode_shlibpath_var=no
9127 ;;
9128
9129 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9130 freebsd2*)
9131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132 hardcode_direct=yes
9133 hardcode_minus_L=yes
9134 hardcode_shlibpath_var=no
9135 ;;
9136
9137 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Lev Walkin4da95cf2010-10-16 02:46:32 -07009138 freebsd* | dragonfly*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009140 hardcode_libdir_flag_spec='-R$libdir'
9141 hardcode_direct=yes
9142 hardcode_shlibpath_var=no
9143 ;;
9144
9145 hpux9*)
9146 if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08009147 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009148 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009149 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009150 fi
9151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9152 hardcode_libdir_separator=:
9153 hardcode_direct=yes
9154
9155 # hardcode_minus_L: Not really in the search PATH,
9156 # but as the default location of the library.
9157 hardcode_minus_L=yes
9158 export_dynamic_flag_spec='${wl}-E'
9159 ;;
9160
Lev Walkinfbf1d282007-12-03 14:58:39 +00009161 hpux10*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009162 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9163 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009164 else
9165 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9166 fi
9167 if test "$with_gnu_ld" = no; then
9168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009169 hardcode_libdir_flag_spec_ld='+b $libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009170 hardcode_libdir_separator=:
Lev Walkinfbf1d282007-12-03 14:58:39 +00009171 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009172 hardcode_direct_absolute=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009173 export_dynamic_flag_spec='${wl}-E'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009174 # hardcode_minus_L: Not really in the search PATH,
9175 # but as the default location of the library.
9176 hardcode_minus_L=yes
9177 fi
9178 ;;
9179
9180 hpux11*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009181 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009182 case $host_cpu in
9183 hppa*64*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009184 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9185 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009186 ia64*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009187 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009188 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009189 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08009190 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009191 ;;
9192 esac
9193 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009194 case $host_cpu in
9195 hppa*64*)
9196 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9197 ;;
9198 ia64*)
9199 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009200 ;;
9201 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08009202
9203 # Older versions of the 11.00 compiler do not understand -b yet
9204 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9206$as_echo_n "checking if $CC understands -b... " >&6; }
9207if ${lt_cv_prog_compiler__b+:} false; then :
9208 $as_echo_n "(cached) " >&6
9209else
9210 lt_cv_prog_compiler__b=no
9211 save_LDFLAGS="$LDFLAGS"
9212 LDFLAGS="$LDFLAGS -b"
9213 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9215 # The linker can only warn and ignore the option if not recognized
9216 # So say no if there are warnings
9217 if test -s conftest.err; then
9218 # Append any errors to the config.log.
9219 cat conftest.err 1>&5
9220 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9222 if diff conftest.exp conftest.er2 >/dev/null; then
9223 lt_cv_prog_compiler__b=yes
9224 fi
9225 else
9226 lt_cv_prog_compiler__b=yes
9227 fi
9228 fi
9229 $RM -r conftest*
9230 LDFLAGS="$save_LDFLAGS"
9231
9232fi
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9234$as_echo "$lt_cv_prog_compiler__b" >&6; }
9235
9236if test x"$lt_cv_prog_compiler__b" = xyes; then
9237 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9238else
9239 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9240fi
9241
Lev Walkin8e8b5482004-06-17 23:42:48 +00009242 ;;
9243 esac
9244 fi
9245 if test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9247 hardcode_libdir_separator=:
Lev Walkin8e8b5482004-06-17 23:42:48 +00009248
Lev Walkinfbf1d282007-12-03 14:58:39 +00009249 case $host_cpu in
9250 hppa*64*|ia64*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009251 hardcode_direct=no
9252 hardcode_shlibpath_var=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009253 ;;
9254 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009255 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009256 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009257 export_dynamic_flag_spec='${wl}-E'
9258
9259 # hardcode_minus_L: Not really in the search PATH,
9260 # but as the default location of the library.
9261 hardcode_minus_L=yes
9262 ;;
9263 esac
9264 fi
9265 ;;
9266
9267 irix5* | irix6* | nonstopux*)
9268 if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08009269 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009270 # Try to use the -exported_symbol ld option, if it does not
9271 # work, assume that -exports_file does not work either and
9272 # implicitly export all symbols.
Lev Walkinaef10c32014-01-14 01:47:25 -08009273 # This should be the same for all languages, so no per-tag cache variable.
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9275$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9276if ${lt_cv_irix_exported_symbol+:} false; then :
9277 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07009278else
Lev Walkinaef10c32014-01-14 01:47:25 -08009279 save_LDFLAGS="$LDFLAGS"
9280 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h. */
9283int foo (void) { return 0; }
9284_ACEOF
9285if ac_fn_c_try_link "$LINENO"; then :
9286 lt_cv_irix_exported_symbol=yes
9287else
9288 lt_cv_irix_exported_symbol=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009289fi
Lev Walkinaef10c32014-01-14 01:47:25 -08009290rm -f core conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292 LDFLAGS="$save_LDFLAGS"
9293fi
9294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9295$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9296 if test "$lt_cv_irix_exported_symbol" = yes; then
9297 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'
9298 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009299 else
Lev Walkinaef10c32014-01-14 01:47:25 -08009300 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'
9301 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009302 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009303 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305 hardcode_libdir_separator=:
Lev Walkin4da95cf2010-10-16 02:46:32 -07009306 inherit_rpath=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009307 link_all_deplibs=yes
9308 ;;
9309
9310 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9313 else
9314 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9315 fi
9316 hardcode_libdir_flag_spec='-R$libdir'
9317 hardcode_direct=yes
9318 hardcode_shlibpath_var=no
9319 ;;
9320
9321 newsos6)
9322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323 hardcode_direct=yes
9324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9325 hardcode_libdir_separator=:
9326 hardcode_shlibpath_var=no
9327 ;;
9328
Lev Walkin4da95cf2010-10-16 02:46:32 -07009329 *nto* | *qnx*)
9330 ;;
9331
Lev Walkin8e8b5482004-06-17 23:42:48 +00009332 openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009333 if test -f /usr/libexec/ld.so; then
9334 hardcode_direct=yes
9335 hardcode_shlibpath_var=no
9336 hardcode_direct_absolute=yes
9337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9339 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341 export_dynamic_flag_spec='${wl}-E'
9342 else
9343 case $host_os in
9344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_libdir_flag_spec='-R$libdir'
9347 ;;
9348 *)
9349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9351 ;;
9352 esac
9353 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009354 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009355 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009356 fi
9357 ;;
9358
9359 os2*)
9360 hardcode_libdir_flag_spec='-L$libdir'
9361 hardcode_minus_L=yes
9362 allow_undefined_flag=unsupported
Lev Walkinaef10c32014-01-14 01:47:25 -08009363 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009364 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009365 ;;
9366
9367 osf3*)
9368 if test "$GCC" = yes; then
9369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009370 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009371 else
9372 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009373 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009374 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009375 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9377 hardcode_libdir_separator=:
9378 ;;
9379
9380 osf4* | osf5*) # as osf3* with the addition of -msym flag
9381 if test "$GCC" = yes; then
9382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009383 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9385 else
9386 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009387 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009388 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~
Lev Walkinaef10c32014-01-14 01:47:25 -08009389 $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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009390
9391 # Both c and cxx compiler support -rpath directly
9392 hardcode_libdir_flag_spec='-rpath $libdir'
9393 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009394 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009395 hardcode_libdir_separator=:
9396 ;;
9397
Lev Walkin8e8b5482004-06-17 23:42:48 +00009398 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009399 no_undefined_flag=' -z defs'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009400 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009401 wlarc='${wl}'
Lev Walkinaef10c32014-01-14 01:47:25 -08009402 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Lev Walkinaef10c32014-01-14 01:47:25 -08009404 $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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009405 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009406 case `$CC -V 2>&1` in
9407 *"Compilers 5.0"*)
9408 wlarc=''
9409 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9412 ;;
9413 *)
9414 wlarc='${wl}'
9415 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9417 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9418 ;;
9419 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009420 fi
9421 hardcode_libdir_flag_spec='-R$libdir'
9422 hardcode_shlibpath_var=no
9423 case $host_os in
9424 solaris2.[0-5] | solaris2.[0-5].*) ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009425 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009426 # The compiler driver will combine and reorder linker options,
9427 # but understands `-z linker_flag'. GCC discards it without `$wl',
9428 # but is careful enough not to reorder.
9429 # Supported since Solaris 2.6 (maybe 2.5.1?)
9430 if test "$GCC" = yes; then
9431 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9432 else
9433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9434 fi
9435 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009436 esac
9437 link_all_deplibs=yes
9438 ;;
9439
9440 sunos4*)
9441 if test "x$host_vendor" = xsequent; then
9442 # Use $CC to link under sequent, because it throws in some extra .o
9443 # files that make .init and .fini sections work.
9444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9445 else
9446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9447 fi
9448 hardcode_libdir_flag_spec='-L$libdir'
9449 hardcode_direct=yes
9450 hardcode_minus_L=yes
9451 hardcode_shlibpath_var=no
9452 ;;
9453
9454 sysv4)
9455 case $host_vendor in
9456 sni)
9457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458 hardcode_direct=yes # is this really true???
9459 ;;
9460 siemens)
9461 ## LD is ld it makes a PLAMLIB
9462 ## CC just makes a GrossModule.
9463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9464 reload_cmds='$CC -r -o $output$reload_objs'
9465 hardcode_direct=no
9466 ;;
9467 motorola)
9468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9470 ;;
9471 esac
9472 runpath_var='LD_RUN_PATH'
9473 hardcode_shlibpath_var=no
9474 ;;
9475
9476 sysv4.3*)
9477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_shlibpath_var=no
9479 export_dynamic_flag_spec='-Bexport'
9480 ;;
9481
9482 sysv4*MP*)
9483 if test -d /usr/nec; then
9484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485 hardcode_shlibpath_var=no
9486 runpath_var=LD_RUN_PATH
9487 hardcode_runpath_var=yes
9488 ld_shlibs=yes
9489 fi
9490 ;;
9491
Lev Walkin4da95cf2010-10-16 02:46:32 -07009492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009493 no_undefined_flag='${wl}-z,text'
9494 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009495 hardcode_shlibpath_var=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009496 runpath_var='LD_RUN_PATH'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009497
Lev Walkin8e8b5482004-06-17 23:42:48 +00009498 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009501 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009504 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009505 ;;
9506
Lev Walkinfbf1d282007-12-03 14:58:39 +00009507 sysv5* | sco3.2v5* | sco5v6*)
9508 # Note: We can NOT use -z defs as we might desire, because we do not
9509 # link with -lc, and that would cause any symbols used from libc to
9510 # always be unresolved, which means just about no library would
9511 # ever link correctly. If we're not using GNU ld we use -z text
9512 # though, which does catch some bad symbols but isn't as heavy-handed
9513 # as -z defs.
9514 no_undefined_flag='${wl}-z,text'
9515 allow_undefined_flag='${wl}-z,nodefs'
9516 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009517 hardcode_shlibpath_var=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009518 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009519 hardcode_libdir_separator=':'
9520 link_all_deplibs=yes
9521 export_dynamic_flag_spec='${wl}-Bexport'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009522 runpath_var='LD_RUN_PATH'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009523
9524 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009527 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009530 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009531 ;;
9532
9533 uts4*)
9534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_libdir_flag_spec='-L$libdir'
9536 hardcode_shlibpath_var=no
9537 ;;
9538
9539 *)
9540 ld_shlibs=no
9541 ;;
9542 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07009543
9544 if test x$host_vendor = xsni; then
9545 case $host in
9546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9547 export_dynamic_flag_spec='${wl}-Blargedynsym'
9548 ;;
9549 esac
9550 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009551 fi
9552
Lev Walkinaef10c32014-01-14 01:47:25 -08009553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009554$as_echo "$ld_shlibs" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009555test "$ld_shlibs" = no && can_build_shared=no
9556
Lev Walkin4da95cf2010-10-16 02:46:32 -07009557with_gnu_ld=$with_gnu_ld
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
Lev Walkin8e8b5482004-06-17 23:42:48 +00009573#
9574# Do we need to explicitly link libc?
9575#
9576case "x$archive_cmds_need_lc" in
9577x|xyes)
9578 # Assume -lc should be added
9579 archive_cmds_need_lc=yes
9580
9581 if test "$enable_shared" = yes && test "$GCC" = yes; then
9582 case $archive_cmds in
9583 *'~'*)
9584 # FIXME: we may have to deal with multi-command sequences.
9585 ;;
9586 '$CC '*)
9587 # Test whether the compiler implicitly links with -lc since on some
9588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9589 # to ld, don't add -lc before -lgcc.
Lev Walkinaef10c32014-01-14 01:47:25 -08009590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009591$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08009592if ${lt_cv_archive_cmds_need_lc+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594else
9595 $RM conftest*
9596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00009597
Lev Walkinaef10c32014-01-14 01:47:25 -08009598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009599 (eval $ac_compile) 2>&5
9600 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08009601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9602 test $ac_status = 0; } 2>conftest.err; then
9603 soname=conftest
9604 lib=conftest
9605 libobjs=conftest.$ac_objext
9606 deplibs=
9607 wl=$lt_prog_compiler_wl
9608 pic_flag=$lt_prog_compiler_pic
9609 compiler_flags=-v
9610 linker_flags=-v
9611 verstring=
9612 output_objdir=.
9613 libname=conftest
9614 lt_save_allow_undefined_flag=$allow_undefined_flag
9615 allow_undefined_flag=
9616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07009617 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009618 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08009619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9620 test $ac_status = 0; }
9621 then
9622 lt_cv_archive_cmds_need_lc=no
9623 else
9624 lt_cv_archive_cmds_need_lc=yes
9625 fi
9626 allow_undefined_flag=$lt_save_allow_undefined_flag
9627 else
9628 cat conftest.err 1>&5
9629 fi
9630 $RM conftest*
9631
9632fi
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9634$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9635 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Lev Walkin8e8b5482004-06-17 23:42:48 +00009636 ;;
9637 esac
9638 fi
9639 ;;
9640esac
9641
Lev Walkin4da95cf2010-10-16 02:46:32 -07009642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
Lev Walkinaef10c32014-01-14 01:47:25 -08009798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009799$as_echo_n "checking dynamic linker characteristics... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07009800
9801if test "$GCC" = yes; then
9802 case $host_os in
9803 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9804 *) lt_awk_arg="/^libraries:/" ;;
9805 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08009806 case $host_os in
9807 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9808 *) lt_sed_strip_eq="s,=/,/,g" ;;
9809 esac
9810 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9811 case $lt_search_path_spec in
9812 *\;*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009813 # if the path contains ";" then we assume it to be the separator
9814 # otherwise default to the standard path separator (i.e. ":") - it is
9815 # assumed that no part of a normal pathname contains ";" but that should
9816 # okay in the real world where ";" in dirpaths is itself problematic.
Lev Walkinaef10c32014-01-14 01:47:25 -08009817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9818 ;;
9819 *)
9820 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9821 ;;
9822 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07009823 # Ok, now we have the path, separated by spaces, we can step through it
9824 # and add multilib dir if necessary.
9825 lt_tmp_lt_search_path_spec=
9826 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9827 for lt_sys_path in $lt_search_path_spec; do
9828 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9830 else
9831 test -d "$lt_sys_path" && \
9832 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9833 fi
9834 done
Lev Walkinaef10c32014-01-14 01:47:25 -08009835 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009836BEGIN {RS=" "; FS="/|\n";} {
9837 lt_foo="";
9838 lt_count=0;
9839 for (lt_i = NF; lt_i > 0; lt_i--) {
9840 if ($lt_i != "" && $lt_i != ".") {
9841 if ($lt_i == "..") {
9842 lt_count++;
9843 } else {
9844 if (lt_count == 0) {
9845 lt_foo="/" $lt_i lt_foo;
9846 } else {
9847 lt_count--;
9848 }
9849 }
9850 }
9851 }
9852 if (lt_foo != "") { lt_freq[lt_foo]++; }
9853 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9854}'`
Lev Walkinaef10c32014-01-14 01:47:25 -08009855 # AWK program above erroneously prepends '/' to C:/dos/paths
9856 # for these hosts.
9857 case $host_os in
9858 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9859 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9860 esac
9861 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Lev Walkin4da95cf2010-10-16 02:46:32 -07009862else
9863 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9864fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009865library_names_spec=
9866libname_spec='lib$name'
9867soname_spec=
9868shrext_cmds=".so"
9869postinstall_cmds=
9870postuninstall_cmds=
9871finish_cmds=
9872finish_eval=
9873shlibpath_var=
9874shlibpath_overrides_runpath=unknown
9875version_type=none
9876dynamic_linker="$host_os ld.so"
9877sys_lib_dlsearch_path_spec="/lib /usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009878need_lib_prefix=unknown
9879hardcode_into_libs=no
9880
9881# when you set need_version to no, make sure it does not cause -set_version
9882# flags to be left without arguments
9883need_version=unknown
9884
9885case $host_os in
9886aix3*)
9887 version_type=linux
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9889 shlibpath_var=LIBPATH
9890
9891 # AIX 3 has no versioning support, so we append a major version to the name.
9892 soname_spec='${libname}${release}${shared_ext}$major'
9893 ;;
9894
Lev Walkin4da95cf2010-10-16 02:46:32 -07009895aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009896 version_type=linux
9897 need_lib_prefix=no
9898 need_version=no
9899 hardcode_into_libs=yes
9900 if test "$host_cpu" = ia64; then
9901 # AIX 5 supports IA64
9902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 else
9905 # With GCC up to 2.95.x, collect2 would create an import file
9906 # for dependence libraries. The import file would start with
9907 # the line `#! .'. This would cause the generated library to
9908 # depend on `.', always an invalid library. This was fixed in
9909 # development snapshots of GCC prior to 3.0.
9910 case $host_os in
9911 aix4 | aix4.[01] | aix4.[01].*)
9912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9913 echo ' yes '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009914 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009915 :
9916 else
9917 can_build_shared=no
9918 fi
9919 ;;
9920 esac
9921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9922 # soname into executable. Probably we can add versioning support to
9923 # collect2, so additional links can be useful in future.
9924 if test "$aix_use_runtimelinking" = yes; then
9925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9926 # instead of lib<name>.a to let people know that these are not
9927 # typical AIX shared libraries.
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9929 else
9930 # We preserve .a as extension for shared libraries through AIX4.2
9931 # and later when we are not doing run time linking.
9932 library_names_spec='${libname}${release}.a $libname.a'
9933 soname_spec='${libname}${release}${shared_ext}$major'
9934 fi
9935 shlibpath_var=LIBPATH
9936 fi
9937 ;;
9938
9939amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009940 case $host_cpu in
9941 powerpc)
9942 # Since July 2007 AmigaOS4 officially supports .so libraries.
9943 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945 ;;
9946 m68k)
9947 library_names_spec='$libname.ixlibrary $libname.a'
9948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Lev Walkinaef10c32014-01-14 01:47:25 -08009949 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009950 ;;
9951 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009952 ;;
9953
9954beos*)
9955 library_names_spec='${libname}${shared_ext}'
9956 dynamic_linker="$host_os ld.so"
9957 shlibpath_var=LIBRARY_PATH
9958 ;;
9959
Lev Walkinfbf1d282007-12-03 14:58:39 +00009960bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009961 version_type=linux
9962 need_version=no
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9969 # the default ld.so.conf also contains /usr/contrib/lib and
9970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9971 # libtool to hard-code these into programs
9972 ;;
9973
Lev Walkinaef10c32014-01-14 01:47:25 -08009974cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009975 version_type=windows
9976 shrext_cmds=".dll"
9977 need_version=no
9978 need_lib_prefix=no
9979
Lev Walkinaef10c32014-01-14 01:47:25 -08009980 case $GCC,$cc_basename in
9981 yes,*)
9982 # gcc
Lev Walkin8e8b5482004-06-17 23:42:48 +00009983 library_names_spec='$libname.dll.a'
9984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9985 postinstall_cmds='base_file=`basename \${file}`~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Lev Walkin8e8b5482004-06-17 23:42:48 +00009987 dldir=$destdir/`dirname \$dlpath`~
9988 test -d \$dldir || mkdir -p \$dldir~
Lev Walkinfbf1d282007-12-03 14:58:39 +00009989 $install_prog $dir/$dlname \$dldir/$dlname~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009990 chmod a+x \$dldir/$dlname~
9991 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9992 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9993 fi'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9995 dlpath=$dir/\$dldll~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009996 $RM \$dlpath'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009997 shlibpath_overrides_runpath=yes
9998
9999 case $host_os in
10000 cygwin*)
10001 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10002 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkinaef10c32014-01-14 01:47:25 -080010003
10004 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010005 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080010006 mingw* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010007 # MinGW DLLs use traditional 'lib' prefix
10008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010009 ;;
10010 pw32*)
10011 # pw32 DLLs use 'pw' prefix rather than 'lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010012 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010013 ;;
10014 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010015 dynamic_linker='Win32 ld.exe'
10016 ;;
10017
10018 *,cl*)
10019 # Native MSVC
10020 libname_spec='$name'
10021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10022 library_names_spec='${libname}.dll.lib'
10023
10024 case $build_os in
10025 mingw*)
10026 sys_lib_search_path_spec=
10027 lt_save_ifs=$IFS
10028 IFS=';'
10029 for lt_path in $LIB
10030 do
10031 IFS=$lt_save_ifs
10032 # Let DOS variable expansion print the short 8.3 style file name.
10033 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10034 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10035 done
10036 IFS=$lt_save_ifs
10037 # Convert to MSYS style.
10038 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10039 ;;
10040 cygwin*)
10041 # Convert to unix form, then to dos form, then back to unix form
10042 # but this time dos style (no spaces!) so that the unix form looks
10043 # like /cygdrive/c/PROGRA~1:/cygdr...
10044 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10045 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10046 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10047 ;;
10048 *)
10049 sys_lib_search_path_spec="$LIB"
10050 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10051 # It is most probably a Windows format PATH.
10052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10053 else
10054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10055 fi
10056 # FIXME: find the short name or the path components, as spaces are
10057 # common. (e.g. "Program Files" -> "PROGRA~1")
10058 ;;
10059 esac
10060
10061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10062 postinstall_cmds='base_file=`basename \${file}`~
10063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10064 dldir=$destdir/`dirname \$dlpath`~
10065 test -d \$dldir || mkdir -p \$dldir~
10066 $install_prog $dir/$dlname \$dldir/$dlname'
10067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10068 dlpath=$dir/\$dldll~
10069 $RM \$dlpath'
10070 shlibpath_overrides_runpath=yes
10071 dynamic_linker='Win32 link.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010072 ;;
10073
10074 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080010075 # Assume MSVC wrapper
Lev Walkin8e8b5482004-06-17 23:42:48 +000010076 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Lev Walkinaef10c32014-01-14 01:47:25 -080010077 dynamic_linker='Win32 ld.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010078 ;;
10079 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010080 # FIXME: first we should search . and the directory the executable is in
10081 shlibpath_var=PATH
10082 ;;
10083
10084darwin* | rhapsody*)
10085 dynamic_linker="$host_os dyld"
10086 version_type=darwin
10087 need_lib_prefix=no
10088 need_version=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010089 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010090 soname_spec='${libname}${release}${major}$shared_ext'
10091 shlibpath_overrides_runpath=yes
10092 shlibpath_var=DYLD_LIBRARY_PATH
Lev Walkinfbf1d282007-12-03 14:58:39 +000010093 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010094
10095 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10097 ;;
10098
10099dgux*)
10100 version_type=linux
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 ;;
10107
10108freebsd1*)
10109 dynamic_linker=no
10110 ;;
10111
Lev Walkinfbf1d282007-12-03 14:58:39 +000010112freebsd* | dragonfly*)
10113 # DragonFly does not have aout. When/if they implement a new
10114 # versioning mechanism, adjust this.
10115 if test -x /usr/bin/objformat; then
10116 objformat=`/usr/bin/objformat`
10117 else
10118 case $host_os in
10119 freebsd[123]*) objformat=aout ;;
10120 *) objformat=elf ;;
10121 esac
10122 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010123 version_type=freebsd-$objformat
10124 case $version_type in
10125 freebsd-elf*)
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10127 need_version=no
10128 need_lib_prefix=no
10129 ;;
10130 freebsd-*)
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10132 need_version=yes
10133 ;;
10134 esac
10135 shlibpath_var=LD_LIBRARY_PATH
10136 case $host_os in
10137 freebsd2*)
10138 shlibpath_overrides_runpath=yes
10139 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010140 freebsd3.[01]* | freebsdelf3.[01]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010141 shlibpath_overrides_runpath=yes
10142 hardcode_into_libs=yes
10143 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010144 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10145 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010146 shlibpath_overrides_runpath=no
10147 hardcode_into_libs=yes
10148 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010149 *) # from 4.6 on, and DragonFly
Lev Walkinfbf1d282007-12-03 14:58:39 +000010150 shlibpath_overrides_runpath=yes
10151 hardcode_into_libs=yes
10152 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010153 esac
10154 ;;
10155
10156gnu*)
10157 version_type=linux
10158 need_lib_prefix=no
10159 need_version=no
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 hardcode_into_libs=yes
10164 ;;
10165
Lev Walkinaef10c32014-01-14 01:47:25 -080010166haiku*)
10167 version_type=linux
10168 need_lib_prefix=no
10169 need_version=no
10170 dynamic_linker="$host_os runtime_loader"
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10176 hardcode_into_libs=yes
10177 ;;
10178
Lev Walkin8e8b5482004-06-17 23:42:48 +000010179hpux9* | hpux10* | hpux11*)
10180 # Give a soname corresponding to the major version so that dld.sl refuses to
10181 # link against other versions.
10182 version_type=sunos
10183 need_lib_prefix=no
10184 need_version=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010185 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +000010186 ia64*)
10187 shrext_cmds='.so'
10188 hardcode_into_libs=yes
10189 dynamic_linker="$host_os dld.so"
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 if test "X$HPUX_IA64_MODE" = X32; then
10195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10196 else
10197 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10198 fi
10199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10200 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010201 hppa*64*)
10202 shrext_cmds='.sl'
10203 hardcode_into_libs=yes
10204 dynamic_linker="$host_os dld.sl"
10205 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10211 ;;
10212 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010213 shrext_cmds='.sl'
10214 dynamic_linker="$host_os dld.sl"
10215 shlibpath_var=SHLIB_PATH
10216 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 ;;
10220 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010221 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Lev Walkin8e8b5482004-06-17 23:42:48 +000010222 postinstall_cmds='chmod 555 $lib'
Lev Walkinaef10c32014-01-14 01:47:25 -080010223 # or fails outright, so override atomically:
10224 install_override_mode=555
Lev Walkin8e8b5482004-06-17 23:42:48 +000010225 ;;
10226
Lev Walkin4da95cf2010-10-16 02:46:32 -070010227interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000010228 version_type=linux
10229 need_lib_prefix=no
10230 need_version=no
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=no
10236 hardcode_into_libs=yes
10237 ;;
10238
Lev Walkin8e8b5482004-06-17 23:42:48 +000010239irix5* | irix6* | nonstopux*)
10240 case $host_os in
10241 nonstopux*) version_type=nonstopux ;;
10242 *)
10243 if test "$lt_cv_prog_gnu_ld" = yes; then
10244 version_type=linux
10245 else
10246 version_type=irix
10247 fi ;;
10248 esac
10249 need_lib_prefix=no
10250 need_version=no
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10253 case $host_os in
10254 irix5* | nonstopux*)
10255 libsuff= shlibsuff=
10256 ;;
10257 *)
10258 case $LD in # libtool.m4 will add one of these switches to LD
10259 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10260 libsuff= shlibsuff= libmagic=32-bit;;
10261 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10262 libsuff=32 shlibsuff=N32 libmagic=N32;;
10263 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10264 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10265 *) libsuff= shlibsuff= libmagic=never-match;;
10266 esac
10267 ;;
10268 esac
10269 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10270 shlibpath_overrides_runpath=no
10271 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10272 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10273 hardcode_into_libs=yes
10274 ;;
10275
10276# No shared lib support for Linux oldld, aout, or coff.
10277linux*oldld* | linux*aout* | linux*coff*)
10278 dynamic_linker=no
10279 ;;
10280
10281# This must be Linux ELF.
Lev Walkinaef10c32014-01-14 01:47:25 -080010282linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010283 version_type=linux
10284 need_lib_prefix=no
10285 need_version=no
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010291
Lev Walkin4da95cf2010-10-16 02:46:32 -070010292 # Some binutils ld are patched to set DT_RUNPATH
Lev Walkinaef10c32014-01-14 01:47:25 -080010293 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10294 $as_echo_n "(cached) " >&6
10295else
10296 lt_cv_shlibpath_overrides_runpath=no
10297 save_LDFLAGS=$LDFLAGS
10298 save_libdir=$libdir
10299 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10300 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -070010302/* end confdefs.h. */
10303
10304int
10305main ()
10306{
10307
10308 ;
10309 return 0;
10310}
10311_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010312if ac_fn_c_try_link "$LINENO"; then :
10313 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10314 lt_cv_shlibpath_overrides_runpath=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -070010315fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010316fi
10317rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LDFLAGS=$save_LDFLAGS
10320 libdir=$save_libdir
Lev Walkin4da95cf2010-10-16 02:46:32 -070010321
10322fi
10323
Lev Walkinaef10c32014-01-14 01:47:25 -080010324 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Lev Walkin4da95cf2010-10-16 02:46:32 -070010325
Lev Walkin8e8b5482004-06-17 23:42:48 +000010326 # This implies no fast_install, which is unacceptable.
10327 # Some rework will be needed to allow for fast_install
10328 # before this can be enabled.
10329 hardcode_into_libs=yes
10330
10331 # Append ld.so.conf contents to the search path
10332 if test -f /etc/ld.so.conf; then
Lev Walkinaef10c32014-01-14 01:47:25 -080010333 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' ' '`
Lev Walkin8e8b5482004-06-17 23:42:48 +000010334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10335 fi
10336
10337 # We used to test for /lib/ld.so.1 and disable shared libraries on
10338 # powerpc, because MkLinux only supported shared libraries with the
10339 # GNU dynamic linker. Since this was broken with cross compilers,
10340 # most powerpc-linux boxes support dynamic linking these days and
10341 # people can always --disable-shared, the test was removed, and we
10342 # assume the GNU/Linux dynamic linker is in use.
10343 dynamic_linker='GNU/Linux ld.so'
10344 ;;
10345
Lev Walkin8e8b5482004-06-17 23:42:48 +000010346netbsd*)
10347 version_type=sunos
10348 need_lib_prefix=no
10349 need_version=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10353 dynamic_linker='NetBSD (a.out) ld.so'
10354 else
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 dynamic_linker='NetBSD ld.elf_so'
10358 fi
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 ;;
10363
10364newsos6)
10365 version_type=linux
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes
10369 ;;
10370
Lev Walkin4da95cf2010-10-16 02:46:32 -070010371*nto* | *qnx*)
10372 version_type=qnx
Lev Walkin8e8b5482004-06-17 23:42:48 +000010373 need_lib_prefix=no
10374 need_version=no
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10380 dynamic_linker='ldqnx.so'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010381 ;;
10382
10383openbsd*)
10384 version_type=sunos
Lev Walkinfbf1d282007-12-03 14:58:39 +000010385 sys_lib_dlsearch_path_spec="/usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010386 need_lib_prefix=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10388 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070010389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10390 *) need_version=no ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010391 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10394 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010396 case $host_os in
10397 openbsd2.[89] | openbsd2.[89].*)
10398 shlibpath_overrides_runpath=no
10399 ;;
10400 *)
10401 shlibpath_overrides_runpath=yes
10402 ;;
10403 esac
10404 else
10405 shlibpath_overrides_runpath=yes
10406 fi
10407 ;;
10408
10409os2*)
10410 libname_spec='$name'
10411 shrext_cmds=".dll"
10412 need_lib_prefix=no
10413 library_names_spec='$libname${shared_ext} $libname.a'
10414 dynamic_linker='OS/2 ld.exe'
10415 shlibpath_var=LIBPATH
10416 ;;
10417
10418osf3* | osf4* | osf5*)
10419 version_type=osf
10420 need_lib_prefix=no
10421 need_version=no
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10427 ;;
10428
Lev Walkin4da95cf2010-10-16 02:46:32 -070010429rdos*)
10430 dynamic_linker=no
10431 ;;
10432
Lev Walkin8e8b5482004-06-17 23:42:48 +000010433solaris*)
10434 version_type=linux
10435 need_lib_prefix=no
10436 need_version=no
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes
10441 hardcode_into_libs=yes
10442 # ldd complains unless libraries are executable
10443 postinstall_cmds='chmod +x $lib'
10444 ;;
10445
10446sunos4*)
10447 version_type=sunos
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=yes
10452 if test "$with_gnu_ld" = yes; then
10453 need_lib_prefix=no
10454 fi
10455 need_version=yes
10456 ;;
10457
Lev Walkinfbf1d282007-12-03 14:58:39 +000010458sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010459 version_type=linux
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 case $host_vendor in
10464 sni)
10465 shlibpath_overrides_runpath=no
10466 need_lib_prefix=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010467 runpath_var=LD_RUN_PATH
10468 ;;
10469 siemens)
10470 need_lib_prefix=no
10471 ;;
10472 motorola)
10473 need_lib_prefix=no
10474 need_version=no
10475 shlibpath_overrides_runpath=no
10476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10477 ;;
10478 esac
10479 ;;
10480
10481sysv4*MP*)
10482 if test -d /usr/nec ;then
10483 version_type=linux
10484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10485 soname_spec='$libname${shared_ext}.$major'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 fi
10488 ;;
10489
Lev Walkinfbf1d282007-12-03 14:58:39 +000010490sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491 version_type=freebsd-elf
10492 need_lib_prefix=no
10493 need_version=no
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010497 shlibpath_overrides_runpath=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +000010498 hardcode_into_libs=yes
10499 if test "$with_gnu_ld" = yes; then
10500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010501 else
10502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010503 case $host_os in
10504 sco3.2v5*)
10505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10506 ;;
10507 esac
10508 fi
10509 sys_lib_dlsearch_path_spec='/usr/lib'
10510 ;;
10511
Lev Walkin4da95cf2010-10-16 02:46:32 -070010512tpf*)
10513 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10514 version_type=linux
10515 need_lib_prefix=no
10516 need_version=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=no
10520 hardcode_into_libs=yes
10521 ;;
10522
Lev Walkin8e8b5482004-06-17 23:42:48 +000010523uts4*)
10524 version_type=linux
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 ;;
10529
10530*)
10531 dynamic_linker=no
10532 ;;
10533esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010535$as_echo "$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010536test "$dynamic_linker" = no && can_build_shared=no
10537
Lev Walkinfbf1d282007-12-03 14:58:39 +000010538variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10539if test "$GCC" = yes; then
10540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10541fi
10542
Lev Walkin4da95cf2010-10-16 02:46:32 -070010543if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10544 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10545fi
10546if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10547 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10548fi
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
Lev Walkinaef10c32014-01-14 01:47:25 -080010636
10637
10638
10639
10640
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010642$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010643hardcode_action=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010644if test -n "$hardcode_libdir_flag_spec" ||
10645 test -n "$runpath_var" ||
Lev Walkinfbf1d282007-12-03 14:58:39 +000010646 test "X$hardcode_automatic" = "Xyes" ; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010647
Lev Walkin4da95cf2010-10-16 02:46:32 -070010648 # We can hardcode non-existent directories.
Lev Walkin8e8b5482004-06-17 23:42:48 +000010649 if test "$hardcode_direct" != no &&
10650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10651 # have to relink, otherwise we might link with an installed library
10652 # when we should be linking with a yet-to-be-installed one
Lev Walkin4da95cf2010-10-16 02:46:32 -070010653 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000010654 test "$hardcode_minus_L" != no; then
10655 # Linking always hardcodes the temporary library directory.
10656 hardcode_action=relink
10657 else
10658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10659 hardcode_action=immediate
10660 fi
10661else
10662 # We cannot hardcode anything, or else we can only hardcode existing
10663 # directories.
10664 hardcode_action=unsupported
10665fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010667$as_echo "$hardcode_action" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010668
Lev Walkin4da95cf2010-10-16 02:46:32 -070010669if test "$hardcode_action" = relink ||
10670 test "$inherit_rpath" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010671 # Fast installation is not supported
10672 enable_fast_install=no
10673elif test "$shlibpath_overrides_runpath" = yes ||
10674 test "$enable_shared" = no; then
10675 # Fast installation is not necessary
10676 enable_fast_install=needless
10677fi
10678
Lev Walkin8e8b5482004-06-17 23:42:48 +000010679
Lev Walkin4da95cf2010-10-16 02:46:32 -070010680
10681
10682
10683
10684 if test "x$enable_dlopen" != xyes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010685 enable_dlopen=unknown
10686 enable_dlopen_self=unknown
10687 enable_dlopen_self_static=unknown
10688else
10689 lt_cv_dlopen=no
10690 lt_cv_dlopen_libs=
10691
10692 case $host_os in
10693 beos*)
10694 lt_cv_dlopen="load_add_on"
10695 lt_cv_dlopen_libs=
10696 lt_cv_dlopen_self=yes
10697 ;;
10698
Lev Walkinaef10c32014-01-14 01:47:25 -080010699 mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010700 lt_cv_dlopen="LoadLibrary"
10701 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010702 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010703
10704 cygwin*)
10705 lt_cv_dlopen="dlopen"
10706 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010707 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010708
10709 darwin*)
10710 # if libdl is installed we need to link against it
Lev Walkinaef10c32014-01-14 01:47:25 -080010711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010712$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010713if ${ac_cv_lib_dl_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010714 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010715else
10716 ac_check_lib_save_LIBS=$LIBS
10717LIBS="-ldl $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010719/* end confdefs.h. */
10720
Lev Walkin27fd0b62007-08-27 23:57:45 +000010721/* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010724#ifdef __cplusplus
10725extern "C"
10726#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010727char dlopen ();
10728int
10729main ()
10730{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010731return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010732 ;
10733 return 0;
10734}
10735_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010736if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010737 ac_cv_lib_dl_dlopen=yes
10738else
Lev Walkinaef10c32014-01-14 01:47:25 -080010739 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010740fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010741rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010743LIBS=$ac_check_lib_save_LIBS
10744fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010746$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010747if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10749else
10750
10751 lt_cv_dlopen="dyld"
10752 lt_cv_dlopen_libs=
10753 lt_cv_dlopen_self=yes
10754
10755fi
10756
Lev Walkin4da95cf2010-10-16 02:46:32 -070010757 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010758
10759 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080010760 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10761if test "x$ac_cv_func_shl_load" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010762 lt_cv_dlopen="shl_load"
10763else
Lev Walkinaef10c32014-01-14 01:47:25 -080010764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010765$as_echo_n "checking for shl_load in -ldld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010766if ${ac_cv_lib_dld_shl_load+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010767 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010768else
10769 ac_check_lib_save_LIBS=$LIBS
10770LIBS="-ldld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010772/* end confdefs.h. */
10773
Lev Walkin27fd0b62007-08-27 23:57:45 +000010774/* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010777#ifdef __cplusplus
10778extern "C"
10779#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010780char shl_load ();
10781int
10782main ()
10783{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010784return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010785 ;
10786 return 0;
10787}
10788_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010789if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010790 ac_cv_lib_dld_shl_load=yes
10791else
Lev Walkinaef10c32014-01-14 01:47:25 -080010792 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010793fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010794rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010796LIBS=$ac_check_lib_save_LIBS
10797fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010799$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010800if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -070010801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010802else
Lev Walkinaef10c32014-01-14 01:47:25 -080010803 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10804if test "x$ac_cv_func_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010805 lt_cv_dlopen="dlopen"
10806else
Lev Walkinaef10c32014-01-14 01:47:25 -080010807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010808$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010809if ${ac_cv_lib_dl_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010810 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010811else
10812 ac_check_lib_save_LIBS=$LIBS
10813LIBS="-ldl $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010815/* end confdefs.h. */
10816
Lev Walkin27fd0b62007-08-27 23:57:45 +000010817/* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010820#ifdef __cplusplus
10821extern "C"
10822#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010823char dlopen ();
10824int
10825main ()
10826{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010827return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010828 ;
10829 return 0;
10830}
10831_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010832if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010833 ac_cv_lib_dl_dlopen=yes
10834else
Lev Walkinaef10c32014-01-14 01:47:25 -080010835 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010836fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010837rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010839LIBS=$ac_check_lib_save_LIBS
10840fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010842$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010843if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10845else
Lev Walkinaef10c32014-01-14 01:47:25 -080010846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010847$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010848if ${ac_cv_lib_svld_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010849 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010850else
10851 ac_check_lib_save_LIBS=$LIBS
10852LIBS="-lsvld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010854/* end confdefs.h. */
10855
Lev Walkin27fd0b62007-08-27 23:57:45 +000010856/* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010859#ifdef __cplusplus
10860extern "C"
10861#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010862char dlopen ();
10863int
10864main ()
10865{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010866return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010867 ;
10868 return 0;
10869}
10870_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010871if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010872 ac_cv_lib_svld_dlopen=yes
10873else
Lev Walkinaef10c32014-01-14 01:47:25 -080010874 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010875fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010876rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010878LIBS=$ac_check_lib_save_LIBS
10879fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010881$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010882if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10884else
Lev Walkinaef10c32014-01-14 01:47:25 -080010885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010886$as_echo_n "checking for dld_link in -ldld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010887if ${ac_cv_lib_dld_dld_link+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010888 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010889else
10890 ac_check_lib_save_LIBS=$LIBS
10891LIBS="-ldld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010893/* end confdefs.h. */
10894
Lev Walkin27fd0b62007-08-27 23:57:45 +000010895/* Override any GCC internal prototype to avoid an error.
10896 Use char because int might match the return type of a GCC
10897 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010898#ifdef __cplusplus
10899extern "C"
10900#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010901char dld_link ();
10902int
10903main ()
10904{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010905return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010906 ;
10907 return 0;
10908}
10909_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010910if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010911 ac_cv_lib_dld_dld_link=yes
10912else
Lev Walkinaef10c32014-01-14 01:47:25 -080010913 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010914fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010915rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010917LIBS=$ac_check_lib_save_LIBS
10918fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010920$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010921if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -070010922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010923fi
10924
10925
10926fi
10927
10928
10929fi
10930
10931
10932fi
10933
10934
10935fi
10936
10937
10938fi
10939
10940 ;;
10941 esac
10942
10943 if test "x$lt_cv_dlopen" != xno; then
10944 enable_dlopen=yes
10945 else
10946 enable_dlopen=no
10947 fi
10948
10949 case $lt_cv_dlopen in
10950 dlopen)
10951 save_CPPFLAGS="$CPPFLAGS"
10952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10953
10954 save_LDFLAGS="$LDFLAGS"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010955 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010956
10957 save_LIBS="$LIBS"
10958 LIBS="$lt_cv_dlopen_libs $LIBS"
10959
Lev Walkinaef10c32014-01-14 01:47:25 -080010960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010961$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010962if ${lt_cv_dlopen_self+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010963 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010964else
10965 if test "$cross_compiling" = yes; then :
10966 lt_cv_dlopen_self=cross
10967else
10968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10969 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010970 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010971#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010972#include "confdefs.h"
10973
10974#if HAVE_DLFCN_H
10975#include <dlfcn.h>
10976#endif
10977
10978#include <stdio.h>
10979
10980#ifdef RTLD_GLOBAL
10981# define LT_DLGLOBAL RTLD_GLOBAL
10982#else
10983# ifdef DL_GLOBAL
10984# define LT_DLGLOBAL DL_GLOBAL
10985# else
10986# define LT_DLGLOBAL 0
10987# endif
10988#endif
10989
10990/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10991 find out it does not work in some platform. */
10992#ifndef LT_DLLAZY_OR_NOW
10993# ifdef RTLD_LAZY
10994# define LT_DLLAZY_OR_NOW RTLD_LAZY
10995# else
10996# ifdef DL_LAZY
10997# define LT_DLLAZY_OR_NOW DL_LAZY
10998# else
10999# ifdef RTLD_NOW
11000# define LT_DLLAZY_OR_NOW RTLD_NOW
11001# else
11002# ifdef DL_NOW
11003# define LT_DLLAZY_OR_NOW DL_NOW
11004# else
11005# define LT_DLLAZY_OR_NOW 0
11006# endif
11007# endif
11008# endif
11009# endif
11010#endif
11011
Lev Walkinaef10c32014-01-14 01:47:25 -080011012/* When -fvisbility=hidden is used, assume the code has been annotated
11013 correspondingly for the symbols needed. */
11014#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11015int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000011016#endif
11017
Lev Walkinaef10c32014-01-14 01:47:25 -080011018int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011019int main ()
11020{
11021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11022 int status = $lt_dlunknown;
11023
11024 if (self)
11025 {
11026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkinaef10c32014-01-14 01:47:25 -080011027 else
11028 {
11029 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11030 else puts (dlerror ());
11031 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011032 /* dlclose (self); */
11033 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011034 else
11035 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011036
Lev Walkinaef10c32014-01-14 01:47:25 -080011037 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011038}
Lev Walkin4da95cf2010-10-16 02:46:32 -070011039_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011041 (eval $ac_link) 2>&5
11042 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11044 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011045 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000011046 lt_status=$?
11047 case x$lt_status in
11048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000011050 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011051 esac
11052 else :
11053 # compilation failed
11054 lt_cv_dlopen_self=no
11055 fi
11056fi
11057rm -fr conftest*
11058
11059
11060fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011062$as_echo "$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011063
11064 if test "x$lt_cv_dlopen_self" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Lev Walkinaef10c32014-01-14 01:47:25 -080011066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011067$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011068if ${lt_cv_dlopen_self_static+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011069 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000011070else
11071 if test "$cross_compiling" = yes; then :
11072 lt_cv_dlopen_self_static=cross
11073else
11074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11075 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070011076 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011077#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011078#include "confdefs.h"
11079
11080#if HAVE_DLFCN_H
11081#include <dlfcn.h>
11082#endif
11083
11084#include <stdio.h>
11085
11086#ifdef RTLD_GLOBAL
11087# define LT_DLGLOBAL RTLD_GLOBAL
11088#else
11089# ifdef DL_GLOBAL
11090# define LT_DLGLOBAL DL_GLOBAL
11091# else
11092# define LT_DLGLOBAL 0
11093# endif
11094#endif
11095
11096/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11097 find out it does not work in some platform. */
11098#ifndef LT_DLLAZY_OR_NOW
11099# ifdef RTLD_LAZY
11100# define LT_DLLAZY_OR_NOW RTLD_LAZY
11101# else
11102# ifdef DL_LAZY
11103# define LT_DLLAZY_OR_NOW DL_LAZY
11104# else
11105# ifdef RTLD_NOW
11106# define LT_DLLAZY_OR_NOW RTLD_NOW
11107# else
11108# ifdef DL_NOW
11109# define LT_DLLAZY_OR_NOW DL_NOW
11110# else
11111# define LT_DLLAZY_OR_NOW 0
11112# endif
11113# endif
11114# endif
11115# endif
11116#endif
11117
Lev Walkinaef10c32014-01-14 01:47:25 -080011118/* When -fvisbility=hidden is used, assume the code has been annotated
11119 correspondingly for the symbols needed. */
11120#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11121int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000011122#endif
11123
Lev Walkinaef10c32014-01-14 01:47:25 -080011124int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011125int main ()
11126{
11127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11128 int status = $lt_dlunknown;
11129
11130 if (self)
11131 {
11132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkinaef10c32014-01-14 01:47:25 -080011133 else
11134 {
11135 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11136 else puts (dlerror ());
11137 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011138 /* dlclose (self); */
11139 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011140 else
11141 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011142
Lev Walkinaef10c32014-01-14 01:47:25 -080011143 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011144}
Lev Walkin4da95cf2010-10-16 02:46:32 -070011145_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011147 (eval $ac_link) 2>&5
11148 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11150 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011151 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000011152 lt_status=$?
11153 case x$lt_status in
11154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000011156 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011157 esac
11158 else :
11159 # compilation failed
11160 lt_cv_dlopen_self_static=no
11161 fi
11162fi
11163rm -fr conftest*
11164
11165
11166fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011168$as_echo "$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011169 fi
11170
11171 CPPFLAGS="$save_CPPFLAGS"
11172 LDFLAGS="$save_LDFLAGS"
11173 LIBS="$save_LIBS"
11174 ;;
11175 esac
11176
11177 case $lt_cv_dlopen_self in
11178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11179 *) enable_dlopen_self=unknown ;;
11180 esac
11181
11182 case $lt_cv_dlopen_self_static in
11183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11184 *) enable_dlopen_self_static=unknown ;;
11185 esac
11186fi
11187
11188
Lev Walkin8e8b5482004-06-17 23:42:48 +000011189
Lev Walkin8e8b5482004-06-17 23:42:48 +000011190
Lev Walkin8e8b5482004-06-17 23:42:48 +000011191
Lev Walkin8e8b5482004-06-17 23:42:48 +000011192
Lev Walkin8e8b5482004-06-17 23:42:48 +000011193
Lev Walkin8e8b5482004-06-17 23:42:48 +000011194
Lev Walkin8e8b5482004-06-17 23:42:48 +000011195
Lev Walkin8e8b5482004-06-17 23:42:48 +000011196
Lev Walkin8e8b5482004-06-17 23:42:48 +000011197
Lev Walkin8e8b5482004-06-17 23:42:48 +000011198
Lev Walkin8e8b5482004-06-17 23:42:48 +000011199
Lev Walkin8e8b5482004-06-17 23:42:48 +000011200
Lev Walkin8e8b5482004-06-17 23:42:48 +000011201
Lev Walkin8e8b5482004-06-17 23:42:48 +000011202
Lev Walkin8e8b5482004-06-17 23:42:48 +000011203
Lev Walkin4da95cf2010-10-16 02:46:32 -070011204striplib=
11205old_striplib=
Lev Walkinaef10c32014-01-14 01:47:25 -080011206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011207$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011208if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Lev Walkinaef10c32014-01-14 01:47:25 -080011211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011212$as_echo "yes" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011213else
11214# FIXME - insert some real tests, host_os isn't really good enough
Lev Walkin8e8b5482004-06-17 23:42:48 +000011215 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070011216 darwin*)
11217 if test -n "$STRIP" ; then
11218 striplib="$STRIP -x"
11219 old_striplib="$STRIP -S"
Lev Walkinaef10c32014-01-14 01:47:25 -080011220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011221$as_echo "yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011222 else
Lev Walkinaef10c32014-01-14 01:47:25 -080011223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011224$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011225 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000011226 ;;
11227 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080011228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011229$as_echo "no" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011230 ;;
11231 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +000011232fi
11233
11234
Lev Walkin8e8b5482004-06-17 23:42:48 +000011235
Lev Walkin8e8b5482004-06-17 23:42:48 +000011236
Lev Walkin8e8b5482004-06-17 23:42:48 +000011237
11238
Lev Walkin8e8b5482004-06-17 23:42:48 +000011239
Lev Walkin8e8b5482004-06-17 23:42:48 +000011240
Lev Walkin8e8b5482004-06-17 23:42:48 +000011241
Lev Walkin8e8b5482004-06-17 23:42:48 +000011242
Lev Walkin8e8b5482004-06-17 23:42:48 +000011243
Lev Walkin8e8b5482004-06-17 23:42:48 +000011244
Lev Walkin4da95cf2010-10-16 02:46:32 -070011245 # Report which library types will actually be built
Lev Walkinaef10c32014-01-14 01:47:25 -080011246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011247$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011249$as_echo "$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011250
Lev Walkinaef10c32014-01-14 01:47:25 -080011251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011252$as_echo_n "checking whether to build shared libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011253 test "$can_build_shared" = "no" && enable_shared=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011254
Lev Walkin4da95cf2010-10-16 02:46:32 -070011255 # On AIX, shared libraries and static libraries use the same namespace, and
11256 # are all built from PIC.
11257 case $host_os in
11258 aix3*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000011259 test "$enable_shared" = yes && enable_static=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070011260 if test -n "$RANLIB"; then
11261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262 postinstall_cmds='$RANLIB $lib'
11263 fi
11264 ;;
11265
11266 aix[4-9]*)
11267 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268 test "$enable_shared" = yes && enable_static=no
11269 fi
11270 ;;
11271 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011273$as_echo "$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011274
Lev Walkinaef10c32014-01-14 01:47:25 -080011275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011276$as_echo_n "checking whether to build static libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011277 # Make sure either enable_shared or enable_static is yes.
11278 test "$enable_shared" = yes || enable_static=yes
Lev Walkinaef10c32014-01-14 01:47:25 -080011279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011280$as_echo "$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011281
Lev Walkin8e8b5482004-06-17 23:42:48 +000011282
Lev Walkin8e8b5482004-06-17 23:42:48 +000011283
Lev Walkin27fd0b62007-08-27 23:57:45 +000011284
Lev Walkin8e8b5482004-06-17 23:42:48 +000011285fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000011286ac_ext=c
11287ac_cpp='$CPP $CPPFLAGS'
11288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11290ac_compiler_gnu=$ac_cv_c_compiler_gnu
11291
11292CC="$lt_save_CC"
11293
Lev Walkin8e8b5482004-06-17 23:42:48 +000011294
Lev Walkin8e8b5482004-06-17 23:42:48 +000011295
11296
Lev Walkin8e8b5482004-06-17 23:42:48 +000011297
Lev Walkin8e8b5482004-06-17 23:42:48 +000011298
Lev Walkin8e8b5482004-06-17 23:42:48 +000011299
Lev Walkin8e8b5482004-06-17 23:42:48 +000011300
Lev Walkin8e8b5482004-06-17 23:42:48 +000011301
Lev Walkin8e8b5482004-06-17 23:42:48 +000011302
Lev Walkinfbf1d282007-12-03 14:58:39 +000011303
Lev Walkin8e8b5482004-06-17 23:42:48 +000011304
11305
Lev Walkin4da95cf2010-10-16 02:46:32 -070011306 ac_config_commands="$ac_config_commands libtool"
Lev Walkinfbf1d282007-12-03 14:58:39 +000011307
Lev Walkinfbf1d282007-12-03 14:58:39 +000011308
11309
Lev Walkinfbf1d282007-12-03 14:58:39 +000011310
Lev Walkin4da95cf2010-10-16 02:46:32 -070011311# Only expand once:
Lev Walkin8e8b5482004-06-17 23:42:48 +000011312
Lev Walkinf15320b2004-06-03 03:38:44 +000011313
11314
Lev Walkinf15320b2004-06-03 03:38:44 +000011315ac_ext=c
11316ac_cpp='$CPP $CPPFLAGS'
11317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11319ac_compiler_gnu=$ac_cv_c_compiler_gnu
11320if test -n "$ac_tool_prefix"; then
11321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11322set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011324$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011325if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011326 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011327else
11328 if test -n "$CC"; then
11329 ac_cv_prog_CC="$CC" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011340 break 2
11341 fi
11342done
Lev Walkinaef10c32014-01-14 01:47:25 -080011343 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011344IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011345
11346fi
11347fi
11348CC=$ac_cv_prog_CC
11349if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011351$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011352else
Lev Walkinaef10c32014-01-14 01:47:25 -080011353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011354$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011355fi
11356
Lev Walkin27fd0b62007-08-27 23:57:45 +000011357
Lev Walkinf15320b2004-06-03 03:38:44 +000011358fi
11359if test -z "$ac_cv_prog_CC"; then
11360 ac_ct_CC=$CC
11361 # Extract the first word of "gcc", so it can be a program name with args.
11362set dummy gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011364$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011365if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011366 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011367else
11368 if test -n "$ac_ct_CC"; then
11369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11370else
11371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372for as_dir in $PATH
11373do
11374 IFS=$as_save_IFS
11375 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011376 for ac_exec_ext in '' $ac_executable_extensions; do
11377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011378 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011380 break 2
11381 fi
11382done
Lev Walkinaef10c32014-01-14 01:47:25 -080011383 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011384IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011385
11386fi
11387fi
11388ac_ct_CC=$ac_cv_prog_ac_ct_CC
11389if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011391$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011392else
Lev Walkinaef10c32014-01-14 01:47:25 -080011393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011394$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011395fi
11396
Lev Walkin27fd0b62007-08-27 23:57:45 +000011397 if test "x$ac_ct_CC" = x; then
11398 CC=""
11399 else
11400 case $cross_compiling:$ac_tool_warned in
11401yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -080011402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011404ac_tool_warned=yes ;;
11405esac
11406 CC=$ac_ct_CC
11407 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011408else
11409 CC="$ac_cv_prog_CC"
11410fi
11411
11412if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011413 if test -n "$ac_tool_prefix"; then
11414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +000011415set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011417$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011418if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011419 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011420else
11421 if test -n "$CC"; then
11422 ac_cv_prog_CC="$CC" # Let the user override the test.
11423else
11424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425for as_dir in $PATH
11426do
11427 IFS=$as_save_IFS
11428 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011429 for ac_exec_ext in '' $ac_executable_extensions; do
11430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011431 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011433 break 2
11434 fi
11435done
Lev Walkinaef10c32014-01-14 01:47:25 -080011436 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011437IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011438
11439fi
11440fi
11441CC=$ac_cv_prog_CC
11442if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011444$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011445else
Lev Walkinaef10c32014-01-14 01:47:25 -080011446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011447$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011448fi
11449
Lev Walkin27fd0b62007-08-27 23:57:45 +000011450
Lev Walkinf15320b2004-06-03 03:38:44 +000011451 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011452fi
11453if test -z "$CC"; then
11454 # Extract the first word of "cc", so it can be a program name with args.
11455set dummy cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011457$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011458if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011459 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011460else
11461 if test -n "$CC"; then
11462 ac_cv_prog_CC="$CC" # Let the user override the test.
11463else
11464 ac_prog_rejected=no
11465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466for as_dir in $PATH
11467do
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11473 ac_prog_rejected=yes
11474 continue
11475 fi
11476 ac_cv_prog_CC="cc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011478 break 2
11479 fi
11480done
Lev Walkinaef10c32014-01-14 01:47:25 -080011481 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011482IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011483
11484if test $ac_prog_rejected = yes; then
11485 # We found a bogon in the path, so make sure we never use it.
11486 set dummy $ac_cv_prog_CC
11487 shift
11488 if test $# != 0; then
11489 # We chose a different compiler from the bogus one.
11490 # However, it has the same basename, so the bogon will be chosen
11491 # first if we set CC to just the basename; use the full file name.
11492 shift
11493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11494 fi
11495fi
11496fi
11497fi
11498CC=$ac_cv_prog_CC
11499if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011501$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011502else
Lev Walkinaef10c32014-01-14 01:47:25 -080011503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011504$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011505fi
11506
Lev Walkin27fd0b62007-08-27 23:57:45 +000011507
Lev Walkinf15320b2004-06-03 03:38:44 +000011508fi
11509if test -z "$CC"; then
11510 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011511 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011512 do
11513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011516$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011517if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011518 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011519else
11520 if test -n "$CC"; then
11521 ac_cv_prog_CC="$CC" # Let the user override the test.
11522else
11523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524for as_dir in $PATH
11525do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080011531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011532 break 2
11533 fi
11534done
Lev Walkinaef10c32014-01-14 01:47:25 -080011535 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011536IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011537
11538fi
11539fi
11540CC=$ac_cv_prog_CC
11541if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011543$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011544else
Lev Walkinaef10c32014-01-14 01:47:25 -080011545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011546$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011547fi
11548
Lev Walkin27fd0b62007-08-27 23:57:45 +000011549
Lev Walkinf15320b2004-06-03 03:38:44 +000011550 test -n "$CC" && break
11551 done
11552fi
11553if test -z "$CC"; then
11554 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +000011555 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011556do
11557 # Extract the first word of "$ac_prog", so it can be a program name with args.
11558set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011560$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011561if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011562 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011563else
11564 if test -n "$ac_ct_CC"; then
11565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11566else
11567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568for as_dir in $PATH
11569do
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011574 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080011575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011576 break 2
11577 fi
11578done
Lev Walkinaef10c32014-01-14 01:47:25 -080011579 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011580IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011581
11582fi
11583fi
11584ac_ct_CC=$ac_cv_prog_ac_ct_CC
11585if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011587$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011588else
Lev Walkinaef10c32014-01-14 01:47:25 -080011589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011590$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011591fi
11592
Lev Walkin27fd0b62007-08-27 23:57:45 +000011593
Lev Walkinf15320b2004-06-03 03:38:44 +000011594 test -n "$ac_ct_CC" && break
11595done
11596
Lev Walkin27fd0b62007-08-27 23:57:45 +000011597 if test "x$ac_ct_CC" = x; then
11598 CC=""
11599 else
11600 case $cross_compiling:$ac_tool_warned in
11601yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -080011602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011604ac_tool_warned=yes ;;
11605esac
11606 CC=$ac_ct_CC
11607 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011608fi
11609
11610fi
11611
11612
Lev Walkinaef10c32014-01-14 01:47:25 -080011613test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -080011615as_fn_error $? "no acceptable C compiler found in \$PATH
11616See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011617
11618# Provide some information about the compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -080011619$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011620set X $ac_compile
11621ac_compiler=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011622for ac_option in --version -v -V -qversion; do
11623 { { ac_try="$ac_compiler $ac_option >&5"
Lev Walkin27fd0b62007-08-27 23:57:45 +000011624case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11627esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11629$as_echo "$ac_try_echo"; } >&5
11630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Lev Walkinf15320b2004-06-03 03:38:44 +000011631 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011632 if test -s conftest.err; then
11633 sed '10a\
11634... rest of stderr output deleted ...
11635 10q' conftest.err >conftest.er1
11636 cat conftest.er1 >&5
11637 fi
11638 rm -f conftest.er1 conftest.err
11639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11640 test $ac_status = 0; }
11641done
Lev Walkinf15320b2004-06-03 03:38:44 +000011642
Lev Walkinaef10c32014-01-14 01:47:25 -080011643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011644$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011645if ${ac_cv_c_compiler_gnu+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011646 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011647else
Lev Walkinaef10c32014-01-14 01:47:25 -080011648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011649/* end confdefs.h. */
11650
11651int
11652main ()
11653{
11654#ifndef __GNUC__
11655 choke me
11656#endif
11657
11658 ;
11659 return 0;
11660}
11661_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011662if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011663 ac_compiler_gnu=yes
11664else
Lev Walkinaef10c32014-01-14 01:47:25 -080011665 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011666fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011668ac_cv_c_compiler_gnu=$ac_compiler_gnu
11669
11670fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011672$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11673if test $ac_compiler_gnu = yes; then
11674 GCC=yes
11675else
11676 GCC=
11677fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011678ac_test_CFLAGS=${CFLAGS+set}
11679ac_save_CFLAGS=$CFLAGS
Lev Walkinaef10c32014-01-14 01:47:25 -080011680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011681$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011682if ${ac_cv_prog_cc_g+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011683 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011684else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011685 ac_save_c_werror_flag=$ac_c_werror_flag
11686 ac_c_werror_flag=yes
11687 ac_cv_prog_cc_g=no
11688 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -080011689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011690/* end confdefs.h. */
11691
11692int
11693main ()
11694{
11695
11696 ;
11697 return 0;
11698}
11699_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011700if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011701 ac_cv_prog_cc_g=yes
11702else
Lev Walkinaef10c32014-01-14 01:47:25 -080011703 CFLAGS=""
11704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011705/* end confdefs.h. */
11706
11707int
11708main ()
11709{
11710
11711 ;
11712 return 0;
11713}
11714_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011715if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011716
Lev Walkinaef10c32014-01-14 01:47:25 -080011717else
11718 ac_c_werror_flag=$ac_save_c_werror_flag
Lev Walkin27fd0b62007-08-27 23:57:45 +000011719 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -080011720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011721/* end confdefs.h. */
11722
11723int
11724main ()
11725{
11726
11727 ;
11728 return 0;
11729}
11730_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011731if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011732 ac_cv_prog_cc_g=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000011733fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011735fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 ac_c_werror_flag=$ac_save_c_werror_flag
11740fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011742$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011743if test "$ac_test_CFLAGS" = set; then
11744 CFLAGS=$ac_save_CFLAGS
11745elif test $ac_cv_prog_cc_g = yes; then
11746 if test "$GCC" = yes; then
11747 CFLAGS="-g -O2"
11748 else
11749 CFLAGS="-g"
11750 fi
11751else
11752 if test "$GCC" = yes; then
11753 CFLAGS="-O2"
11754 else
11755 CFLAGS=
11756 fi
11757fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011760if ${ac_cv_prog_cc_c89+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011761 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011762else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011763 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011764ac_save_CC=$CC
Lev Walkinaef10c32014-01-14 01:47:25 -080011765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011766/* end confdefs.h. */
11767#include <stdarg.h>
11768#include <stdio.h>
Lev Walkinaef10c32014-01-14 01:47:25 -080011769struct stat;
Lev Walkinf15320b2004-06-03 03:38:44 +000011770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11771struct buf { int x; };
11772FILE * (*rcsopen) (struct buf *, struct stat *, int);
11773static char *e (p, i)
11774 char **p;
11775 int i;
11776{
11777 return p[i];
11778}
11779static char *f (char * (*g) (char **, int), char **p, ...)
11780{
11781 char *s;
11782 va_list v;
11783 va_start (v,p);
11784 s = g (p, va_arg (v,int));
11785 va_end (v);
11786 return s;
11787}
Lev Walkin8e8b5482004-06-17 23:42:48 +000011788
11789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11790 function prototypes and stuff, but not '\xHH' hex character constants.
11791 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +000011792 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +000011793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11794 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +000011795 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011796int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11797
Lev Walkin27fd0b62007-08-27 23:57:45 +000011798/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11799 inside strings and character constants. */
11800#define FOO(x) 'x'
11801int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11802
Lev Walkinf15320b2004-06-03 03:38:44 +000011803int test (int i, double x);
11804struct s1 {int (*f) (int a);};
11805struct s2 {int (*f) (double a);};
11806int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11807int argc;
11808char **argv;
11809int
11810main ()
11811{
11812return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11813 ;
11814 return 0;
11815}
11816_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011817for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +000011819do
11820 CC="$ac_save_CC $ac_arg"
Lev Walkinaef10c32014-01-14 01:47:25 -080011821 if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011822 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +000011823fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011824rm -f core conftest.err conftest.$ac_objext
11825 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000011826done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011827rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011828CC=$ac_save_CC
11829
11830fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011831# AC_CACHE_VAL
11832case "x$ac_cv_prog_cc_c89" in
11833 x)
Lev Walkinaef10c32014-01-14 01:47:25 -080011834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011835$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000011836 xno)
Lev Walkinaef10c32014-01-14 01:47:25 -080011837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011838$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011839 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000011840 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinaef10c32014-01-14 01:47:25 -080011841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011842$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011843esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011844if test "x$ac_cv_prog_cc_c89" != xno; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011845
Lev Walkinaef10c32014-01-14 01:47:25 -080011846fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011847
Lev Walkinf15320b2004-06-03 03:38:44 +000011848ac_ext=c
11849ac_cpp='$CPP $CPPFLAGS'
11850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11852ac_compiler_gnu=$ac_cv_c_compiler_gnu
11853
11854depcc="$CC" am_compiler_list=
11855
Lev Walkinaef10c32014-01-14 01:47:25 -080011856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011857$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011858if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011859 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011860else
11861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11862 # We make a subdir and do the tests there. Otherwise we can end up
11863 # making bogus files that we don't know about and never remove. For
11864 # instance it was reported that on HP-UX the gcc test will end up
11865 # making a dummy file named `D' -- because `-MD' means `put the output
11866 # in D'.
11867 mkdir conftest.dir
11868 # Copy depcomp to subdir because otherwise we won't find it if we're
11869 # using a relative directory.
11870 cp "$am_depcomp" conftest.dir
11871 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000011872 # We will build objects and dependencies in a subdirectory because
11873 # it helps to detect inapplicable dependency modes. For instance
11874 # both Tru64's cc and ICC support -MD to output dependencies as a
11875 # side effect of compilation, but ICC will put the dependencies in
11876 # the current directory while Tru64 will put them in the object
11877 # directory.
11878 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000011879
11880 am_cv_CC_dependencies_compiler_type=none
11881 if test "$am_compiler_list" = ""; then
11882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11883 fi
Lev Walkinb3751942012-09-02 19:36:47 -070011884 am__universal=false
11885 case " $depcc " in #(
11886 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11887 esac
11888
Lev Walkinf15320b2004-06-03 03:38:44 +000011889 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000011890 # Setup a source with many dependencies, because some compilers
11891 # like to wrap large dependency lists on column 80 (with \), and
11892 # we should not choose a depcomp mode which is confused by this.
11893 #
Lev Walkinf15320b2004-06-03 03:38:44 +000011894 # We need to recreate these files for each test, as the compiler may
11895 # overwrite some of them when testing with obscure command lines.
11896 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000011897 : > sub/conftest.c
11898 for i in 1 2 3 4 5 6; do
11899 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11900 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11901 # Solaris 8's {/usr,}/bin/sh.
11902 touch sub/conftst$i.h
11903 done
11904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000011905
Lev Walkinb3751942012-09-02 19:36:47 -070011906 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11907 # mode. It turns out that the SunPro C++ compiler does not properly
11908 # handle `-M -o', and we need to detect this. Also, some Intel
11909 # versions had trouble with output in subdirs
11910 am__obj=sub/conftest.${OBJEXT-o}
11911 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +000011912 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -070011913 gcc)
11914 # This depmode causes a compiler race in universal mode.
11915 test "$am__universal" = false || continue
11916 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011917 nosideeffect)
11918 # after this tag, mechanisms are not by side-effect, so they'll
11919 # only be used when explicitly requested
11920 if test "x$enable_dependency_tracking" = xyes; then
11921 continue
11922 else
11923 break
11924 fi
11925 ;;
Lev Walkinb3751942012-09-02 19:36:47 -070011926 msvisualcpp | msvcmsys)
11927 # This compiler won't grok `-c -o', but also, the minuso test has
11928 # not run yet. These depmodes are late enough in the game, and
11929 # so weak that their functioning should not be impacted.
11930 am__obj=conftest.${OBJEXT-o}
11931 am__minus_obj=
11932 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011933 none) break ;;
11934 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000011935 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -070011936 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -070011938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011939 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -080011940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000011941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -070011942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000011943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011944 # icc doesn't choke on unknown options, it will just issue warnings
11945 # or remarks (even with -Werror). So we grep stderr for any message
11946 # that says an option was ignored or not supported.
11947 # When given -MP, icc 7.0 and 7.1 complain thusly:
11948 # icc: Command line warning: ignoring option '-M'; no argument required
11949 # The diagnosis changed in icc 8.0:
11950 # icc: Command line remark: option '-MP' not supported
11951 if (grep 'ignoring option' conftest.err ||
11952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11953 am_cv_CC_dependencies_compiler_type=$depmode
11954 break
11955 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011956 fi
11957 done
11958
11959 cd ..
11960 rm -rf conftest.dir
11961else
11962 am_cv_CC_dependencies_compiler_type=none
11963fi
11964
11965fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011967$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011968CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11969
Lev Walkin4c776e52010-11-08 02:07:31 -080011970 if
Lev Walkin8e8b5482004-06-17 23:42:48 +000011971 test "x$enable_dependency_tracking" != xno \
11972 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11973 am__fastdepCC_TRUE=
11974 am__fastdepCC_FALSE='#'
11975else
11976 am__fastdepCC_TRUE='#'
11977 am__fastdepCC_FALSE=
11978fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011979
11980
11981ac_ext=c
11982ac_cpp='$CPP $CPPFLAGS'
11983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11985ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinaef10c32014-01-14 01:47:25 -080011986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011987$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011988# On Suns, sometimes $CPP names a directory.
11989if test -n "$CPP" && test -d "$CPP"; then
11990 CPP=
11991fi
11992if test -z "$CPP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011993 if ${ac_cv_prog_CPP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011994 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011995else
11996 # Double quotes because CPP needs to be expanded
11997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11998 do
11999 ac_preproc_ok=false
12000for ac_c_preproc_warn_flag in '' yes
12001do
12002 # Use a header file that comes with gcc, so configuring glibc
12003 # with a fresh cross-compiler works.
12004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005 # <limits.h> exists even on freestanding compilers.
12006 # On the NeXT, cc -E runs the code through the compiler's parser,
12007 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -080012008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012009/* end confdefs.h. */
12010#ifdef __STDC__
12011# include <limits.h>
12012#else
12013# include <assert.h>
12014#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000012015 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000012016_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012017if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012018
Lev Walkinaef10c32014-01-14 01:47:25 -080012019else
Lev Walkinf15320b2004-06-03 03:38:44 +000012020 # Broken: fails on valid input.
12021continue
12022fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012023rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012024
Lev Walkin27fd0b62007-08-27 23:57:45 +000012025 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000012026 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -080012027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012028/* end confdefs.h. */
12029#include <ac_nonexistent.h>
12030_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012031if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012032 # Broken: success on invalid input.
12033continue
12034else
Lev Walkinf15320b2004-06-03 03:38:44 +000012035 # Passes both tests.
12036ac_preproc_ok=:
12037break
12038fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012039rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012040
12041done
12042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -080012043rm -f conftest.i conftest.err conftest.$ac_ext
12044if $ac_preproc_ok; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012045 break
12046fi
12047
12048 done
12049 ac_cv_prog_CPP=$CPP
12050
12051fi
12052 CPP=$ac_cv_prog_CPP
12053else
12054 ac_cv_prog_CPP=$CPP
12055fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012057$as_echo "$CPP" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012058ac_preproc_ok=false
12059for ac_c_preproc_warn_flag in '' yes
12060do
12061 # Use a header file that comes with gcc, so configuring glibc
12062 # with a fresh cross-compiler works.
12063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 # <limits.h> exists even on freestanding compilers.
12065 # On the NeXT, cc -E runs the code through the compiler's parser,
12066 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -080012067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012068/* end confdefs.h. */
12069#ifdef __STDC__
12070# include <limits.h>
12071#else
12072# include <assert.h>
12073#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000012074 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000012075_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012076if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012077
Lev Walkinaef10c32014-01-14 01:47:25 -080012078else
Lev Walkinf15320b2004-06-03 03:38:44 +000012079 # Broken: fails on valid input.
12080continue
12081fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012082rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012083
Lev Walkin27fd0b62007-08-27 23:57:45 +000012084 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000012085 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -080012086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012087/* end confdefs.h. */
12088#include <ac_nonexistent.h>
12089_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012090if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012091 # Broken: success on invalid input.
12092continue
12093else
Lev Walkinf15320b2004-06-03 03:38:44 +000012094 # Passes both tests.
12095ac_preproc_ok=:
12096break
12097fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012098rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012099
12100done
12101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -080012102rm -f conftest.i conftest.err conftest.$ac_ext
12103if $ac_preproc_ok; then :
12104
Lev Walkinf15320b2004-06-03 03:38:44 +000012105else
Lev Walkinaef10c32014-01-14 01:47:25 -080012106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -080012108as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12109See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012110fi
12111
12112ac_ext=c
12113ac_cpp='$CPP $CPPFLAGS'
12114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12116ac_compiler_gnu=$ac_cv_c_compiler_gnu
12117
Lev Walkinb3751942012-09-02 19:36:47 -070012118
Lev Walkinaef10c32014-01-14 01:47:25 -080012119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012120$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012121LN_S=$as_ln_s
12122if test "$LN_S" = "ln -s"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012124$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012125else
Lev Walkinaef10c32014-01-14 01:47:25 -080012126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012127$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012128fi
12129
Lev Walkinaef10c32014-01-14 01:47:25 -080012130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012131$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12132set x ${MAKE-make}
12133ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -080012134if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012135 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012136else
12137 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012138SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +000012139all:
Lev Walkin27fd0b62007-08-27 23:57:45 +000012140 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +000012141_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012142# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012143case `${MAKE-make} -f conftest.make 2>/dev/null` in
12144 *@@@%%%=?*=@@@%%%*)
12145 eval ac_cv_prog_make_${ac_make}_set=yes;;
12146 *)
12147 eval ac_cv_prog_make_${ac_make}_set=no;;
12148esac
Lev Walkinf15320b2004-06-03 03:38:44 +000012149rm -f conftest.make
12150fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012151if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012153$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012154 SET_MAKE=
12155else
Lev Walkinaef10c32014-01-14 01:47:25 -080012156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012157$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012158 SET_MAKE="MAKE=${MAKE-make}"
12159fi
12160
12161for ac_prog in 'bison -y' byacc
12162do
12163 # Extract the first word of "$ac_prog", so it can be a program name with args.
12164set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012166$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012167if ${ac_cv_prog_YACC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012168 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012169else
12170 if test -n "$YACC"; then
12171 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12172else
12173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174for as_dir in $PATH
12175do
12176 IFS=$as_save_IFS
12177 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012178 for ac_exec_ext in '' $ac_executable_extensions; do
12179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012180 ac_cv_prog_YACC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080012181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012182 break 2
12183 fi
12184done
Lev Walkinaef10c32014-01-14 01:47:25 -080012185 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012186IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012187
12188fi
12189fi
12190YACC=$ac_cv_prog_YACC
12191if test -n "$YACC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012193$as_echo "$YACC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012194else
Lev Walkinaef10c32014-01-14 01:47:25 -080012195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012196$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012197fi
12198
Lev Walkin27fd0b62007-08-27 23:57:45 +000012199
Lev Walkinf15320b2004-06-03 03:38:44 +000012200 test -n "$YACC" && break
12201done
12202test -n "$YACC" || YACC="yacc"
12203
Lev Walkinf15320b2004-06-03 03:38:44 +000012204for ac_prog in flex lex
12205do
12206 # Extract the first word of "$ac_prog", so it can be a program name with args.
12207set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012209$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012210if ${ac_cv_prog_LEX+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012211 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012212else
12213 if test -n "$LEX"; then
12214 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12215else
12216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217for as_dir in $PATH
12218do
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012223 ac_cv_prog_LEX="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080012224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012225 break 2
12226 fi
12227done
Lev Walkinaef10c32014-01-14 01:47:25 -080012228 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012229IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012230
12231fi
12232fi
12233LEX=$ac_cv_prog_LEX
12234if test -n "$LEX"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012236$as_echo "$LEX" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012237else
Lev Walkinaef10c32014-01-14 01:47:25 -080012238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012239$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012240fi
12241
Lev Walkin27fd0b62007-08-27 23:57:45 +000012242
Lev Walkinf15320b2004-06-03 03:38:44 +000012243 test -n "$LEX" && break
12244done
12245test -n "$LEX" || LEX=":"
12246
Lev Walkinf15320b2004-06-03 03:38:44 +000012247if test "x$LEX" != "x:"; then
Lev Walkin4c776e52010-11-08 02:07:31 -080012248 cat >conftest.l <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012249%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012250a { ECHO; }
12251b { REJECT; }
12252c { yymore (); }
12253d { yyless (1); }
Lev Walkinaef10c32014-01-14 01:47:25 -080012254e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12255 yyless ((input () != 0)); }
Lev Walkin4c776e52010-11-08 02:07:31 -080012256f { unput (yytext[0]); }
12257. { BEGIN INITIAL; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012258%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012259#ifdef YYTEXT_POINTER
12260extern char *yytext;
12261#endif
12262int
12263main (void)
12264{
12265 return ! yylex () + ! yywrap ();
12266}
Lev Walkinf15320b2004-06-03 03:38:44 +000012267_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012268{ { ac_try="$LEX conftest.l"
Lev Walkin27fd0b62007-08-27 23:57:45 +000012269case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272esac
Lev Walkinaef10c32014-01-14 01:47:25 -080012273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12274$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012275 (eval "$LEX conftest.l") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012276 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080012277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; }
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012280$as_echo_n "checking lex output file root... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012281if ${ac_cv_prog_lex_root+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012282 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012283else
12284
Lev Walkinf15320b2004-06-03 03:38:44 +000012285if test -f lex.yy.c; then
12286 ac_cv_prog_lex_root=lex.yy
12287elif test -f lexyy.c; then
12288 ac_cv_prog_lex_root=lexyy
12289else
Lev Walkinaef10c32014-01-14 01:47:25 -080012290 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000012291fi
12292fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012294$as_echo "$ac_cv_prog_lex_root" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012295LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12296
Lev Walkin4c776e52010-11-08 02:07:31 -080012297if test -z "${LEXLIB+set}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012299$as_echo_n "checking lex library... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012300if ${ac_cv_lib_lex+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012301 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012302else
Lev Walkin4c776e52010-11-08 02:07:31 -080012303
12304 ac_save_LIBS=$LIBS
12305 ac_cv_lib_lex='none needed'
12306 for ac_lib in '' -lfl -ll; do
12307 LIBS="$ac_lib $ac_save_LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080012308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309/* end confdefs.h. */
Lev Walkinf15320b2004-06-03 03:38:44 +000012310`cat $LEX_OUTPUT_ROOT.c`
12311_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012312if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin4c776e52010-11-08 02:07:31 -080012313 ac_cv_lib_lex=$ac_lib
Lev Walkin4c776e52010-11-08 02:07:31 -080012314fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012315rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -080012317 test "$ac_cv_lib_lex" != 'none needed' && break
12318 done
12319 LIBS=$ac_save_LIBS
12320
12321fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012323$as_echo "$ac_cv_lib_lex" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -080012324 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12325fi
12326
12327
Lev Walkinaef10c32014-01-14 01:47:25 -080012328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012329$as_echo_n "checking whether yytext is a pointer... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012330if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012331 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012332else
12333 # POSIX says lex can declare yytext either as a pointer or an array; the
12334# default is implementation-dependent. Figure out which it is, since
12335# not all implementations provide the %pointer and %array declarations.
12336ac_cv_prog_lex_yytext_pointer=no
12337ac_save_LIBS=$LIBS
12338LIBS="$LEXLIB $ac_save_LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080012339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340/* end confdefs.h. */
12341
12342 #define YYTEXT_POINTER 1
Lev Walkin4c776e52010-11-08 02:07:31 -080012343`cat $LEX_OUTPUT_ROOT.c`
12344_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012345if ac_fn_c_try_link "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012346 ac_cv_prog_lex_yytext_pointer=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012347fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012348rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012350LIBS=$ac_save_LIBS
Lev Walkinf15320b2004-06-03 03:38:44 +000012351
12352fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012354$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012355if test $ac_cv_prog_lex_yytext_pointer = yes; then
12356
Lev Walkinaef10c32014-01-14 01:47:25 -080012357$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012358
12359fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012360rm -f conftest.l $LEX_OUTPUT_ROOT.c
Lev Walkinf15320b2004-06-03 03:38:44 +000012361
12362fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012363if test "$LEX" = :; then
12364 LEX=${am_missing_run}flex
12365fi
Lev Walkinc10e06c2005-03-30 05:14:26 +000012366# Extract the first word of "ar", so it can be a program name with args.
12367set dummy ar; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012369$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012370if ${ac_cv_path_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012371 $as_echo_n "(cached) " >&6
Lev Walkinc10e06c2005-03-30 05:14:26 +000012372else
12373 case $AR in
12374 [\\/]* | ?:[\\/]*)
12375 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12376 ;;
12377 *)
12378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
12380for as_dir in $as_dummy
12381do
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012384 for ac_exec_ext in '' $ac_executable_extensions; do
12385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinc10e06c2005-03-30 05:14:26 +000012386 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -080012387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinc10e06c2005-03-30 05:14:26 +000012388 break 2
12389 fi
12390done
Lev Walkinaef10c32014-01-14 01:47:25 -080012391 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012392IFS=$as_save_IFS
Lev Walkinc10e06c2005-03-30 05:14:26 +000012393
12394 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12395 ;;
12396esac
12397fi
12398AR=$ac_cv_path_AR
Lev Walkinc10e06c2005-03-30 05:14:26 +000012399if test -n "$AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012401$as_echo "$AR" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012402else
Lev Walkinaef10c32014-01-14 01:47:25 -080012403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012404$as_echo "no" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012405fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012406
Lev Walkin27fd0b62007-08-27 23:57:45 +000012407
Lev Walkin5f869d02004-08-23 10:41:38 +000012408case "$host_os" in
Lev Walkin79432302006-03-18 06:39:49 +000012409cygwin)
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012410 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000012411 *mingw*)
12412 CC="$CC -mno-cygwin"
12413 esac
12414 ;;
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012415esac
12416
Lev Walkin27fd0b62007-08-27 23:57:45 +000012417# Check whether --enable-Werror was given.
Lev Walkinaef10c32014-01-14 01:47:25 -080012418if test "${enable_Werror+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000012419 enableval=$enable_Werror; enable_werror=$enableval
Lev Walkin04c23172004-09-26 14:18:32 +000012420else
12421 enable_werror=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000012422fi
12423
Lev Walkin04c23172004-09-26 14:18:32 +000012424if test x$enable_werror = xyes; then
Lev Walkinf84cc012014-01-14 02:12:24 -080012425 TESTSUITE_CFLAGS="-Werror -W -Wpointer-arith"
Lev Walkinea552152014-01-14 02:15:13 -080012426 ADD_CFLAGS="-Werror -W -Wpointer-arith"
Lev Walkin04c23172004-09-26 14:18:32 +000012427fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012428
Lev Walkinf84cc012014-01-14 02:12:24 -080012429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
12430$as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
12431if ${ax_cv_check_cflags___Wall+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433else
12434
12435 ax_check_save_flags=$CFLAGS
12436 CFLAGS="$CFLAGS -Wall"
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h. */
12439
12440int
12441main ()
12442{
12443
12444 ;
12445 return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_compile "$LINENO"; then :
12449 ax_cv_check_cflags___Wall=yes
12450else
12451 ax_cv_check_cflags___Wall=no
12452fi
12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 CFLAGS=$ax_check_save_flags
12455fi
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
12457$as_echo "$ax_cv_check_cflags___Wall" >&6; }
12458if test x"$ax_cv_check_cflags___Wall" = xyes; then :
12459 CFLAGS="$CFLAGS -Wall"
12460else
12461 :
12462fi
12463
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-qual" >&5
12465$as_echo_n "checking whether C compiler accepts -Wcast-qual... " >&6; }
12466if ${ax_cv_check_cflags___Wcast_qual+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468else
12469
12470 ax_check_save_flags=$CFLAGS
12471 CFLAGS="$CFLAGS -Wcast-qual"
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473/* end confdefs.h. */
12474
12475int
12476main ()
12477{
12478
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483if ac_fn_c_try_compile "$LINENO"; then :
12484 ax_cv_check_cflags___Wcast_qual=yes
12485else
12486 ax_cv_check_cflags___Wcast_qual=no
12487fi
12488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 CFLAGS=$ax_check_save_flags
12490fi
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_qual" >&5
12492$as_echo "$ax_cv_check_cflags___Wcast_qual" >&6; }
12493if test x"$ax_cv_check_cflags___Wcast_qual" = xyes; then :
12494 CFLAGS="$CFLAGS -Wcast-qual"
12495else
12496 :
12497fi
12498
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
12500$as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
12501if ${ax_cv_check_cflags___Wchar_subscripts+:} false; then :
12502 $as_echo_n "(cached) " >&6
12503else
12504
12505 ax_check_save_flags=$CFLAGS
12506 CFLAGS="$CFLAGS -Wchar-subscripts"
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508/* end confdefs.h. */
12509
12510int
12511main ()
12512{
12513
12514 ;
12515 return 0;
12516}
12517_ACEOF
12518if ac_fn_c_try_compile "$LINENO"; then :
12519 ax_cv_check_cflags___Wchar_subscripts=yes
12520else
12521 ax_cv_check_cflags___Wchar_subscripts=no
12522fi
12523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 CFLAGS=$ax_check_save_flags
12525fi
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wchar_subscripts" >&5
12527$as_echo "$ax_cv_check_cflags___Wchar_subscripts" >&6; }
12528if test x"$ax_cv_check_cflags___Wchar_subscripts" = xyes; then :
12529 CFLAGS="$CFLAGS -Wchar-subscripts"
12530else
12531 :
12532fi
12533
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
12535$as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
12536if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538else
12539
12540 ax_check_save_flags=$CFLAGS
12541 CFLAGS="$CFLAGS -Wmissing-prototypes"
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543/* end confdefs.h. */
12544
12545int
12546main ()
12547{
12548
12549 ;
12550 return 0;
12551}
12552_ACEOF
12553if ac_fn_c_try_compile "$LINENO"; then :
12554 ax_cv_check_cflags___Wmissing_prototypes=yes
12555else
12556 ax_cv_check_cflags___Wmissing_prototypes=no
12557fi
12558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 CFLAGS=$ax_check_save_flags
12560fi
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
12562$as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
12563if test x"$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then :
12564 CFLAGS="$CFLAGS -Wmissing-prototypes"
12565else
12566 :
12567fi
12568
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
12570$as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
12571if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573else
12574
12575 ax_check_save_flags=$CFLAGS
12576 CFLAGS="$CFLAGS -Wmissing-declarations"
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578/* end confdefs.h. */
12579
12580int
12581main ()
12582{
12583
12584 ;
12585 return 0;
12586}
12587_ACEOF
12588if ac_fn_c_try_compile "$LINENO"; then :
12589 ax_cv_check_cflags___Wmissing_declarations=yes
12590else
12591 ax_cv_check_cflags___Wmissing_declarations=no
12592fi
12593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 CFLAGS=$ax_check_save_flags
12595fi
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
12597$as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
12598if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
12599 CFLAGS="$CFLAGS -Wmissing-declarations"
12600else
12601 :
12602fi
12603
12604
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=cast-align" >&5
12606$as_echo_n "checking whether C compiler accepts -Wno-error=cast-align... " >&6; }
12607if ${ax_cv_check_cflags___Wno_error_cast_align+:} false; then :
12608 $as_echo_n "(cached) " >&6
12609else
12610
12611 ax_check_save_flags=$CFLAGS
12612 CFLAGS="$CFLAGS -Wno-error=cast-align"
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h. */
12615
12616int
12617main ()
12618{
12619
12620 ;
12621 return 0;
12622}
12623_ACEOF
12624if ac_fn_c_try_compile "$LINENO"; then :
12625 ax_cv_check_cflags___Wno_error_cast_align=yes
12626else
12627 ax_cv_check_cflags___Wno_error_cast_align=no
12628fi
12629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 CFLAGS=$ax_check_save_flags
12631fi
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_cast_align" >&5
12633$as_echo "$ax_cv_check_cflags___Wno_error_cast_align" >&6; }
12634if test x"$ax_cv_check_cflags___Wno_error_cast_align" = xyes; then :
12635 CFLAGS="$CFLAGS -Wno-error=cast-align"
12636else
12637 :
12638fi
12639
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=visibility" >&5
12641$as_echo_n "checking whether C compiler accepts -Wno-error=visibility... " >&6; }
12642if ${ax_cv_check_cflags___Wno_error_visibility+:} false; then :
12643 $as_echo_n "(cached) " >&6
12644else
12645
12646 ax_check_save_flags=$CFLAGS
12647 CFLAGS="$CFLAGS -Wno-error=visibility"
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h. */
12650
12651int
12652main ()
12653{
12654
12655 ;
12656 return 0;
12657}
12658_ACEOF
12659if ac_fn_c_try_compile "$LINENO"; then :
12660 ax_cv_check_cflags___Wno_error_visibility=yes
12661else
12662 ax_cv_check_cflags___Wno_error_visibility=no
12663fi
12664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 CFLAGS=$ax_check_save_flags
12666fi
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_visibility" >&5
12668$as_echo "$ax_cv_check_cflags___Wno_error_visibility" >&6; }
12669if test x"$ax_cv_check_cflags___Wno_error_visibility" = xyes; then :
12670 CFLAGS="$CFLAGS -Wno-error=visibility"
12671else
12672 :
12673fi
12674
12675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=parentheses-equality" >&5
12676$as_echo_n "checking whether C compiler accepts -Wno-error=parentheses-equality... " >&6; }
12677if ${ax_cv_check_cflags___Wno_error_parentheses_equality+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679else
12680
12681 ax_check_save_flags=$CFLAGS
12682 CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684/* end confdefs.h. */
12685
12686int
12687main ()
12688{
12689
12690 ;
12691 return 0;
12692}
12693_ACEOF
12694if ac_fn_c_try_compile "$LINENO"; then :
12695 ax_cv_check_cflags___Wno_error_parentheses_equality=yes
12696else
12697 ax_cv_check_cflags___Wno_error_parentheses_equality=no
12698fi
12699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700 CFLAGS=$ax_check_save_flags
12701fi
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_parentheses_equality" >&5
12703$as_echo "$ax_cv_check_cflags___Wno_error_parentheses_equality" >&6; }
12704if test x"$ax_cv_check_cflags___Wno_error_parentheses_equality" = xyes; then :
12705 CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
12706else
12707 :
12708fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012709
Lev Walkin65907f02014-09-14 17:19:21 -070012710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=unused-variable" >&5
12711$as_echo_n "checking whether C compiler accepts -Wno-error=unused-variable... " >&6; }
12712if ${ax_cv_check_cflags___Wno_error_unused_variable+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714else
12715
12716 ax_check_save_flags=$CFLAGS
12717 CFLAGS="$CFLAGS -Wno-error=unused-variable"
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719/* end confdefs.h. */
12720
12721int
12722main ()
12723{
12724
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729if ac_fn_c_try_compile "$LINENO"; then :
12730 ax_cv_check_cflags___Wno_error_unused_variable=yes
12731else
12732 ax_cv_check_cflags___Wno_error_unused_variable=no
12733fi
12734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 CFLAGS=$ax_check_save_flags
12736fi
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_unused_variable" >&5
12738$as_echo "$ax_cv_check_cflags___Wno_error_unused_variable" >&6; }
12739if test x"$ax_cv_check_cflags___Wno_error_unused_variable" = xyes; then :
12740 TESTSUITE_CFLAGS="$TESTSUITE_CFLAGS -Wno-error=unused-variable"
12741else
12742 :
12743fi
12744
12745
12746
12747
Lev Walkinf15320b2004-06-03 03:38:44 +000012748
Lev Walkinaef10c32014-01-14 01:47:25 -080012749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012750$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012751if ${ac_cv_header_stdc+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012752 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012753else
Lev Walkinaef10c32014-01-14 01:47:25 -080012754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012755/* end confdefs.h. */
12756#include <stdlib.h>
12757#include <stdarg.h>
12758#include <string.h>
12759#include <float.h>
12760
12761int
12762main ()
12763{
12764
12765 ;
12766 return 0;
12767}
12768_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012769if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012770 ac_cv_header_stdc=yes
12771else
Lev Walkinaef10c32014-01-14 01:47:25 -080012772 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012773fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012775
12776if test $ac_cv_header_stdc = yes; then
12777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -080012778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012779/* end confdefs.h. */
12780#include <string.h>
12781
12782_ACEOF
12783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -080012784 $EGREP "memchr" >/dev/null 2>&1; then :
12785
Lev Walkinf15320b2004-06-03 03:38:44 +000012786else
12787 ac_cv_header_stdc=no
12788fi
Lev Walkinb3751942012-09-02 19:36:47 -070012789rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012790
12791fi
12792
12793if test $ac_cv_header_stdc = yes; then
12794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -080012795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012796/* end confdefs.h. */
12797#include <stdlib.h>
12798
12799_ACEOF
12800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -080012801 $EGREP "free" >/dev/null 2>&1; then :
12802
Lev Walkinf15320b2004-06-03 03:38:44 +000012803else
12804 ac_cv_header_stdc=no
12805fi
Lev Walkinb3751942012-09-02 19:36:47 -070012806rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012807
12808fi
12809
12810if test $ac_cv_header_stdc = yes; then
12811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Lev Walkinaef10c32014-01-14 01:47:25 -080012812 if test "$cross_compiling" = yes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012813 :
12814else
Lev Walkinaef10c32014-01-14 01:47:25 -080012815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012816/* end confdefs.h. */
12817#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +000012818#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012819#if ((' ' & 0x0FF) == 0x020)
12820# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12821# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12822#else
12823# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012824 (('a' <= (c) && (c) <= 'i') \
12825 || ('j' <= (c) && (c) <= 'r') \
12826 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000012827# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12828#endif
12829
12830#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12831int
12832main ()
12833{
12834 int i;
12835 for (i = 0; i < 256; i++)
12836 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000012837 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +000012838 return 2;
12839 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012840}
12841_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012842if ac_fn_c_try_run "$LINENO"; then :
12843
Lev Walkinf15320b2004-06-03 03:38:44 +000012844else
Lev Walkinaef10c32014-01-14 01:47:25 -080012845 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012846fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12848 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012849fi
12850
Lev Walkinf15320b2004-06-03 03:38:44 +000012851fi
12852fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012854$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012855if test $ac_cv_header_stdc = yes; then
12856
Lev Walkinaef10c32014-01-14 01:47:25 -080012857$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012858
12859fi
12860
Lev Walkin79f54952004-08-13 16:58:19 +000012861for ac_header in sys/param.h
Lev Walkinaef10c32014-01-14 01:47:25 -080012862do :
12863 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12864if test "x$ac_cv_header_sys_param_h" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012865 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012866#define HAVE_SYS_PARAM_H 1
Lev Walkinf15320b2004-06-03 03:38:44 +000012867_ACEOF
12868
12869fi
12870
12871done
12872
12873
Lev Walkinaef10c32014-01-14 01:47:25 -080012874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012875$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012876if ${ac_cv_c_bigendian+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012877 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012878else
Lev Walkinb3751942012-09-02 19:36:47 -070012879 ac_cv_c_bigendian=unknown
12880 # See if we're dealing with a universal compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -080012881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012882/* end confdefs.h. */
12883#ifndef __APPLE_CC__
12884 not a universal capable compiler
12885 #endif
12886 typedef int dummy;
12887
12888_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012889if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012890
12891 # Check for potential -arch flags. It is not universal unless
Lev Walkinaef10c32014-01-14 01:47:25 -080012892 # there are at least two -arch flags with different values.
12893 ac_arch=
12894 ac_prev=
12895 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12896 if test -n "$ac_prev"; then
12897 case $ac_word in
12898 i?86 | x86_64 | ppc | ppc64)
12899 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12900 ac_arch=$ac_word
12901 else
12902 ac_cv_c_bigendian=universal
12903 break
12904 fi
12905 ;;
12906 esac
12907 ac_prev=
12908 elif test "x$ac_word" = "x-arch"; then
12909 ac_prev=arch
12910 fi
12911 done
Lev Walkinb3751942012-09-02 19:36:47 -070012912fi
Lev Walkinb3751942012-09-02 19:36:47 -070012913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914 if test $ac_cv_c_bigendian = unknown; then
12915 # See if sys/param.h defines the BYTE_ORDER macro.
Lev Walkinaef10c32014-01-14 01:47:25 -080012916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012917/* end confdefs.h. */
12918#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012919 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012920
12921int
12922main ()
12923{
Lev Walkinb3751942012-09-02 19:36:47 -070012924#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12925 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12926 && LITTLE_ENDIAN)
12927 bogus endian macros
12928 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012929
12930 ;
12931 return 0;
12932}
12933_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012934if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012935 # It does; now see whether it defined to BIG_ENDIAN or not.
Lev Walkinaef10c32014-01-14 01:47:25 -080012936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012937/* end confdefs.h. */
12938#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012939 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012940
12941int
12942main ()
12943{
12944#if BYTE_ORDER != BIG_ENDIAN
Lev Walkinb3751942012-09-02 19:36:47 -070012945 not big endian
12946 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012947
12948 ;
12949 return 0;
12950}
12951_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012952if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012953 ac_cv_c_bigendian=yes
12954else
Lev Walkinaef10c32014-01-14 01:47:25 -080012955 ac_cv_c_bigendian=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012956fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012958fi
Lev Walkinb3751942012-09-02 19:36:47 -070012959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 fi
12961 if test $ac_cv_c_bigendian = unknown; then
12962 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Lev Walkinaef10c32014-01-14 01:47:25 -080012963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012964/* end confdefs.h. */
Lev Walkinb3751942012-09-02 19:36:47 -070012965#include <limits.h>
12966
Lev Walkinf15320b2004-06-03 03:38:44 +000012967int
12968main ()
12969{
Lev Walkinb3751942012-09-02 19:36:47 -070012970#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12971 bogus endian macros
12972 #endif
12973
Lev Walkinf15320b2004-06-03 03:38:44 +000012974 ;
12975 return 0;
12976}
12977_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012978if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012979 # It does; now see whether it defined to _BIG_ENDIAN or not.
Lev Walkinaef10c32014-01-14 01:47:25 -080012980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012981/* end confdefs.h. */
12982#include <limits.h>
12983
12984int
12985main ()
12986{
12987#ifndef _BIG_ENDIAN
12988 not big endian
12989 #endif
12990
12991 ;
12992 return 0;
12993}
12994_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012995if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012996 ac_cv_c_bigendian=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012997else
Lev Walkinaef10c32014-01-14 01:47:25 -080012998 ac_cv_c_bigendian=no
Lev Walkinb3751942012-09-02 19:36:47 -070012999fi
Lev Walkinb3751942012-09-02 19:36:47 -070013000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070013001fi
Lev Walkinb3751942012-09-02 19:36:47 -070013002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003 fi
13004 if test $ac_cv_c_bigendian = unknown; then
13005 # Compile a test program.
Lev Walkinaef10c32014-01-14 01:47:25 -080013006 if test "$cross_compiling" = yes; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013007 # Try to guess by grepping values from an object file.
Lev Walkinaef10c32014-01-14 01:47:25 -080013008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070013009/* end confdefs.h. */
13010short int ascii_mm[] =
13011 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13012 short int ascii_ii[] =
13013 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13014 int use_ascii (int i) {
13015 return ascii_mm[i] + ascii_ii[i];
13016 }
13017 short int ebcdic_ii[] =
13018 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13019 short int ebcdic_mm[] =
13020 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13021 int use_ebcdic (int i) {
13022 return ebcdic_mm[i] + ebcdic_ii[i];
13023 }
13024 extern int foo;
13025
13026int
13027main ()
13028{
13029return use_ascii (foo) == use_ebcdic (foo);
13030 ;
13031 return 0;
13032}
13033_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013034if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013035 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13036 ac_cv_c_bigendian=yes
13037 fi
13038 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13039 if test "$ac_cv_c_bigendian" = unknown; then
13040 ac_cv_c_bigendian=no
13041 else
13042 # finding both strings is unlikely to happen, but who knows?
13043 ac_cv_c_bigendian=unknown
13044 fi
13045 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013046fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013048else
Lev Walkinaef10c32014-01-14 01:47:25 -080013049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013050/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013051$ac_includes_default
Lev Walkinf15320b2004-06-03 03:38:44 +000013052int
13053main ()
13054{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013055
Lev Walkinb3751942012-09-02 19:36:47 -070013056 /* Are we little or big endian? From Harbison&Steele. */
13057 union
13058 {
13059 long int l;
13060 char c[sizeof (long int)];
13061 } u;
13062 u.l = 1;
13063 return u.c[sizeof (long int) - 1] == 1;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013064
13065 ;
13066 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000013067}
13068_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013069if ac_fn_c_try_run "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013070 ac_cv_c_bigendian=no
13071else
Lev Walkinaef10c32014-01-14 01:47:25 -080013072 ac_cv_c_bigendian=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000013073fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13075 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013076fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013077
Lev Walkinb3751942012-09-02 19:36:47 -070013078 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013079fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013081$as_echo "$ac_cv_c_bigendian" >&6; }
13082 case $ac_cv_c_bigendian in #(
13083 yes)
Lev Walkinaef10c32014-01-14 01:47:25 -080013084 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Lev Walkinb3751942012-09-02 19:36:47 -070013085;; #(
13086 no)
13087 ;; #(
13088 universal)
Lev Walkinf15320b2004-06-03 03:38:44 +000013089
Lev Walkinaef10c32014-01-14 01:47:25 -080013090$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Lev Walkinb3751942012-09-02 19:36:47 -070013091
13092 ;; #(
13093 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080013094 as_fn_error $? "unknown endianness
13095 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Lev Walkinb3751942012-09-02 19:36:47 -070013096 esac
13097
Lev Walkinaef10c32014-01-14 01:47:25 -080013098ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13099if test "x$ac_cv_type_off_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013100
Lev Walkinf15320b2004-06-03 03:38:44 +000013101else
13102
13103cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013104#define off_t long int
Lev Walkinf15320b2004-06-03 03:38:44 +000013105_ACEOF
13106
13107fi
13108
Lev Walkinaef10c32014-01-14 01:47:25 -080013109ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13110if test "x$ac_cv_type_size_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013111
Lev Walkinf15320b2004-06-03 03:38:44 +000013112else
13113
13114cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013115#define size_t unsigned int
Lev Walkinf15320b2004-06-03 03:38:44 +000013116_ACEOF
13117
13118fi
13119
Lev Walkinaef10c32014-01-14 01:47:25 -080013120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013121$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080013122if ${ac_cv_struct_tm+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013123 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000013124else
Lev Walkinaef10c32014-01-14 01:47:25 -080013125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013126/* end confdefs.h. */
13127#include <sys/types.h>
13128#include <time.h>
13129
13130int
13131main ()
13132{
Lev Walkin4c776e52010-11-08 02:07:31 -080013133struct tm tm;
13134 int *p = &tm.tm_sec;
Lev Walkinb3751942012-09-02 19:36:47 -070013135 return !p;
Lev Walkinf15320b2004-06-03 03:38:44 +000013136 ;
13137 return 0;
13138}
13139_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013140if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013141 ac_cv_struct_tm=time.h
13142else
Lev Walkinaef10c32014-01-14 01:47:25 -080013143 ac_cv_struct_tm=sys/time.h
Lev Walkinf15320b2004-06-03 03:38:44 +000013144fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013146fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013148$as_echo "$ac_cv_struct_tm" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013149if test $ac_cv_struct_tm = sys/time.h; then
13150
Lev Walkinaef10c32014-01-14 01:47:25 -080013151$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000013152
13153fi
13154
Lev Walkinaef10c32014-01-14 01:47:25 -080013155ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
13156if test "x$ac_cv_type_intmax_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013157
Lev Walkinf15320b2004-06-03 03:38:44 +000013158else
13159
13160cat >>confdefs.h <<_ACEOF
13161#define intmax_t int64_t
13162_ACEOF
13163
13164fi
13165
13166
Lev Walkinb40ec412014-02-24 00:57:18 -080013167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long is longer than 32 bit" >&5
13168$as_echo_n "checking size of long is longer than 32 bit... " >&6; }
13169
13170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171/* end confdefs.h. */
13172#include "confdefs.h"
13173#include <sys/types.h>
13174
13175int
13176main ()
13177{
13178switch (0) case 0: case (sizeof ($1) >= 8):;
13179 ;
13180 return 0;
13181}
13182_ACEOF
13183if ac_fn_c_try_compile "$LINENO"; then :
13184 WIDE_LONG=yes
13185else
13186 WIDE_LONG=no
13187fi
13188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIDE_LONG" >&5
13190$as_echo "$WIDE_LONG" >&6; }
13191 if test x$WIDE_LONG = xyes; then
13192 TEST_64BIT_TRUE=
13193 TEST_64BIT_FALSE='#'
13194else
13195 TEST_64BIT_TRUE='#'
13196 TEST_64BIT_FALSE=
13197fi
13198
13199
13200
Lev Walkinaef10c32014-01-14 01:47:25 -080013201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013202$as_echo_n "checking for library containing getopt... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080013203if ${ac_cv_search_getopt+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013204 $as_echo_n "(cached) " >&6
Lev Walkin058e2222007-12-04 00:27:38 +000013205else
13206 ac_func_search_save_LIBS=$LIBS
Lev Walkinaef10c32014-01-14 01:47:25 -080013207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin058e2222007-12-04 00:27:38 +000013208/* end confdefs.h. */
13209
13210/* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
13213#ifdef __cplusplus
13214extern "C"
13215#endif
13216char getopt ();
13217int
13218main ()
13219{
13220return getopt ();
13221 ;
13222 return 0;
13223}
13224_ACEOF
13225for ac_lib in '' iberty; do
13226 if test -z "$ac_lib"; then
13227 ac_res="none required"
13228 else
13229 ac_res=-l$ac_lib
13230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13231 fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013232 if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin058e2222007-12-04 00:27:38 +000013233 ac_cv_search_getopt=$ac_res
Lev Walkin058e2222007-12-04 00:27:38 +000013234fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013235rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext
13237 if ${ac_cv_search_getopt+:} false; then :
Lev Walkin058e2222007-12-04 00:27:38 +000013238 break
13239fi
13240done
Lev Walkinaef10c32014-01-14 01:47:25 -080013241if ${ac_cv_search_getopt+:} false; then :
13242
Lev Walkin058e2222007-12-04 00:27:38 +000013243else
13244 ac_cv_search_getopt=no
13245fi
13246rm conftest.$ac_ext
13247LIBS=$ac_func_search_save_LIBS
13248fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013250$as_echo "$ac_cv_search_getopt" >&6; }
Lev Walkin058e2222007-12-04 00:27:38 +000013251ac_res=$ac_cv_search_getopt
Lev Walkinaef10c32014-01-14 01:47:25 -080013252if test "$ac_res" != no; then :
Lev Walkin058e2222007-12-04 00:27:38 +000013253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13254
13255fi
13256
13257
Lev Walkinf15320b2004-06-03 03:38:44 +000013258for ac_func in strtoimax strtoll
Lev Walkinaef10c32014-01-14 01:47:25 -080013259do :
13260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13261ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13262if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013263 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013264#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Lev Walkinf15320b2004-06-03 03:38:44 +000013265_ACEOF
13266
13267fi
13268done
13269
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013270for ac_func in mergesort
Lev Walkinaef10c32014-01-14 01:47:25 -080013271do :
13272 ac_fn_c_check_func "$LINENO" "mergesort" "ac_cv_func_mergesort"
13273if test "x$ac_cv_func_mergesort" = xyes; then :
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013274 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013275#define HAVE_MERGESORT 1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013276_ACEOF
13277
13278fi
13279done
13280
Lev Walkin27fd0b62007-08-27 23:57:45 +000013281for ac_func in mkstemps
Lev Walkinaef10c32014-01-14 01:47:25 -080013282do :
13283 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
13284if test "x$ac_cv_func_mkstemps" = xyes; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000013285 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013286#define HAVE_MKSTEMPS 1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013287_ACEOF
13288
13289fi
13290done
Lev Walkinf15320b2004-06-03 03:38:44 +000013291
13292
Lev Walkine0d321a2014-09-11 01:28:57 -070013293ac_config_files="$ac_config_files skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013294
Lev Walkinf15320b2004-06-03 03:38:44 +000013295cat >confcache <<\_ACEOF
13296# This file is a shell script that caches the results of configure
13297# tests run on this system so they can be shared between configure
13298# scripts and configure runs, see configure's option --config-cache.
13299# It is not useful on other systems. If it contains results you don't
13300# want to keep, you may remove or edit it.
13301#
13302# config.status only pays attention to the cache file if you give it
13303# the --recheck option to rerun configure.
13304#
13305# `ac_cv_env_foo' variables (set or unset) will be overridden when
13306# loading this file, other *unset* `ac_cv_foo' will be assigned the
13307# following values.
13308
13309_ACEOF
13310
13311# The following way of writing the cache mishandles newlines in values,
13312# but we know of no workaround that is simple, portable, and efficient.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013313# So, we kill variables containing newlines.
Lev Walkinf15320b2004-06-03 03:38:44 +000013314# Ultrix sh set writes to stderr and can't be redirected directly,
13315# and sets the high bit in the cache file unless we assign to the vars.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013316(
13317 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13318 eval ac_val=\$$ac_var
13319 case $ac_val in #(
13320 *${as_nl}*)
13321 case $ac_var in #(
Lev Walkinaef10c32014-01-14 01:47:25 -080013322 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013323$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013324 esac
13325 case $ac_var in #(
13326 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -070013327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkinaef10c32014-01-14 01:47:25 -080013328 *) { eval $ac_var=; unset $ac_var;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013329 esac ;;
13330 esac
13331 done
13332
Lev Walkinf15320b2004-06-03 03:38:44 +000013333 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +000013334 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13335 *${as_nl}ac_space=\ *)
Lev Walkinaef10c32014-01-14 01:47:25 -080013336 # `set' does not quote correctly, so add quotes: double-quote
13337 # substitution turns \\\\ into \\, and sed turns \\ into \.
Lev Walkinf15320b2004-06-03 03:38:44 +000013338 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013339 "s/'/'\\\\''/g;
13340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013341 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +000013342 *)
13343 # `set' quotes correctly as required by POSIX, so do not add quotes.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000013345 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013346 esac |
13347 sort
13348) |
Lev Walkinf15320b2004-06-03 03:38:44 +000013349 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000013350 /^ac_cv_env_/b end
Lev Walkinf15320b2004-06-03 03:38:44 +000013351 t clear
Lev Walkin27fd0b62007-08-27 23:57:45 +000013352 :clear
Lev Walkinf15320b2004-06-03 03:38:44 +000013353 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13354 t end
Lev Walkin27fd0b62007-08-27 23:57:45 +000013355 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13356 :end' >>confcache
13357if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13358 if test -w "$cache_file"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013359 if test "x$cache_file" != "x/dev/null"; then
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013361$as_echo "$as_me: updating cache $cache_file" >&6;}
Lev Walkinaef10c32014-01-14 01:47:25 -080013362 if test ! -f "$cache_file" || test -h "$cache_file"; then
13363 cat confcache >"$cache_file"
13364 else
13365 case $cache_file in #(
13366 */* | ?:*)
13367 mv -f confcache "$cache_file"$$ &&
13368 mv -f "$cache_file"$$ "$cache_file" ;; #(
13369 *)
13370 mv -f confcache "$cache_file" ;;
13371 esac
13372 fi
13373 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013374 else
Lev Walkinaef10c32014-01-14 01:47:25 -080013375 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013376$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000013377 fi
13378fi
13379rm -f confcache
13380
13381test "x$prefix" = xNONE && prefix=$ac_default_prefix
13382# Let make expand exec_prefix.
13383test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13384
Lev Walkinf15320b2004-06-03 03:38:44 +000013385DEFS=-DHAVE_CONFIG_H
13386
13387ac_libobjs=
13388ac_ltlibobjs=
Lev Walkinaef10c32014-01-14 01:47:25 -080013389U=
Lev Walkinf15320b2004-06-03 03:38:44 +000013390for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13391 # 1. Remove the extension, and $U if already installed.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013392 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Lev Walkinb3751942012-09-02 19:36:47 -070013393 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Lev Walkin27fd0b62007-08-27 23:57:45 +000013394 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13395 # will be set to the directory where LIBOBJS objects are built.
Lev Walkinaef10c32014-01-14 01:47:25 -080013396 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13397 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Lev Walkinf15320b2004-06-03 03:38:44 +000013398done
13399LIBOBJS=$ac_libobjs
13400
13401LTLIBOBJS=$ac_ltlibobjs
13402
13403
Lev Walkinb3751942012-09-02 19:36:47 -070013404 if test -n "$EXEEXT"; then
13405 am__EXEEXT_TRUE=
13406 am__EXEEXT_FALSE='#'
13407else
13408 am__EXEEXT_TRUE='#'
13409 am__EXEEXT_FALSE=
13410fi
13411
Lev Walkine0d321a2014-09-11 01:28:57 -070013412if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13413 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13414Usually this means the macro was only invoked conditionally." "$LINENO" 5
13415fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000013416if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013417 as_fn_error $? "conditional \"AMDEP\" was never defined.
13418Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013419fi
13420if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013421 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13422Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013423fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000013424if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013425 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13426Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013427fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013428
Lev Walkinb40ec412014-02-24 00:57:18 -080013429if test -z "${TEST_64BIT_TRUE}" && test -z "${TEST_64BIT_FALSE}"; then
13430 as_fn_error $? "conditional \"TEST_64BIT\" was never defined.
13431Usually this means the macro was only invoked conditionally." "$LINENO" 5
13432fi
Lev Walkinb3751942012-09-02 19:36:47 -070013433
Lev Walkinaef10c32014-01-14 01:47:25 -080013434: "${CONFIG_STATUS=./config.status}"
Lev Walkinb3751942012-09-02 19:36:47 -070013435ac_write_fail=0
Lev Walkinf15320b2004-06-03 03:38:44 +000013436ac_clean_files_save=$ac_clean_files
13437ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Lev Walkinaef10c32014-01-14 01:47:25 -080013438{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013439$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Lev Walkinaef10c32014-01-14 01:47:25 -080013440as_write_fail=0
13441cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013442#! $SHELL
13443# Generated by $as_me.
13444# Run this file to recreate the current configuration.
13445# Compiler output produced by configure, useful for debugging
13446# configure, is in config.log if it exists.
13447
13448debug=false
13449ac_cs_recheck=false
13450ac_cs_silent=false
Lev Walkinf15320b2004-06-03 03:38:44 +000013451
Lev Walkinaef10c32014-01-14 01:47:25 -080013452SHELL=\${CONFIG_SHELL-$SHELL}
13453export SHELL
13454_ASEOF
13455cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13456## -------------------- ##
13457## M4sh Initialization. ##
13458## -------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +000013459
Lev Walkin4c776e52010-11-08 02:07:31 -080013460# Be more Bourne compatible
13461DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinaef10c32014-01-14 01:47:25 -080013462if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013463 emulate sh
13464 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070013465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000013466 # is contrary to our usage. Disable this feature.
13467 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013468 setopt NO_GLOB_SUBST
13469else
Lev Walkinaef10c32014-01-14 01:47:25 -080013470 case `(set -o) 2>/dev/null` in #(
13471 *posix*) :
13472 set -o posix ;; #(
13473 *) :
13474 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -080013475esac
Lev Walkinf15320b2004-06-03 03:38:44 +000013476fi
Lev Walkin4c776e52010-11-08 02:07:31 -080013477
13478
Lev Walkinb3751942012-09-02 19:36:47 -070013479as_nl='
13480'
13481export as_nl
13482# Printing a long string crashes Solaris 7 /usr/bin/printf.
13483as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13484as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13485as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Lev Walkinaef10c32014-01-14 01:47:25 -080013486# Prefer a ksh shell builtin over an external printf program on Solaris,
13487# but without wasting forks for bash or zsh.
13488if test -z "$BASH_VERSION$ZSH_VERSION" \
13489 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13490 as_echo='print -r --'
13491 as_echo_n='print -rn --'
13492elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Lev Walkinb3751942012-09-02 19:36:47 -070013493 as_echo='printf %s\n'
13494 as_echo_n='printf %s'
13495else
13496 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13497 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13498 as_echo_n='/usr/ucb/echo -n'
13499 else
13500 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13501 as_echo_n_body='eval
13502 arg=$1;
Lev Walkinaef10c32014-01-14 01:47:25 -080013503 case $arg in #(
Lev Walkinb3751942012-09-02 19:36:47 -070013504 *"$as_nl"*)
13505 expr "X$arg" : "X\\(.*\\)$as_nl";
13506 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13507 esac;
13508 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13509 '
13510 export as_echo_n_body
13511 as_echo_n='sh -c $as_echo_n_body as_echo'
13512 fi
13513 export as_echo_body
13514 as_echo='sh -c $as_echo_body as_echo'
13515fi
13516
Lev Walkinf15320b2004-06-03 03:38:44 +000013517# The user is always right.
13518if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070013519 PATH_SEPARATOR=:
13520 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13521 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13522 PATH_SEPARATOR=';'
13523 }
Lev Walkinf15320b2004-06-03 03:38:44 +000013524fi
13525
Lev Walkin27fd0b62007-08-27 23:57:45 +000013526
13527# IFS
13528# We need space, tab and new line, in precisely that order. Quoting is
13529# there to prevent editors from complaining about space-tab.
13530# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13531# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013532IFS=" "" $as_nl"
13533
13534# Find who we are. Look in the path if we contain no directory separator.
Lev Walkinaef10c32014-01-14 01:47:25 -080013535as_myself=
13536case $0 in #((
Lev Walkin27fd0b62007-08-27 23:57:45 +000013537 *[\\/]* ) as_myself=$0 ;;
13538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000013539for as_dir in $PATH
13540do
13541 IFS=$as_save_IFS
13542 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080013543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13544 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013545IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000013546
Lev Walkin27fd0b62007-08-27 23:57:45 +000013547 ;;
13548esac
13549# We did not find ourselves, most probably we were run as `sh COMMAND'
13550# in which case we are not to be found in the path.
13551if test "x$as_myself" = x; then
13552 as_myself=$0
13553fi
13554if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -070013555 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -080013556 exit 1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013557fi
13558
Lev Walkinaef10c32014-01-14 01:47:25 -080013559# Unset variables that we do not need and which cause bugs (e.g. in
13560# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13561# suppresses any "Segmentation fault" message there. '((' could
13562# trigger a bug in pdksh 5.2.14.
13563for as_var in BASH_ENV ENV MAIL MAILPATH
13564do eval test x\${$as_var+set} = xset \
13565 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Lev Walkin27fd0b62007-08-27 23:57:45 +000013566done
13567PS1='$ '
13568PS2='> '
13569PS4='+ '
13570
13571# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -070013572LC_ALL=C
13573export LC_ALL
13574LANGUAGE=C
13575export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +000013576
Lev Walkinaef10c32014-01-14 01:47:25 -080013577# CDPATH.
13578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13579
13580
13581# as_fn_error STATUS ERROR [LINENO LOG_FD]
13582# ----------------------------------------
13583# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13584# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13585# script with STATUS, using 1 if that was 0.
13586as_fn_error ()
13587{
13588 as_status=$1; test $as_status -eq 0 && as_status=1
13589 if test "$4"; then
13590 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13591 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13592 fi
13593 $as_echo "$as_me: error: $2" >&2
13594 as_fn_exit $as_status
13595} # as_fn_error
13596
13597
13598# as_fn_set_status STATUS
13599# -----------------------
13600# Set $? to STATUS, without forking.
13601as_fn_set_status ()
13602{
13603 return $1
13604} # as_fn_set_status
13605
13606# as_fn_exit STATUS
13607# -----------------
13608# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13609as_fn_exit ()
13610{
13611 set +e
13612 as_fn_set_status $1
13613 exit $1
13614} # as_fn_exit
13615
13616# as_fn_unset VAR
13617# ---------------
13618# Portably unset VAR.
13619as_fn_unset ()
13620{
13621 { eval $1=; unset $1;}
13622}
13623as_unset=as_fn_unset
13624# as_fn_append VAR VALUE
13625# ----------------------
13626# Append the text in VALUE to the end of the definition contained in VAR. Take
13627# advantage of any shell optimizations that allow amortized linear growth over
13628# repeated appends, instead of the typical quadratic growth present in naive
13629# implementations.
13630if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13631 eval 'as_fn_append ()
13632 {
13633 eval $1+=\$2
13634 }'
13635else
13636 as_fn_append ()
13637 {
13638 eval $1=\$$1\$2
13639 }
13640fi # as_fn_append
13641
13642# as_fn_arith ARG...
13643# ------------------
13644# Perform arithmetic evaluation on the ARGs, and store the result in the
13645# global $as_val. Take advantage of shells that can avoid forks. The arguments
13646# must be portable across $(()) and expr.
13647if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13648 eval 'as_fn_arith ()
13649 {
13650 as_val=$(( $* ))
13651 }'
13652else
13653 as_fn_arith ()
13654 {
13655 as_val=`expr "$@" || test $? -eq 1`
13656 }
13657fi # as_fn_arith
13658
13659
Lev Walkin27fd0b62007-08-27 23:57:45 +000013660if expr a : '\(a\)' >/dev/null 2>&1 &&
13661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13662 as_expr=expr
13663else
13664 as_expr=false
13665fi
13666
13667if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13668 as_basename=basename
13669else
13670 as_basename=false
13671fi
13672
Lev Walkinaef10c32014-01-14 01:47:25 -080013673if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13674 as_dirname=dirname
13675else
13676 as_dirname=false
13677fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013678
Lev Walkin27fd0b62007-08-27 23:57:45 +000013679as_me=`$as_basename -- "$0" ||
13680$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13681 X"$0" : 'X\(//\)$' \| \
13682 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070013683$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000013684 sed '/^.*\/\([^/][^/]*\)\/*$/{
13685 s//\1/
13686 q
13687 }
13688 /^X\/\(\/\/\)$/{
13689 s//\1/
13690 q
13691 }
13692 /^X\/\(\/\).*/{
13693 s//\1/
13694 q
13695 }
13696 s/.*/./; q'`
13697
Lev Walkinaef10c32014-01-14 01:47:25 -080013698# Avoid depending upon Character Ranges.
13699as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13700as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13701as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13702as_cr_digits='0123456789'
13703as_cr_alnum=$as_cr_Letters$as_cr_digits
Lev Walkin27fd0b62007-08-27 23:57:45 +000013704
13705ECHO_C= ECHO_N= ECHO_T=
Lev Walkinaef10c32014-01-14 01:47:25 -080013706case `echo -n x` in #(((((
Lev Walkin27fd0b62007-08-27 23:57:45 +000013707-n*)
Lev Walkinaef10c32014-01-14 01:47:25 -080013708 case `echo 'xy\c'` in
Lev Walkin27fd0b62007-08-27 23:57:45 +000013709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Lev Walkinaef10c32014-01-14 01:47:25 -080013710 xy) ECHO_C='\c';;
13711 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13712 ECHO_T=' ';;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013713 esac;;
13714*)
13715 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +000013716esac
Lev Walkinf15320b2004-06-03 03:38:44 +000013717
13718rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +000013719if test -d conf$$.dir; then
13720 rm -f conf$$.dir/conf$$.file
13721else
13722 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -070013723 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +000013724fi
Lev Walkinb3751942012-09-02 19:36:47 -070013725if (echo >conf$$.file) 2>/dev/null; then
13726 if ln -s conf$$.file conf$$ 2>/dev/null; then
13727 as_ln_s='ln -s'
13728 # ... but there are two gotchas:
13729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Lev Walkinaef10c32014-01-14 01:47:25 -080013731 # In both cases, we have to default to `cp -pR'.
Lev Walkinb3751942012-09-02 19:36:47 -070013732 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinaef10c32014-01-14 01:47:25 -080013733 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -070013734 elif ln conf$$.file conf$$ 2>/dev/null; then
13735 as_ln_s=ln
13736 else
Lev Walkinaef10c32014-01-14 01:47:25 -080013737 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -070013738 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013739else
Lev Walkinaef10c32014-01-14 01:47:25 -080013740 as_ln_s='cp -pR'
Lev Walkinf15320b2004-06-03 03:38:44 +000013741fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013742rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13743rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +000013744
Lev Walkinaef10c32014-01-14 01:47:25 -080013745
13746# as_fn_mkdir_p
13747# -------------
13748# Create "$as_dir" as a directory, including parents if necessary.
13749as_fn_mkdir_p ()
13750{
13751
13752 case $as_dir in #(
13753 -*) as_dir=./$as_dir;;
13754 esac
13755 test -d "$as_dir" || eval $as_mkdir_p || {
13756 as_dirs=
13757 while :; do
13758 case $as_dir in #(
13759 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13760 *) as_qdir=$as_dir;;
13761 esac
13762 as_dirs="'$as_qdir' $as_dirs"
13763 as_dir=`$as_dirname -- "$as_dir" ||
13764$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13765 X"$as_dir" : 'X\(//\)[^/]' \| \
13766 X"$as_dir" : 'X\(//\)$' \| \
13767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13768$as_echo X"$as_dir" |
13769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13770 s//\1/
13771 q
13772 }
13773 /^X\(\/\/\)[^/].*/{
13774 s//\1/
13775 q
13776 }
13777 /^X\(\/\/\)$/{
13778 s//\1/
13779 q
13780 }
13781 /^X\(\/\).*/{
13782 s//\1/
13783 q
13784 }
13785 s/.*/./; q'`
13786 test -d "$as_dir" && break
13787 done
13788 test -z "$as_dirs" || eval "mkdir $as_dirs"
13789 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13790
13791
13792} # as_fn_mkdir_p
Lev Walkinf15320b2004-06-03 03:38:44 +000013793if mkdir -p . 2>/dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013794 as_mkdir_p='mkdir -p "$as_dir"'
Lev Walkinf15320b2004-06-03 03:38:44 +000013795else
Lev Walkin8e8b5482004-06-17 23:42:48 +000013796 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000013797 as_mkdir_p=false
13798fi
13799
Lev Walkinaef10c32014-01-14 01:47:25 -080013800
13801# as_fn_executable_p FILE
13802# -----------------------
13803# Test if FILE is an executable regular file.
13804as_fn_executable_p ()
13805{
13806 test -f "$1" && test -x "$1"
13807} # as_fn_executable_p
13808as_test_x='test -x'
13809as_executable_p=as_fn_executable_p
Lev Walkinf15320b2004-06-03 03:38:44 +000013810
13811# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013812as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013813
13814# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013815as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013816
13817
Lev Walkinf15320b2004-06-03 03:38:44 +000013818exec 6>&1
Lev Walkinaef10c32014-01-14 01:47:25 -080013819## ----------------------------------- ##
13820## Main body of $CONFIG_STATUS script. ##
13821## ----------------------------------- ##
13822_ASEOF
13823test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013824
Lev Walkinaef10c32014-01-14 01:47:25 -080013825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13826# Save the log message, to keep $0 and so on meaningful, and to
Lev Walkinf15320b2004-06-03 03:38:44 +000013827# report actual input values of CONFIG_FILES etc. instead of their
Lev Walkin27fd0b62007-08-27 23:57:45 +000013828# values after options handling.
13829ac_log="
Lev Walkine0d321a2014-09-11 01:28:57 -070013830This file was extended by asn1c $as_me 0.9.26, which was
Lev Walkinaef10c32014-01-14 01:47:25 -080013831generated by GNU Autoconf 2.69. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000013832
13833 CONFIG_FILES = $CONFIG_FILES
13834 CONFIG_HEADERS = $CONFIG_HEADERS
13835 CONFIG_LINKS = $CONFIG_LINKS
13836 CONFIG_COMMANDS = $CONFIG_COMMANDS
13837 $ $0 $@
13838
Lev Walkin27fd0b62007-08-27 23:57:45 +000013839on `(hostname || uname -n) 2>/dev/null | sed 1q`
13840"
13841
Lev Walkinf15320b2004-06-03 03:38:44 +000013842_ACEOF
13843
Lev Walkinb3751942012-09-02 19:36:47 -070013844case $ac_config_files in *"
13845"*) set x $ac_config_files; shift; ac_config_files=$*;;
13846esac
13847
13848case $ac_config_headers in *"
13849"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13850esac
13851
13852
13853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013854# Files that config.status was made for.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013855config_files="$ac_config_files"
13856config_headers="$ac_config_headers"
13857config_commands="$ac_config_commands"
Lev Walkinf15320b2004-06-03 03:38:44 +000013858
Lev Walkin27fd0b62007-08-27 23:57:45 +000013859_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013860
Lev Walkinb3751942012-09-02 19:36:47 -070013861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013862ac_cs_usage="\
Lev Walkinaef10c32014-01-14 01:47:25 -080013863\`$as_me' instantiates files and other configuration actions
13864from templates according to the current configuration. Unless the files
13865and actions are specified as TAGs, all are instantiated by default.
Lev Walkinf15320b2004-06-03 03:38:44 +000013866
Lev Walkinaef10c32014-01-14 01:47:25 -080013867Usage: $0 [OPTION]... [TAG]...
Lev Walkinf15320b2004-06-03 03:38:44 +000013868
13869 -h, --help print this help, then exit
Lev Walkin4c776e52010-11-08 02:07:31 -080013870 -V, --version print version number and configuration settings, then exit
Lev Walkinaef10c32014-01-14 01:47:25 -080013871 --config print configuration, then exit
Lev Walkinb3751942012-09-02 19:36:47 -070013872 -q, --quiet, --silent
13873 do not print progress messages
Lev Walkinf15320b2004-06-03 03:38:44 +000013874 -d, --debug don't remove temporary files
13875 --recheck update $as_me by reconfiguring in the same conditions
Lev Walkinb3751942012-09-02 19:36:47 -070013876 --file=FILE[:TEMPLATE]
13877 instantiate the configuration file FILE
13878 --header=FILE[:TEMPLATE]
13879 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000013880
13881Configuration files:
13882$config_files
13883
13884Configuration headers:
13885$config_headers
13886
13887Configuration commands:
13888$config_commands
13889
Lev Walkinaef10c32014-01-14 01:47:25 -080013890Report bugs to <vlm@lionet.info>."
Lev Walkinf15320b2004-06-03 03:38:44 +000013891
Lev Walkin27fd0b62007-08-27 23:57:45 +000013892_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080013894ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Lev Walkinf15320b2004-06-03 03:38:44 +000013895ac_cs_version="\\
Lev Walkine0d321a2014-09-11 01:28:57 -070013896asn1c config.status 0.9.26
Lev Walkinaef10c32014-01-14 01:47:25 -080013897configured by $0, generated by GNU Autoconf 2.69,
13898 with options \\"\$ac_cs_config\\"
Lev Walkinf15320b2004-06-03 03:38:44 +000013899
Lev Walkinaef10c32014-01-14 01:47:25 -080013900Copyright (C) 2012 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000013901This config.status script is free software; the Free Software Foundation
13902gives unlimited permission to copy, distribute and modify it."
Lev Walkin27fd0b62007-08-27 23:57:45 +000013903
13904ac_pwd='$ac_pwd'
13905srcdir='$srcdir'
13906INSTALL='$INSTALL'
Lev Walkin4c776e52010-11-08 02:07:31 -080013907MKDIR_P='$MKDIR_P'
Lev Walkinb3751942012-09-02 19:36:47 -070013908AWK='$AWK'
13909test -n "\$AWK" || AWK=awk
Lev Walkinf15320b2004-06-03 03:38:44 +000013910_ACEOF
13911
Lev Walkinb3751942012-09-02 19:36:47 -070013912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13913# The default lists apply if the user does not specify any file.
Lev Walkinf15320b2004-06-03 03:38:44 +000013914ac_need_defaults=:
13915while test $# != 0
13916do
13917 case $1 in
Lev Walkinaef10c32014-01-14 01:47:25 -080013918 --*=?*)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013919 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13920 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +000013921 ac_shift=:
13922 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013923 --*=)
13924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13925 ac_optarg=
13926 ac_shift=:
13927 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013928 *)
Lev Walkinf15320b2004-06-03 03:38:44 +000013929 ac_option=$1
13930 ac_optarg=$2
13931 ac_shift=shift
13932 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013933 esac
13934
13935 case $ac_option in
13936 # Handling of the options.
Lev Walkinf15320b2004-06-03 03:38:44 +000013937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13938 ac_cs_recheck=: ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013939 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Lev Walkinb3751942012-09-02 19:36:47 -070013940 $as_echo "$ac_cs_version"; exit ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013941 --config | --confi | --conf | --con | --co | --c )
13942 $as_echo "$ac_cs_config"; exit ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013943 --debug | --debu | --deb | --de | --d | -d )
Lev Walkinf15320b2004-06-03 03:38:44 +000013944 debug=: ;;
13945 --file | --fil | --fi | --f )
13946 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070013947 case $ac_optarg in
13948 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013949 '') as_fn_error $? "missing file argument" ;;
Lev Walkinb3751942012-09-02 19:36:47 -070013950 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080013951 as_fn_append CONFIG_FILES " '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013952 ac_need_defaults=false;;
13953 --header | --heade | --head | --hea )
13954 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070013955 case $ac_optarg in
13956 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13957 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080013958 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013959 ac_need_defaults=false;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013960 --he | --h)
13961 # Conflict between --help and --header
Lev Walkinaef10c32014-01-14 01:47:25 -080013962 as_fn_error $? "ambiguous option: \`$1'
13963Try \`$0 --help' for more information.";;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013964 --help | --hel | -h )
Lev Walkinb3751942012-09-02 19:36:47 -070013965 $as_echo "$ac_cs_usage"; exit ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013966 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13967 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13968 ac_cs_silent=: ;;
13969
13970 # This is an error.
Lev Walkinaef10c32014-01-14 01:47:25 -080013971 -*) as_fn_error $? "unrecognized option: \`$1'
13972Try \`$0 --help' for more information." ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013973
Lev Walkinaef10c32014-01-14 01:47:25 -080013974 *) as_fn_append ac_config_targets " $1"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013975 ac_need_defaults=false ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013976
13977 esac
13978 shift
13979done
13980
13981ac_configure_extra_args=
13982
13983if $ac_cs_silent; then
13984 exec 6>/dev/null
13985 ac_configure_extra_args="$ac_configure_extra_args --silent"
13986fi
13987
13988_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013990if \$ac_cs_recheck; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013991 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Lev Walkinb3751942012-09-02 19:36:47 -070013992 shift
13993 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13994 CONFIG_SHELL='$SHELL'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013995 export CONFIG_SHELL
Lev Walkinb3751942012-09-02 19:36:47 -070013996 exec "\$@"
Lev Walkinf15320b2004-06-03 03:38:44 +000013997fi
13998
13999_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014001exec 5>>config.log
14002{
14003 echo
14004 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14005## Running $as_me. ##
14006_ASBOX
Lev Walkinb3751942012-09-02 19:36:47 -070014007 $as_echo "$ac_log"
Lev Walkin27fd0b62007-08-27 23:57:45 +000014008} >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014009
Lev Walkin27fd0b62007-08-27 23:57:45 +000014010_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014012#
Lev Walkin27fd0b62007-08-27 23:57:45 +000014013# INIT-COMMANDS
Lev Walkinf15320b2004-06-03 03:38:44 +000014014#
Lev Walkin8e8b5482004-06-17 23:42:48 +000014015AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000014016
Lev Walkin4da95cf2010-10-16 02:46:32 -070014017
14018# The HP-UX ksh and POSIX shell print the target directory to stdout
14019# if CDPATH is set.
14020(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14021
14022sed_quote_subst='$sed_quote_subst'
14023double_quote_subst='$double_quote_subst'
14024delay_variable_subst='$delay_variable_subst'
Lev Walkinaef10c32014-01-14 01:47:25 -080014025macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14026macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14027enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14028enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14029pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14030enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14031SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14032ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14033host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14034host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14035host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14036build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14037build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14038build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14039SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14040Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14041GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14042EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14043FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14044LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14045NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14046LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14047max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14048ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14049exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14050lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14051lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14052lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14053lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14054lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14055reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14056reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14057OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14058deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14059file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14060file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14061want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14062DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14063sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14064AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14065AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14066archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14067STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14068RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14069old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14070old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14071old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14072lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14073CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14074CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14075compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14076GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14077lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14078lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14079lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14080lt_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"`'
14081nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14082lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14083objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14084MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14085lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14086lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14087lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14088lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14089lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14090need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14091MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14092DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14093NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14094LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14095OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14096OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14097libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14098shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14099extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14100archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14101enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14102export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14103whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14104compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14105old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14106old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14107archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14108archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14109module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14110module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14111with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14112allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14113no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14114hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14115hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14116hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14117hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14118hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14119hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14120hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14121hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14122inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14123link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14124always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14125export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14126exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14127include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14128prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14129postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14130file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14131variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14132need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14133need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14134version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14135runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14136shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14137shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14138libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14139library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14140soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14141install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14142postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14143postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14144finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14145finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14146hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14147sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14148sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14149hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14150enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14151enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14152enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14153old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14154striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070014155
14156LTCC='$LTCC'
14157LTCFLAGS='$LTCFLAGS'
14158compiler='$compiler_DEFAULT'
14159
Lev Walkinaef10c32014-01-14 01:47:25 -080014160# A function that is used when there is no print builtin or printf.
14161func_fallback_echo ()
14162{
14163 eval 'cat <<_LTECHO_EOF
14164\$1
14165_LTECHO_EOF'
14166}
14167
Lev Walkin4da95cf2010-10-16 02:46:32 -070014168# Quote evaled strings.
Lev Walkinaef10c32014-01-14 01:47:25 -080014169for var in SHELL \
14170ECHO \
14171SED \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014172GREP \
14173EGREP \
14174FGREP \
14175LD \
14176NM \
14177LN_S \
14178lt_SP2NL \
14179lt_NL2SP \
14180reload_flag \
Lev Walkinaef10c32014-01-14 01:47:25 -080014181OBJDUMP \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014182deplibs_check_method \
14183file_magic_cmd \
Lev Walkinaef10c32014-01-14 01:47:25 -080014184file_magic_glob \
14185want_nocaseglob \
14186DLLTOOL \
14187sharedlib_from_linklib_cmd \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014188AR \
14189AR_FLAGS \
Lev Walkinaef10c32014-01-14 01:47:25 -080014190archiver_list_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014191STRIP \
14192RANLIB \
14193CC \
14194CFLAGS \
14195compiler \
14196lt_cv_sys_global_symbol_pipe \
14197lt_cv_sys_global_symbol_to_cdecl \
14198lt_cv_sys_global_symbol_to_c_name_address \
14199lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Lev Walkinaef10c32014-01-14 01:47:25 -080014200nm_file_list_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014201lt_prog_compiler_no_builtin_flag \
Lev Walkin4c776e52010-11-08 02:07:31 -080014202lt_prog_compiler_pic \
Lev Walkinaef10c32014-01-14 01:47:25 -080014203lt_prog_compiler_wl \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014204lt_prog_compiler_static \
14205lt_cv_prog_compiler_c_o \
14206need_locks \
Lev Walkinaef10c32014-01-14 01:47:25 -080014207MANIFEST_TOOL \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014208DSYMUTIL \
14209NMEDIT \
14210LIPO \
14211OTOOL \
14212OTOOL64 \
14213shrext_cmds \
14214export_dynamic_flag_spec \
14215whole_archive_flag_spec \
14216compiler_needs_object \
14217with_gnu_ld \
14218allow_undefined_flag \
14219no_undefined_flag \
14220hardcode_libdir_flag_spec \
14221hardcode_libdir_flag_spec_ld \
14222hardcode_libdir_separator \
14223exclude_expsyms \
14224include_expsyms \
14225file_list_spec \
14226variables_saved_for_relink \
14227libname_spec \
14228library_names_spec \
14229soname_spec \
Lev Walkinaef10c32014-01-14 01:47:25 -080014230install_override_mode \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014231finish_eval \
14232old_striplib \
14233striplib; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014234 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014235 *[\\\\\\\`\\"\\\$]*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014236 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014237 ;;
14238 *)
14239 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14240 ;;
14241 esac
14242done
14243
14244# Double-quote double-evaled strings.
14245for var in reload_cmds \
14246old_postinstall_cmds \
14247old_postuninstall_cmds \
14248old_archive_cmds \
14249extract_expsyms_cmds \
14250old_archive_from_new_cmds \
14251old_archive_from_expsyms_cmds \
14252archive_cmds \
14253archive_expsym_cmds \
14254module_cmds \
14255module_expsym_cmds \
14256export_symbols_cmds \
14257prelink_cmds \
Lev Walkinaef10c32014-01-14 01:47:25 -080014258postlink_cmds \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014259postinstall_cmds \
14260postuninstall_cmds \
14261finish_cmds \
14262sys_lib_search_path_spec \
14263sys_lib_dlsearch_path_spec; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014264 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014265 *[\\\\\\\`\\"\\\$]*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014267 ;;
14268 *)
14269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14270 ;;
14271 esac
14272done
14273
14274ac_aux_dir='$ac_aux_dir'
14275xsi_shell='$xsi_shell'
14276lt_shell_append='$lt_shell_append'
14277
14278# See if we are running on zsh, and set the options which allow our
14279# commands through without removal of \ escapes INIT.
14280if test -n "\${ZSH_VERSION+set}" ; then
14281 setopt NO_GLOB_SUBST
14282fi
14283
14284
14285 PACKAGE='$PACKAGE'
14286 VERSION='$VERSION'
14287 TIMESTAMP='$TIMESTAMP'
14288 RM='$RM'
14289 ofile='$ofile'
14290
14291
14292
14293
Lev Walkinf15320b2004-06-03 03:38:44 +000014294_ACEOF
14295
Lev Walkinb3751942012-09-02 19:36:47 -070014296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014297
14298# Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000014299for ac_config_target in $ac_config_targets
14300do
Lev Walkin27fd0b62007-08-27 23:57:45 +000014301 case $ac_config_target in
Lev Walkine7c4b962010-11-09 03:10:36 -080014302 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014303 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070014304 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014305 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
14306 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
14307 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
14308 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014309 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
14310 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
Lev Walkine7c4b962010-11-09 03:10:36 -080014311 "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014312 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
14313 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014314 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
14315 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14316 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
14317 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14318
Lev Walkinaef10c32014-01-14 01:47:25 -080014319 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014320 esac
14321done
14322
Lev Walkin27fd0b62007-08-27 23:57:45 +000014323
Lev Walkinf15320b2004-06-03 03:38:44 +000014324# If the user did not use the arguments to specify the items to instantiate,
14325# then the envvar interface is used. Set only those that are not.
14326# We use the long form for the default assignment because of an extremely
14327# bizarre bug on SunOS 4.1.3.
14328if $ac_need_defaults; then
14329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14332fi
14333
14334# Have a temporary directory for convenience. Make it in the build tree
Lev Walkin27fd0b62007-08-27 23:57:45 +000014335# simply because there is no reason against having it here, and in addition,
Lev Walkinf15320b2004-06-03 03:38:44 +000014336# creating and moving files from /tmp can sometimes cause problems.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014337# Hook for its removal unless debugging.
14338# Note that there is a small window in which the directory will not be cleaned:
14339# after its creation but before its name has been assigned to `$tmp'.
Lev Walkinf15320b2004-06-03 03:38:44 +000014340$debug ||
14341{
Lev Walkinaef10c32014-01-14 01:47:25 -080014342 tmp= ac_tmp=
Lev Walkin27fd0b62007-08-27 23:57:45 +000014343 trap 'exit_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080014344 : "${ac_tmp:=$tmp}"
14345 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +000014346' 0
Lev Walkinaef10c32014-01-14 01:47:25 -080014347 trap 'as_fn_exit 1' 1 2 13 15
Lev Walkinf15320b2004-06-03 03:38:44 +000014348}
Lev Walkinf15320b2004-06-03 03:38:44 +000014349# Create a (secure) tmp directory for tmp files.
14350
14351{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014352 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Lev Walkinaef10c32014-01-14 01:47:25 -080014353 test -d "$tmp"
Lev Walkinf15320b2004-06-03 03:38:44 +000014354} ||
14355{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014356 tmp=./conf$$-$RANDOM
14357 (umask 077 && mkdir "$tmp")
Lev Walkinaef10c32014-01-14 01:47:25 -080014358} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14359ac_tmp=$tmp
Lev Walkinf15320b2004-06-03 03:38:44 +000014360
Lev Walkinb3751942012-09-02 19:36:47 -070014361# Set up the scripts for CONFIG_FILES section.
14362# No need to generate them if there are no CONFIG_FILES.
14363# This happens for instance with `./config.status config.h'.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014364if test -n "$CONFIG_FILES"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014365
Lev Walkinb3751942012-09-02 19:36:47 -070014366
Lev Walkinaef10c32014-01-14 01:47:25 -080014367ac_cr=`echo X | tr X '\015'`
14368# On cygwin, bash can eat \r inside `` if the user requested igncr.
14369# But we know of no other shell where ac_cr would be empty at this
14370# point, so we can use a bashism as a fallback.
14371if test "x$ac_cr" = x; then
14372 eval ac_cr=\$\'\\r\'
14373fi
Lev Walkinb3751942012-09-02 19:36:47 -070014374ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14375if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14376 ac_cs_awk_cr='\\r'
14377else
14378 ac_cs_awk_cr=$ac_cr
14379fi
14380
Lev Walkinaef10c32014-01-14 01:47:25 -080014381echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Lev Walkinf15320b2004-06-03 03:38:44 +000014382_ACEOF
14383
Lev Walkin27fd0b62007-08-27 23:57:45 +000014384
Lev Walkinb3751942012-09-02 19:36:47 -070014385{
14386 echo "cat >conf$$subs.awk <<_ACEOF" &&
14387 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14388 echo "_ACEOF"
14389} >conf$$subs.sh ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014390 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14391ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014392ac_delim='%!_!# '
14393for ac_last_try in false false false false false :; do
Lev Walkinb3751942012-09-02 19:36:47 -070014394 . ./conf$$subs.sh ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014396
Lev Walkinb3751942012-09-02 19:36:47 -070014397 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14398 if test $ac_delim_n = $ac_delim_num; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014399 break
14400 elif $ac_last_try; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014402 else
14403 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Lev Walkinf15320b2004-06-03 03:38:44 +000014404 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014405done
Lev Walkinb3751942012-09-02 19:36:47 -070014406rm -f conf$$subs.sh
Lev Walkin27fd0b62007-08-27 23:57:45 +000014407
Lev Walkinb3751942012-09-02 19:36:47 -070014408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080014409cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014410_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014411sed -n '
14412h
14413s/^/S["/; s/!.*/"]=/
14414p
14415g
14416s/^[^!]*!//
14417:repl
14418t repl
14419s/'"$ac_delim"'$//
14420t delim
14421:nl
14422h
Lev Walkinaef10c32014-01-14 01:47:25 -080014423s/\(.\{148\}\)..*/\1/
Lev Walkinb3751942012-09-02 19:36:47 -070014424t more1
14425s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14426p
14427n
14428b repl
14429:more1
14430s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14431p
14432g
14433s/.\{148\}//
14434t nl
14435:delim
14436h
Lev Walkinaef10c32014-01-14 01:47:25 -080014437s/\(.\{148\}\)..*/\1/
Lev Walkinb3751942012-09-02 19:36:47 -070014438t more2
14439s/["\\]/\\&/g; s/^/"/; s/$/"/
14440p
14441b
14442:more2
14443s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14444p
14445g
14446s/.\{148\}//
14447t delim
14448' <conf$$subs.awk | sed '
14449/^[^""]/{
14450 N
14451 s/\n//
14452}
14453' >>$CONFIG_STATUS || ac_write_fail=1
14454rm -f conf$$subs.awk
14455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14456_ACAWK
Lev Walkinaef10c32014-01-14 01:47:25 -080014457cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Lev Walkinb3751942012-09-02 19:36:47 -070014458 for (key in S) S_is_set[key] = 1
14459 FS = ""
14460
14461}
14462{
14463 line = $ 0
14464 nfields = split(line, field, "@")
14465 substed = 0
14466 len = length(field[1])
14467 for (i = 2; i < nfields; i++) {
14468 key = field[i]
14469 keylen = length(key)
14470 if (S_is_set[key]) {
14471 value = S[key]
14472 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14473 len += length(value) + length(field[++i])
14474 substed = 1
14475 } else
14476 len += 1 + keylen
14477 }
14478
14479 print line
14480}
14481
14482_ACAWK
Lev Walkin27fd0b62007-08-27 23:57:45 +000014483_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14485if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14486 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14487else
14488 cat
Lev Walkinaef10c32014-01-14 01:47:25 -080014489fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14490 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014491_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014492
Lev Walkinaef10c32014-01-14 01:47:25 -080014493# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14494# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Lev Walkin27fd0b62007-08-27 23:57:45 +000014495# trailing colons and then remove the whole line if VPATH becomes empty
14496# (actually we leave an empty line to preserve line numbers).
14497if test "x$srcdir" = x.; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014498 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14499h
14500s///
14501s/^/:/
14502s/[ ]*$/:/
14503s/:\$(srcdir):/:/g
14504s/:\${srcdir}:/:/g
14505s/:@srcdir@:/:/g
14506s/^:*//
Lev Walkin27fd0b62007-08-27 23:57:45 +000014507s/:*$//
Lev Walkinaef10c32014-01-14 01:47:25 -080014508x
14509s/\(=[ ]*\).*/\1/
14510G
14511s/\n//
Lev Walkin27fd0b62007-08-27 23:57:45 +000014512s/^[^=]*=[ ]*$//
14513}'
14514fi
14515
Lev Walkinb3751942012-09-02 19:36:47 -070014516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014517fi # test -n "$CONFIG_FILES"
14518
Lev Walkinb3751942012-09-02 19:36:47 -070014519# Set up the scripts for CONFIG_HEADERS section.
14520# No need to generate them if there are no CONFIG_HEADERS.
14521# This happens for instance with `./config.status Makefile'.
14522if test -n "$CONFIG_HEADERS"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014523cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Lev Walkinb3751942012-09-02 19:36:47 -070014524BEGIN {
14525_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014526
Lev Walkinb3751942012-09-02 19:36:47 -070014527# Transform confdefs.h into an awk script `defines.awk', embedded as
14528# here-document in config.status, that substitutes the proper values into
14529# config.h.in to produce config.h.
14530
14531# Create a delimiter string that does not exist in confdefs.h, to ease
14532# handling of long lines.
14533ac_delim='%!_!# '
14534for ac_last_try in false false :; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014535 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14536 if test -z "$ac_tt"; then
Lev Walkinb3751942012-09-02 19:36:47 -070014537 break
14538 elif $ac_last_try; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014539 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070014540 else
14541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14542 fi
14543done
14544
14545# For the awk script, D is an array of macro values keyed by name,
14546# likewise P contains macro parameters if any. Preserve backslash
14547# newline sequences.
14548
14549ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14550sed -n '
14551s/.\{148\}/&'"$ac_delim"'/g
14552t rset
14553:rset
14554s/^[ ]*#[ ]*define[ ][ ]*/ /
14555t def
14556d
14557:def
14558s/\\$//
14559t bsnl
14560s/["\\]/\\&/g
14561s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14562D["\1"]=" \3"/p
14563s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14564d
14565:bsnl
14566s/["\\]/\\&/g
14567s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14568D["\1"]=" \3\\\\\\n"\\/p
14569t cont
14570s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14571t cont
14572d
14573:cont
14574n
14575s/.\{148\}/&'"$ac_delim"'/g
14576t clear
14577:clear
14578s/\\$//
14579t bsnlc
14580s/["\\]/\\&/g; s/^/"/; s/$/"/p
14581d
14582:bsnlc
14583s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14584b cont
14585' <confdefs.h | sed '
14586s/'"$ac_delim"'/"\\\
14587"/g' >>$CONFIG_STATUS || ac_write_fail=1
14588
14589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14590 for (key in D) D_is_set[key] = 1
14591 FS = ""
14592}
14593/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14594 line = \$ 0
14595 split(line, arg, " ")
14596 if (arg[1] == "#") {
14597 defundef = arg[2]
14598 mac1 = arg[3]
14599 } else {
14600 defundef = substr(arg[1], 2)
14601 mac1 = arg[2]
14602 }
14603 split(mac1, mac2, "(") #)
14604 macro = mac2[1]
14605 prefix = substr(line, 1, index(line, defundef) - 1)
14606 if (D_is_set[macro]) {
14607 # Preserve the white space surrounding the "#".
14608 print prefix "define", macro P[macro] D[macro]
14609 next
14610 } else {
14611 # Replace #undef with comments. This is necessary, for example,
14612 # in the case of _POSIX_SOURCE, which is predefined and required
14613 # on some systems where configure will not decide to define it.
14614 if (defundef == "undef") {
14615 print "/*", prefix defundef, macro, "*/"
14616 next
14617 }
14618 }
14619}
14620{ print }
14621_ACAWK
14622_ACEOF
14623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080014624 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070014625fi # test -n "$CONFIG_HEADERS"
14626
14627
14628eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14629shift
14630for ac_tag
Lev Walkin27fd0b62007-08-27 23:57:45 +000014631do
14632 case $ac_tag in
14633 :[FHLC]) ac_mode=$ac_tag; continue;;
14634 esac
14635 case $ac_mode$ac_tag in
14636 :[FHL]*:*);;
Lev Walkinaef10c32014-01-14 01:47:25 -080014637 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014638 :[FH]-) ac_tag=-:-;;
14639 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14640 esac
14641 ac_save_IFS=$IFS
14642 IFS=:
14643 set x $ac_tag
14644 IFS=$ac_save_IFS
14645 shift
14646 ac_file=$1
14647 shift
14648
14649 case $ac_mode in
14650 :L) ac_source=$1;;
14651 :[FH])
14652 ac_file_inputs=
14653 for ac_f
14654 do
14655 case $ac_f in
Lev Walkinaef10c32014-01-14 01:47:25 -080014656 -) ac_f="$ac_tmp/stdin";;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014657 *) # Look for the file first in the build tree, then in the source tree
14658 # (if the path is not absolute). The absolute path cannot be DOS-style,
14659 # because $ac_f cannot contain `:'.
14660 test -f "$ac_f" ||
14661 case $ac_f in
14662 [\\/$]*) false;;
14663 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14664 esac ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014665 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014666 esac
Lev Walkinb3751942012-09-02 19:36:47 -070014667 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Lev Walkinaef10c32014-01-14 01:47:25 -080014668 as_fn_append ac_file_inputs " '$ac_f'"
Lev Walkin27fd0b62007-08-27 23:57:45 +000014669 done
14670
14671 # Let's still pretend it is `configure' which instantiates (i.e., don't
14672 # use $as_me), people would be surprised to read:
14673 # /* config.h. Generated by config.status. */
Lev Walkinb3751942012-09-02 19:36:47 -070014674 configure_input='Generated from '`
14675 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14676 `' by configure.'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014677 if test x"$ac_file" != x-; then
14678 configure_input="$ac_file. $configure_input"
Lev Walkinaef10c32014-01-14 01:47:25 -080014679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014680$as_echo "$as_me: creating $ac_file" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014681 fi
Lev Walkinb3751942012-09-02 19:36:47 -070014682 # Neutralize special characters interpreted by sed in replacement strings.
14683 case $configure_input in #(
14684 *\&* | *\|* | *\\* )
14685 ac_sed_conf_input=`$as_echo "$configure_input" |
14686 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14687 *) ac_sed_conf_input=$configure_input;;
14688 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014689
14690 case $ac_tag in
Lev Walkinaef10c32014-01-14 01:47:25 -080014691 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014693 esac
14694 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014695 esac
14696
Lev Walkin27fd0b62007-08-27 23:57:45 +000014697 ac_dir=`$as_dirname -- "$ac_file" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014698$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014699 X"$ac_file" : 'X\(//\)[^/]' \| \
14700 X"$ac_file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014701 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014702$as_echo X"$ac_file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14704 s//\1/
14705 q
14706 }
14707 /^X\(\/\/\)[^/].*/{
14708 s//\1/
14709 q
14710 }
14711 /^X\(\/\/\)$/{
14712 s//\1/
14713 q
14714 }
14715 /^X\(\/\).*/{
14716 s//\1/
14717 q
14718 }
14719 s/.*/./; q'`
Lev Walkinaef10c32014-01-14 01:47:25 -080014720 as_dir="$ac_dir"; as_fn_mkdir_p
Lev Walkinf15320b2004-06-03 03:38:44 +000014721 ac_builddir=.
14722
Lev Walkin27fd0b62007-08-27 23:57:45 +000014723case "$ac_dir" in
14724.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14725*)
Lev Walkinb3751942012-09-02 19:36:47 -070014726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014727 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -070014728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014729 case $ac_top_builddir_sub in
14730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14732 esac ;;
14733esac
14734ac_abs_top_builddir=$ac_pwd
14735ac_abs_builddir=$ac_pwd$ac_dir_suffix
14736# for backward compatibility:
14737ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +000014738
14739case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014740 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +000014741 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014742 ac_top_srcdir=$ac_top_builddir_sub
14743 ac_abs_top_srcdir=$ac_pwd ;;
14744 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +000014745 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014746 ac_top_srcdir=$srcdir
14747 ac_abs_top_srcdir=$srcdir ;;
14748 *) # Relative name.
14749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14750 ac_top_srcdir=$ac_top_build_prefix$srcdir
14751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014752esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014753ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +000014754
Lev Walkinf15320b2004-06-03 03:38:44 +000014755
Lev Walkin27fd0b62007-08-27 23:57:45 +000014756 case $ac_mode in
14757 :F)
14758 #
14759 # CONFIG_FILE
14760 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014761
14762 case $INSTALL in
14763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014764 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014765 esac
Lev Walkin4c776e52010-11-08 02:07:31 -080014766 ac_MKDIR_P=$MKDIR_P
14767 case $MKDIR_P in
14768 [\\/$]* | ?:[\\/]* ) ;;
14769 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14770 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014771_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014772
Lev Walkinb3751942012-09-02 19:36:47 -070014773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014774# If the template does not know about datarootdir, expand it.
14775# FIXME: This hack should be removed a few years after 2.60.
14776ac_datarootdir_hack=; ac_datarootdir_seen=
Lev Walkinb3751942012-09-02 19:36:47 -070014777ac_sed_dataroot='
14778/datarootdir/ {
Lev Walkin27fd0b62007-08-27 23:57:45 +000014779 p
14780 q
14781}
14782/@datadir@/p
14783/@docdir@/p
14784/@infodir@/p
14785/@localedir@/p
Lev Walkinaef10c32014-01-14 01:47:25 -080014786/@mandir@/p'
Lev Walkinb3751942012-09-02 19:36:47 -070014787case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014788*datarootdir*) ac_datarootdir_seen=yes;;
14789*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014791$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014792_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014794 ac_datarootdir_hack='
14795 s&@datadir@&$datadir&g
14796 s&@docdir@&$docdir&g
14797 s&@infodir@&$infodir&g
14798 s&@localedir@&$localedir&g
14799 s&@mandir@&$mandir&g
Lev Walkinaef10c32014-01-14 01:47:25 -080014800 s&\\\${datarootdir}&$datarootdir&g' ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014801esac
14802_ACEOF
14803
14804# Neutralize VPATH when `$srcdir' = `.'.
14805# Shell code in configure.ac might set extrasub.
14806# FIXME: do we really want to maintain this feature?
Lev Walkinb3751942012-09-02 19:36:47 -070014807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14808ac_sed_extra="$ac_vpsub
Lev Walkinf15320b2004-06-03 03:38:44 +000014809$extrasub
14810_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014812:t
14813/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Lev Walkinb3751942012-09-02 19:36:47 -070014814s|@configure_input@|$ac_sed_conf_input|;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014815s&@top_builddir@&$ac_top_builddir_sub&;t t
Lev Walkinb3751942012-09-02 19:36:47 -070014816s&@top_build_prefix@&$ac_top_build_prefix&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014817s&@srcdir@&$ac_srcdir&;t t
14818s&@abs_srcdir@&$ac_abs_srcdir&;t t
14819s&@top_srcdir@&$ac_top_srcdir&;t t
14820s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14821s&@builddir@&$ac_builddir&;t t
14822s&@abs_builddir@&$ac_abs_builddir&;t t
14823s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14824s&@INSTALL@&$ac_INSTALL&;t t
Lev Walkin4c776e52010-11-08 02:07:31 -080014825s&@MKDIR_P@&$ac_MKDIR_P&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014826$ac_datarootdir_hack
Lev Walkinb3751942012-09-02 19:36:47 -070014827"
Lev Walkinaef10c32014-01-14 01:47:25 -080014828eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14829 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014830
Lev Walkin27fd0b62007-08-27 23:57:45 +000014831test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Lev Walkinaef10c32014-01-14 01:47:25 -080014832 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14833 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14834 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14836which seems to be undefined. Please make sure it is defined" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014837$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Lev Walkinaef10c32014-01-14 01:47:25 -080014838which seems to be undefined. Please make sure it is defined" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014839
Lev Walkinaef10c32014-01-14 01:47:25 -080014840 rm -f "$ac_tmp/stdin"
Lev Walkinf15320b2004-06-03 03:38:44 +000014841 case $ac_file in
Lev Walkinaef10c32014-01-14 01:47:25 -080014842 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14843 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Lev Walkinb3751942012-09-02 19:36:47 -070014844 esac \
Lev Walkinaef10c32014-01-14 01:47:25 -080014845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014846 ;;
14847 :H)
14848 #
14849 # CONFIG_HEADER
14850 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014851 if test x"$ac_file" != x-; then
Lev Walkinb3751942012-09-02 19:36:47 -070014852 {
14853 $as_echo "/* $configure_input */" \
Lev Walkinaef10c32014-01-14 01:47:25 -080014854 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14855 } >"$ac_tmp/config.h" \
14856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14857 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014859$as_echo "$as_me: $ac_file is unchanged" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014860 else
Lev Walkinb3751942012-09-02 19:36:47 -070014861 rm -f "$ac_file"
Lev Walkinaef10c32014-01-14 01:47:25 -080014862 mv "$ac_tmp/config.h" "$ac_file" \
14863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014864 fi
14865 else
Lev Walkinb3751942012-09-02 19:36:47 -070014866 $as_echo "/* $configure_input */" \
Lev Walkinaef10c32014-01-14 01:47:25 -080014867 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14868 || as_fn_error $? "could not create -" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014869 fi
Lev Walkinb3751942012-09-02 19:36:47 -070014870# Compute "$ac_file"'s index in $config_headers.
14871_am_arg="$ac_file"
Lev Walkin8e8b5482004-06-17 23:42:48 +000014872_am_stamp_count=1
14873for _am_header in $config_headers :; do
14874 case $_am_header in
Lev Walkinb3751942012-09-02 19:36:47 -070014875 $_am_arg | $_am_arg:* )
Lev Walkin8e8b5482004-06-17 23:42:48 +000014876 break ;;
14877 * )
14878 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014879 esac
14880done
Lev Walkinb3751942012-09-02 19:36:47 -070014881echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14882$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14883 X"$_am_arg" : 'X\(//\)[^/]' \| \
14884 X"$_am_arg" : 'X\(//\)$' \| \
14885 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14886$as_echo X"$_am_arg" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14888 s//\1/
14889 q
14890 }
14891 /^X\(\/\/\)[^/].*/{
14892 s//\1/
14893 q
14894 }
14895 /^X\(\/\/\)$/{
14896 s//\1/
14897 q
14898 }
14899 /^X\(\/\).*/{
14900 s//\1/
14901 q
14902 }
14903 s/.*/./; q'`/stamp-h$_am_stamp_count
14904 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014905
Lev Walkinaef10c32014-01-14 01:47:25 -080014906 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014907$as_echo "$as_me: executing $ac_file commands" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014908 ;;
14909 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014910
14911
Lev Walkin27fd0b62007-08-27 23:57:45 +000014912 case $ac_file$ac_mode in
Lev Walkinb3751942012-09-02 19:36:47 -070014913 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14914 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14915 # are listed without --file. Let's play safe and only enable the eval
14916 # if we detect the quoting.
14917 case $CONFIG_FILES in
14918 *\'*) eval set x "$CONFIG_FILES" ;;
14919 *) set x $CONFIG_FILES ;;
14920 esac
14921 shift
14922 for mf
14923 do
14924 # Strip MF so we end up with the name of the file.
14925 mf=`echo "$mf" | sed -e 's/:.*$//'`
14926 # Check whether this is an Automake generated Makefile or not.
14927 # We used to match only the files named `Makefile.in', but
14928 # some people rename them; so instead we look at the file content.
14929 # Grep'ing the first line is not enough: some people post-process
14930 # each Makefile.in and add a new line on top of each file to say so.
14931 # Grep'ing the whole file is not good either: AIX grep has a line
14932 # limit of 2048, but all sed's we know have understand at least 4000.
14933 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14934 dirpart=`$as_dirname -- "$mf" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014935$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14936 X"$mf" : 'X\(//\)[^/]' \| \
14937 X"$mf" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014938 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014939$as_echo X"$mf" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14941 s//\1/
14942 q
14943 }
14944 /^X\(\/\/\)[^/].*/{
14945 s//\1/
14946 q
14947 }
14948 /^X\(\/\/\)$/{
14949 s//\1/
14950 q
14951 }
14952 /^X\(\/\).*/{
14953 s//\1/
14954 q
14955 }
14956 s/.*/./; q'`
Lev Walkinb3751942012-09-02 19:36:47 -070014957 else
14958 continue
14959 fi
14960 # Extract the definition of DEPDIR, am__include, and am__quote
14961 # from the Makefile without running `make'.
14962 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14963 test -z "$DEPDIR" && continue
14964 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14965 test -z "am__include" && continue
14966 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14967 # When using ansi2knr, U may be empty or an underscore; expand it
14968 U=`sed -n 's/^U = //p' < "$mf"`
14969 # Find all dependency output files, they are included files with
14970 # $(DEPDIR) in their names. We invoke sed twice because it is the
14971 # simplest approach to changing $(DEPDIR) to its actual value in the
14972 # expansion.
14973 for file in `sed -n "
14974 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14975 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14976 # Make sure the directory exists.
14977 test -f "$dirpart/$file" && continue
14978 fdir=`$as_dirname -- "$file" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014979$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14980 X"$file" : 'X\(//\)[^/]' \| \
14981 X"$file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014982 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014983$as_echo X"$file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14985 s//\1/
14986 q
14987 }
14988 /^X\(\/\/\)[^/].*/{
14989 s//\1/
14990 q
14991 }
14992 /^X\(\/\/\)$/{
14993 s//\1/
14994 q
14995 }
14996 /^X\(\/\).*/{
14997 s//\1/
14998 q
14999 }
15000 s/.*/./; q'`
Lev Walkinaef10c32014-01-14 01:47:25 -080015001 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Lev Walkinb3751942012-09-02 19:36:47 -070015002 # echo "creating $dirpart/$file"
15003 echo '# dummy' > "$dirpart/$file"
15004 done
Lev Walkinf15320b2004-06-03 03:38:44 +000015005 done
Lev Walkinb3751942012-09-02 19:36:47 -070015006}
Lev Walkinf15320b2004-06-03 03:38:44 +000015007 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070015008 "libtool":C)
15009
15010 # See if we are running on zsh, and set the options which allow our
15011 # commands through without removal of \ escapes.
15012 if test -n "${ZSH_VERSION+set}" ; then
15013 setopt NO_GLOB_SUBST
15014 fi
15015
15016 cfgfile="${ofile}T"
Lev Walkinaef10c32014-01-14 01:47:25 -080015017 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15018 $RM "$cfgfile"
Lev Walkin4da95cf2010-10-16 02:46:32 -070015019
15020 cat <<_LT_EOF >> "$cfgfile"
15021#! $SHELL
15022
15023# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15024# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15025# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15026# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15027#
15028# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Lev Walkinaef10c32014-01-14 01:47:25 -080015029# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15030# Inc.
Lev Walkin4da95cf2010-10-16 02:46:32 -070015031# Written by Gordon Matzigkeit, 1996
15032#
15033# This file is part of GNU Libtool.
15034#
15035# GNU Libtool is free software; you can redistribute it and/or
15036# modify it under the terms of the GNU General Public License as
15037# published by the Free Software Foundation; either version 2 of
15038# the License, or (at your option) any later version.
15039#
15040# As a special exception to the GNU General Public License,
15041# if you distribute this file as part of a program or library that
15042# is built using GNU Libtool, you may include this file under the
15043# same distribution terms that you use for the rest of that program.
15044#
15045# GNU Libtool is distributed in the hope that it will be useful,
15046# but WITHOUT ANY WARRANTY; without even the implied warranty of
15047# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15048# GNU General Public License for more details.
15049#
15050# You should have received a copy of the GNU General Public License
15051# along with GNU Libtool; see the file COPYING. If not, a copy
15052# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15053# obtained by writing to the Free Software Foundation, Inc.,
15054# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15055
15056
15057# The names of the tagged configurations supported by this script.
15058available_tags=""
15059
15060# ### BEGIN LIBTOOL CONFIG
15061
15062# Which release of libtool.m4 was used?
15063macro_version=$macro_version
15064macro_revision=$macro_revision
15065
15066# Whether or not to build shared libraries.
15067build_libtool_libs=$enable_shared
15068
15069# Whether or not to build static libraries.
15070build_old_libs=$enable_static
15071
15072# What type of objects to build.
15073pic_mode=$pic_mode
15074
15075# Whether or not to optimize for fast installation.
15076fast_install=$enable_fast_install
15077
Lev Walkinaef10c32014-01-14 01:47:25 -080015078# Shell to use when invoking shell scripts.
15079SHELL=$lt_SHELL
15080
15081# An echo program that protects backslashes.
15082ECHO=$lt_ECHO
15083
Lev Walkin4da95cf2010-10-16 02:46:32 -070015084# The host system.
15085host_alias=$host_alias
15086host=$host
15087host_os=$host_os
15088
15089# The build system.
15090build_alias=$build_alias
15091build=$build
15092build_os=$build_os
15093
15094# A sed program that does not truncate output.
15095SED=$lt_SED
15096
15097# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15098Xsed="\$SED -e 1s/^X//"
15099
15100# A grep program that handles long lines.
15101GREP=$lt_GREP
15102
15103# An ERE matcher.
15104EGREP=$lt_EGREP
15105
15106# A literal string matcher.
15107FGREP=$lt_FGREP
15108
15109# A BSD- or MS-compatible name lister.
15110NM=$lt_NM
15111
15112# Whether we need soft or hard links.
15113LN_S=$lt_LN_S
15114
15115# What is the maximum length of a command?
15116max_cmd_len=$max_cmd_len
15117
15118# Object file suffix (normally "o").
15119objext=$ac_objext
15120
15121# Executable file suffix (normally "").
15122exeext=$exeext
15123
15124# whether the shell understands "unset".
15125lt_unset=$lt_unset
15126
15127# turn spaces into newlines.
15128SP2NL=$lt_lt_SP2NL
15129
15130# turn newlines into spaces.
15131NL2SP=$lt_lt_NL2SP
15132
Lev Walkinaef10c32014-01-14 01:47:25 -080015133# convert \$build file names to \$host format.
15134to_host_file_cmd=$lt_cv_to_host_file_cmd
15135
15136# convert \$build files to toolchain format.
15137to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15138
15139# An object symbol dumper.
15140OBJDUMP=$lt_OBJDUMP
Lev Walkin4da95cf2010-10-16 02:46:32 -070015141
15142# Method to check whether dependent libraries are shared objects.
15143deplibs_check_method=$lt_deplibs_check_method
15144
Lev Walkinaef10c32014-01-14 01:47:25 -080015145# Command to use when deplibs_check_method = "file_magic".
Lev Walkin4da95cf2010-10-16 02:46:32 -070015146file_magic_cmd=$lt_file_magic_cmd
15147
Lev Walkinaef10c32014-01-14 01:47:25 -080015148# How to find potential files when deplibs_check_method = "file_magic".
15149file_magic_glob=$lt_file_magic_glob
15150
15151# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15152want_nocaseglob=$lt_want_nocaseglob
15153
15154# DLL creation program.
15155DLLTOOL=$lt_DLLTOOL
15156
15157# Command to associate shared and link libraries.
15158sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15159
Lev Walkin4da95cf2010-10-16 02:46:32 -070015160# The archiver.
15161AR=$lt_AR
Lev Walkinaef10c32014-01-14 01:47:25 -080015162
15163# Flags to create an archive.
Lev Walkin4da95cf2010-10-16 02:46:32 -070015164AR_FLAGS=$lt_AR_FLAGS
15165
Lev Walkinaef10c32014-01-14 01:47:25 -080015166# How to feed a file listing to the archiver.
15167archiver_list_spec=$lt_archiver_list_spec
15168
Lev Walkin4da95cf2010-10-16 02:46:32 -070015169# A symbol stripping program.
15170STRIP=$lt_STRIP
15171
15172# Commands used to install an old-style archive.
15173RANLIB=$lt_RANLIB
15174old_postinstall_cmds=$lt_old_postinstall_cmds
15175old_postuninstall_cmds=$lt_old_postuninstall_cmds
15176
Lev Walkinaef10c32014-01-14 01:47:25 -080015177# Whether to use a lock for old archive extraction.
15178lock_old_archive_extraction=$lock_old_archive_extraction
15179
Lev Walkin4da95cf2010-10-16 02:46:32 -070015180# A C compiler.
15181LTCC=$lt_CC
15182
15183# LTCC compiler flags.
15184LTCFLAGS=$lt_CFLAGS
15185
15186# Take the output of nm and produce a listing of raw symbols and C names.
15187global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15188
15189# Transform the output of nm in a proper C declaration.
15190global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15191
15192# Transform the output of nm in a C name address pair.
15193global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15194
15195# Transform the output of nm in a C name address pair when lib prefix is needed.
15196global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15197
Lev Walkinaef10c32014-01-14 01:47:25 -080015198# Specify filename containing input files for \$NM.
15199nm_file_list_spec=$lt_nm_file_list_spec
15200
15201# The root where to search for dependent libraries,and in which our libraries should be installed.
15202lt_sysroot=$lt_sysroot
15203
Lev Walkin4da95cf2010-10-16 02:46:32 -070015204# The name of the directory that contains temporary libtool files.
15205objdir=$objdir
15206
15207# Used to examine libraries when file_magic_cmd begins with "file".
15208MAGIC_CMD=$MAGIC_CMD
15209
15210# Must we lock files when doing compilation?
15211need_locks=$lt_need_locks
15212
Lev Walkinaef10c32014-01-14 01:47:25 -080015213# Manifest tool.
15214MANIFEST_TOOL=$lt_MANIFEST_TOOL
15215
Lev Walkin4da95cf2010-10-16 02:46:32 -070015216# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15217DSYMUTIL=$lt_DSYMUTIL
15218
15219# Tool to change global to local symbols on Mac OS X.
15220NMEDIT=$lt_NMEDIT
15221
15222# Tool to manipulate fat objects and archives on Mac OS X.
15223LIPO=$lt_LIPO
15224
15225# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15226OTOOL=$lt_OTOOL
15227
15228# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15229OTOOL64=$lt_OTOOL64
15230
15231# Old archive suffix (normally "a").
15232libext=$libext
15233
15234# Shared library suffix (normally ".so").
15235shrext_cmds=$lt_shrext_cmds
15236
15237# The commands to extract the exported symbol list from a shared archive.
15238extract_expsyms_cmds=$lt_extract_expsyms_cmds
15239
15240# Variables whose values should be saved in libtool wrapper scripts and
15241# restored at link time.
15242variables_saved_for_relink=$lt_variables_saved_for_relink
15243
15244# Do we need the "lib" prefix for modules?
15245need_lib_prefix=$need_lib_prefix
15246
15247# Do we need a version for libraries?
15248need_version=$need_version
15249
15250# Library versioning type.
15251version_type=$version_type
15252
15253# Shared library runtime path variable.
15254runpath_var=$runpath_var
15255
15256# Shared library path variable.
15257shlibpath_var=$shlibpath_var
15258
15259# Is shlibpath searched before the hard-coded library search path?
15260shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15261
15262# Format of library name prefix.
15263libname_spec=$lt_libname_spec
15264
15265# List of archive names. First name is the real one, the rest are links.
15266# The last name is the one that the linker finds with -lNAME
15267library_names_spec=$lt_library_names_spec
15268
15269# The coded name of the library, if different from the real name.
15270soname_spec=$lt_soname_spec
15271
Lev Walkinaef10c32014-01-14 01:47:25 -080015272# Permission mode override for installation of shared libraries.
15273install_override_mode=$lt_install_override_mode
15274
Lev Walkin4da95cf2010-10-16 02:46:32 -070015275# Command to use after installation of a shared archive.
15276postinstall_cmds=$lt_postinstall_cmds
15277
15278# Command to use after uninstallation of a shared archive.
15279postuninstall_cmds=$lt_postuninstall_cmds
15280
15281# Commands used to finish a libtool library installation in a directory.
15282finish_cmds=$lt_finish_cmds
15283
15284# As "finish_cmds", except a single script fragment to be evaled but
15285# not shown.
15286finish_eval=$lt_finish_eval
15287
15288# Whether we should hardcode library paths into libraries.
15289hardcode_into_libs=$hardcode_into_libs
15290
15291# Compile-time system search path for libraries.
15292sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15293
15294# Run-time system search path for libraries.
15295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15296
15297# Whether dlopen is supported.
15298dlopen_support=$enable_dlopen
15299
15300# Whether dlopen of programs is supported.
15301dlopen_self=$enable_dlopen_self
15302
15303# Whether dlopen of statically linked programs is supported.
15304dlopen_self_static=$enable_dlopen_self_static
15305
15306# Commands to strip libraries.
15307old_striplib=$lt_old_striplib
15308striplib=$lt_striplib
15309
15310
15311# The linker used to build libraries.
15312LD=$lt_LD
15313
Lev Walkinaef10c32014-01-14 01:47:25 -080015314# How to create reloadable object files.
15315reload_flag=$lt_reload_flag
15316reload_cmds=$lt_reload_cmds
15317
Lev Walkin4da95cf2010-10-16 02:46:32 -070015318# Commands used to build an old-style archive.
15319old_archive_cmds=$lt_old_archive_cmds
15320
15321# A language specific compiler.
15322CC=$lt_compiler
15323
15324# Is the compiler the GNU compiler?
15325with_gcc=$GCC
15326
15327# Compiler flag to turn off builtin functions.
15328no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15329
Lev Walkin4c776e52010-11-08 02:07:31 -080015330# Additional compiler flags for building library objects.
15331pic_flag=$lt_lt_prog_compiler_pic
15332
Lev Walkinaef10c32014-01-14 01:47:25 -080015333# How to pass a linker flag through the compiler.
15334wl=$lt_lt_prog_compiler_wl
15335
Lev Walkin4da95cf2010-10-16 02:46:32 -070015336# Compiler flag to prevent dynamic linking.
15337link_static_flag=$lt_lt_prog_compiler_static
15338
15339# Does compiler simultaneously support -c and -o options?
15340compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15341
15342# Whether or not to add -lc for building shared libraries.
15343build_libtool_need_lc=$archive_cmds_need_lc
15344
15345# Whether or not to disallow shared libs when runtime libs are static.
15346allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15347
15348# Compiler flag to allow reflexive dlopens.
15349export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15350
15351# Compiler flag to generate shared objects directly from archives.
15352whole_archive_flag_spec=$lt_whole_archive_flag_spec
15353
15354# Whether the compiler copes with passing no objects directly.
15355compiler_needs_object=$lt_compiler_needs_object
15356
15357# Create an old-style archive from a shared archive.
15358old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15359
15360# Create a temporary old-style archive to link instead of a shared archive.
15361old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15362
15363# Commands used to build a shared archive.
15364archive_cmds=$lt_archive_cmds
15365archive_expsym_cmds=$lt_archive_expsym_cmds
15366
15367# Commands used to build a loadable module if different from building
15368# a shared archive.
15369module_cmds=$lt_module_cmds
15370module_expsym_cmds=$lt_module_expsym_cmds
15371
15372# Whether we are building with GNU ld or not.
15373with_gnu_ld=$lt_with_gnu_ld
15374
15375# Flag that allows shared libraries with undefined symbols to be built.
15376allow_undefined_flag=$lt_allow_undefined_flag
15377
15378# Flag that enforces no undefined symbols.
15379no_undefined_flag=$lt_no_undefined_flag
15380
15381# Flag to hardcode \$libdir into a binary during linking.
15382# This must work even if \$libdir does not exist
15383hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15384
15385# If ld is used when linking, flag to hardcode \$libdir into a binary
15386# during linking. This must work even if \$libdir does not exist.
15387hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15388
15389# Whether we need a single "-rpath" flag with a separated argument.
15390hardcode_libdir_separator=$lt_hardcode_libdir_separator
15391
15392# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15393# DIR into the resulting binary.
15394hardcode_direct=$hardcode_direct
15395
15396# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15397# DIR into the resulting binary and the resulting library dependency is
15398# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15399# library is relocated.
15400hardcode_direct_absolute=$hardcode_direct_absolute
15401
15402# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15403# into the resulting binary.
15404hardcode_minus_L=$hardcode_minus_L
15405
15406# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15407# into the resulting binary.
15408hardcode_shlibpath_var=$hardcode_shlibpath_var
15409
15410# Set to "yes" if building a shared library automatically hardcodes DIR
15411# into the library and all subsequent libraries and executables linked
15412# against it.
15413hardcode_automatic=$hardcode_automatic
15414
15415# Set to yes if linker adds runtime paths of dependent libraries
15416# to runtime path list.
15417inherit_rpath=$inherit_rpath
15418
15419# Whether libtool must link a program against all its dependency libraries.
15420link_all_deplibs=$link_all_deplibs
15421
15422# Set to "yes" if exported symbols are required.
15423always_export_symbols=$always_export_symbols
15424
15425# The commands to list exported symbols.
15426export_symbols_cmds=$lt_export_symbols_cmds
15427
15428# Symbols that should not be listed in the preloaded symbols.
15429exclude_expsyms=$lt_exclude_expsyms
15430
15431# Symbols that must always be exported.
15432include_expsyms=$lt_include_expsyms
15433
15434# Commands necessary for linking programs (against libraries) with templates.
15435prelink_cmds=$lt_prelink_cmds
15436
Lev Walkinaef10c32014-01-14 01:47:25 -080015437# Commands necessary for finishing linking programs.
15438postlink_cmds=$lt_postlink_cmds
15439
Lev Walkin4da95cf2010-10-16 02:46:32 -070015440# Specify filename containing input files.
15441file_list_spec=$lt_file_list_spec
15442
15443# How to hardcode a shared library path into an executable.
15444hardcode_action=$hardcode_action
15445
15446# ### END LIBTOOL CONFIG
15447
15448_LT_EOF
15449
15450 case $host_os in
15451 aix3*)
15452 cat <<\_LT_EOF >> "$cfgfile"
15453# AIX sometimes has problems with the GCC collect2 program. For some
15454# reason, if we set the COLLECT_NAMES environment variable, the problems
15455# vanish in a puff of smoke.
15456if test "X${COLLECT_NAMES+set}" != Xset; then
15457 COLLECT_NAMES=
15458 export COLLECT_NAMES
15459fi
15460_LT_EOF
15461 ;;
15462 esac
15463
15464
15465ltmain="$ac_aux_dir/ltmain.sh"
15466
15467
15468 # We use sed instead of cat because bash on DJGPP gets confused if
15469 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15470 # text mode, it properly converts lines to CR/LF. This bash problem
15471 # is reportedly fixed, but why not run on old versions too?
Lev Walkinaef10c32014-01-14 01:47:25 -080015472 sed '$q' "$ltmain" >> "$cfgfile" \
15473 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070015474
Lev Walkinaef10c32014-01-14 01:47:25 -080015475 if test x"$xsi_shell" = xyes; then
15476 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15477func_dirname ()\
15478{\
15479\ case ${1} in\
15480\ */*) func_dirname_result="${1%/*}${2}" ;;\
15481\ * ) func_dirname_result="${3}" ;;\
15482\ esac\
15483} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15484 && mv -f "$cfgfile.tmp" "$cfgfile" \
15485 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15486test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015487
15488
Lev Walkinaef10c32014-01-14 01:47:25 -080015489 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15490func_basename ()\
15491{\
15492\ func_basename_result="${1##*/}"\
15493} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15494 && mv -f "$cfgfile.tmp" "$cfgfile" \
15495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15496test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015497
15498
Lev Walkinaef10c32014-01-14 01:47:25 -080015499 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15500func_dirname_and_basename ()\
15501{\
15502\ case ${1} in\
15503\ */*) func_dirname_result="${1%/*}${2}" ;;\
15504\ * ) func_dirname_result="${3}" ;;\
15505\ esac\
15506\ func_basename_result="${1##*/}"\
15507} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15508 && mv -f "$cfgfile.tmp" "$cfgfile" \
15509 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15510test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015511
Lev Walkinaef10c32014-01-14 01:47:25 -080015512
15513 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15514func_stripname ()\
15515{\
15516\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15517\ # positional parameters, so assign one to ordinary parameter first.\
15518\ func_stripname_result=${3}\
15519\ func_stripname_result=${func_stripname_result#"${1}"}\
15520\ func_stripname_result=${func_stripname_result%"${2}"}\
15521} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15522 && mv -f "$cfgfile.tmp" "$cfgfile" \
15523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15524test 0 -eq $? || _lt_function_replace_fail=:
15525
15526
15527 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15528func_split_long_opt ()\
15529{\
15530\ func_split_long_opt_name=${1%%=*}\
15531\ func_split_long_opt_arg=${1#*=}\
15532} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15533 && mv -f "$cfgfile.tmp" "$cfgfile" \
15534 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15535test 0 -eq $? || _lt_function_replace_fail=:
15536
15537
15538 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15539func_split_short_opt ()\
15540{\
15541\ func_split_short_opt_arg=${1#??}\
15542\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15543} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15544 && mv -f "$cfgfile.tmp" "$cfgfile" \
15545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15546test 0 -eq $? || _lt_function_replace_fail=:
15547
15548
15549 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15550func_lo2o ()\
15551{\
15552\ case ${1} in\
15553\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15554\ *) func_lo2o_result=${1} ;;\
15555\ esac\
15556} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15557 && mv -f "$cfgfile.tmp" "$cfgfile" \
15558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15559test 0 -eq $? || _lt_function_replace_fail=:
15560
15561
15562 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15563func_xform ()\
15564{\
15565 func_xform_result=${1%.*}.lo\
15566} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15567 && mv -f "$cfgfile.tmp" "$cfgfile" \
15568 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15569test 0 -eq $? || _lt_function_replace_fail=:
15570
15571
15572 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15573func_arith ()\
15574{\
15575 func_arith_result=$(( $* ))\
15576} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15577 && mv -f "$cfgfile.tmp" "$cfgfile" \
15578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15579test 0 -eq $? || _lt_function_replace_fail=:
15580
15581
15582 sed -e '/^func_len ()$/,/^} # func_len /c\
15583func_len ()\
15584{\
15585 func_len_result=${#1}\
15586} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15587 && mv -f "$cfgfile.tmp" "$cfgfile" \
15588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15589test 0 -eq $? || _lt_function_replace_fail=:
15590
15591fi
15592
15593if test x"$lt_shell_append" = xyes; then
15594 sed -e '/^func_append ()$/,/^} # func_append /c\
15595func_append ()\
15596{\
15597 eval "${1}+=\\${2}"\
15598} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15599 && mv -f "$cfgfile.tmp" "$cfgfile" \
15600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15601test 0 -eq $? || _lt_function_replace_fail=:
15602
15603
15604 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15605func_append_quoted ()\
15606{\
15607\ func_quote_for_eval "${2}"\
15608\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15609} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15610 && mv -f "$cfgfile.tmp" "$cfgfile" \
15611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15612test 0 -eq $? || _lt_function_replace_fail=:
15613
15614
15615 # Save a `func_append' function call where possible by direct use of '+='
15616 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15617 && mv -f "$cfgfile.tmp" "$cfgfile" \
15618 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15619 test 0 -eq $? || _lt_function_replace_fail=:
15620else
15621 # Save a `func_append' function call even when '+=' is not available
15622 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15623 && mv -f "$cfgfile.tmp" "$cfgfile" \
15624 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15625 test 0 -eq $? || _lt_function_replace_fail=:
15626fi
15627
15628if test x"$_lt_function_replace_fail" = x":"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15630$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15631fi
15632
15633
15634 mv -f "$cfgfile" "$ofile" ||
Lev Walkin4da95cf2010-10-16 02:46:32 -070015635 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15636 chmod +x "$ofile"
15637
15638 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015639
Lev Walkin27fd0b62007-08-27 23:57:45 +000015640 esac
15641done # for ac_tag
15642
Lev Walkinf15320b2004-06-03 03:38:44 +000015643
Lev Walkinaef10c32014-01-14 01:47:25 -080015644as_fn_exit 0
Lev Walkinf15320b2004-06-03 03:38:44 +000015645_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015646ac_clean_files=$ac_clean_files_save
15647
Lev Walkinb3751942012-09-02 19:36:47 -070015648test $ac_write_fail = 0 ||
Lev Walkinaef10c32014-01-14 01:47:25 -080015649 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070015650
Lev Walkinf15320b2004-06-03 03:38:44 +000015651
15652# configure is writing to config.log, and then calls config.status.
15653# config.status does its own redirection, appending to config.log.
15654# Unfortunately, on DOS this fails, as config.log is still kept open
15655# by configure, so config.status won't be able to write to it; its
15656# output is simply discarded. So we exec the FD to /dev/null,
15657# effectively closing config.log, so it can be properly (re)opened and
15658# appended to by config.status. When coming back to configure, we
15659# need to make the FD available again.
15660if test "$no_create" != yes; then
15661 ac_cs_success=:
15662 ac_config_status_args=
15663 test "$silent" = yes &&
15664 ac_config_status_args="$ac_config_status_args --quiet"
15665 exec 5>/dev/null
15666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15667 exec 5>>config.log
15668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15669 # would make configure fail if this is the last instruction.
Lev Walkinaef10c32014-01-14 01:47:25 -080015670 $ac_cs_success || as_fn_exit 1
Lev Walkinf15320b2004-06-03 03:38:44 +000015671fi
Lev Walkinb3751942012-09-02 19:36:47 -070015672if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Lev Walkinaef10c32014-01-14 01:47:25 -080015673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070015674$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15675fi
Lev Walkinf15320b2004-06-03 03:38:44 +000015676
15677