Raymes Khoury | 24354f7 | 2011-08-22 22:03:56 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.64. |
| 4 | # |
| 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
| 7 | # Foundation, Inc. |
| 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
| 14 | |
| 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | setopt NO_GLOB_SUBST |
| 24 | else |
| 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
| 30 | esac |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
| 58 | case $arg in #( |
| 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
| 80 | |
| 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
| 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
| 90 | case $0 in #(( |
| 91 | *[\\/]* ) as_myself=$0 ;; |
| 92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 93 | for as_dir in $PATH |
| 94 | do |
| 95 | IFS=$as_save_IFS |
| 96 | test -z "$as_dir" && as_dir=. |
| 97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 98 | done |
| 99 | IFS=$as_save_IFS |
| 100 | |
| 101 | ;; |
| 102 | esac |
| 103 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 104 | # in which case we are not to be found in the path. |
| 105 | if test "x$as_myself" = x; then |
| 106 | as_myself=$0 |
| 107 | fi |
| 108 | if test ! -f "$as_myself"; then |
| 109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 110 | exit 1 |
| 111 | fi |
| 112 | |
| 113 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 115 | # suppresses any "Segmentation fault" message there. '((' could |
| 116 | # trigger a bug in pdksh 5.2.14. |
| 117 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 118 | do eval test x\${$as_var+set} = xset \ |
| 119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 120 | done |
| 121 | PS1='$ ' |
| 122 | PS2='> ' |
| 123 | PS4='+ ' |
| 124 | |
| 125 | # NLS nuisances. |
| 126 | LC_ALL=C |
| 127 | export LC_ALL |
| 128 | LANGUAGE=C |
| 129 | export LANGUAGE |
| 130 | |
| 131 | # CDPATH. |
| 132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 133 | |
| 134 | if test "x$CONFIG_SHELL" = x; then |
| 135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 136 | emulate sh |
| 137 | NULLCMD=: |
| 138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 139 | # is contrary to our usage. Disable this feature. |
| 140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 141 | setopt NO_GLOB_SUBST |
| 142 | else |
| 143 | case \`(set -o) 2>/dev/null\` in #( |
| 144 | *posix*) : |
| 145 | set -o posix ;; #( |
| 146 | *) : |
| 147 | ;; |
| 148 | esac |
| 149 | fi |
| 150 | " |
| 151 | as_required="as_fn_return () { (exit \$1); } |
| 152 | as_fn_success () { as_fn_return 0; } |
| 153 | as_fn_failure () { as_fn_return 1; } |
| 154 | as_fn_ret_success () { return 0; } |
| 155 | as_fn_ret_failure () { return 1; } |
| 156 | |
| 157 | exitcode=0 |
| 158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 163 | |
| 164 | else |
| 165 | exitcode=1; echo positional parameters were not saved. |
| 166 | fi |
| 167 | test x\$exitcode = x0 || exit 1" |
| 168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 172 | test \$(( 1 + 1 )) = 2 || exit 1 |
| 173 | |
| 174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 178 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
| 181 | if (eval "$as_required") 2>/dev/null; then : |
| 182 | as_have_required=yes |
| 183 | else |
| 184 | as_have_required=no |
| 185 | fi |
| 186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 187 | |
| 188 | else |
| 189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 190 | as_found=false |
| 191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 192 | do |
| 193 | IFS=$as_save_IFS |
| 194 | test -z "$as_dir" && as_dir=. |
| 195 | as_found=: |
| 196 | case $as_dir in #( |
| 197 | /*) |
| 198 | for as_base in sh bash ksh sh5; do |
| 199 | # Try only shells that exist, to save several forks. |
| 200 | as_shell=$as_dir/$as_base |
| 201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 203 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 205 | break 2 |
| 206 | fi |
| 207 | fi |
| 208 | done;; |
| 209 | esac |
| 210 | as_found=false |
| 211 | done |
| 212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 214 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 215 | fi; } |
| 216 | IFS=$as_save_IFS |
| 217 | |
| 218 | |
| 219 | if test "x$CONFIG_SHELL" != x; then : |
| 220 | # We cannot yet assume a decent shell, so we have to provide a |
| 221 | # neutralization value for shells without unset; and this also |
| 222 | # works around shells that cannot unset nonexistent variables. |
| 223 | BASH_ENV=/dev/null |
| 224 | ENV=/dev/null |
| 225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 226 | export CONFIG_SHELL |
| 227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 228 | fi |
| 229 | |
| 230 | if test x$as_have_required = xno; then : |
| 231 | $as_echo "$0: This script requires a shell more modern than all" |
| 232 | $as_echo "$0: the shells that I found on your system." |
| 233 | if test x${ZSH_VERSION+set} = xset ; then |
| 234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 236 | else |
| 237 | $as_echo "$0: Please tell [email protected] about your system, |
| 238 | $0: including any error possibly output before this |
| 239 | $0: message. Then install a modern shell, or manually run |
| 240 | $0: the script under such a shell if you do have one." |
| 241 | fi |
| 242 | exit 1 |
| 243 | fi |
| 244 | fi |
| 245 | fi |
| 246 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 247 | export SHELL |
| 248 | # Unset more variables known to interfere with behavior of common tools. |
| 249 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 250 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 251 | |
| 252 | ## --------------------- ## |
| 253 | ## M4sh Shell Functions. ## |
| 254 | ## --------------------- ## |
| 255 | # as_fn_unset VAR |
| 256 | # --------------- |
| 257 | # Portably unset VAR. |
| 258 | as_fn_unset () |
| 259 | { |
| 260 | { eval $1=; unset $1;} |
| 261 | } |
| 262 | as_unset=as_fn_unset |
| 263 | |
| 264 | # as_fn_set_status STATUS |
| 265 | # ----------------------- |
| 266 | # Set $? to STATUS, without forking. |
| 267 | as_fn_set_status () |
| 268 | { |
| 269 | return $1 |
| 270 | } # as_fn_set_status |
| 271 | |
| 272 | # as_fn_exit STATUS |
| 273 | # ----------------- |
| 274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 275 | as_fn_exit () |
| 276 | { |
| 277 | set +e |
| 278 | as_fn_set_status $1 |
| 279 | exit $1 |
| 280 | } # as_fn_exit |
| 281 | |
| 282 | # as_fn_mkdir_p |
| 283 | # ------------- |
| 284 | # Create "$as_dir" as a directory, including parents if necessary. |
| 285 | as_fn_mkdir_p () |
| 286 | { |
| 287 | |
| 288 | case $as_dir in #( |
| 289 | -*) as_dir=./$as_dir;; |
| 290 | esac |
| 291 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 292 | as_dirs= |
| 293 | while :; do |
| 294 | case $as_dir in #( |
| 295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 296 | *) as_qdir=$as_dir;; |
| 297 | esac |
| 298 | as_dirs="'$as_qdir' $as_dirs" |
| 299 | as_dir=`$as_dirname -- "$as_dir" || |
| 300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 301 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 302 | X"$as_dir" : 'X\(//\)$' \| \ |
| 303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 304 | $as_echo X"$as_dir" | |
| 305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 306 | s//\1/ |
| 307 | q |
| 308 | } |
| 309 | /^X\(\/\/\)[^/].*/{ |
| 310 | s//\1/ |
| 311 | q |
| 312 | } |
| 313 | /^X\(\/\/\)$/{ |
| 314 | s//\1/ |
| 315 | q |
| 316 | } |
| 317 | /^X\(\/\).*/{ |
| 318 | s//\1/ |
| 319 | q |
| 320 | } |
| 321 | s/.*/./; q'` |
| 322 | test -d "$as_dir" && break |
| 323 | done |
| 324 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 326 | |
| 327 | |
| 328 | } # as_fn_mkdir_p |
| 329 | # as_fn_append VAR VALUE |
| 330 | # ---------------------- |
| 331 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 332 | # advantage of any shell optimizations that allow amortized linear growth over |
| 333 | # repeated appends, instead of the typical quadratic growth present in naive |
| 334 | # implementations. |
| 335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 336 | eval 'as_fn_append () |
| 337 | { |
| 338 | eval $1+=\$2 |
| 339 | }' |
| 340 | else |
| 341 | as_fn_append () |
| 342 | { |
| 343 | eval $1=\$$1\$2 |
| 344 | } |
| 345 | fi # as_fn_append |
| 346 | |
| 347 | # as_fn_arith ARG... |
| 348 | # ------------------ |
| 349 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 351 | # must be portable across $(()) and expr. |
| 352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 353 | eval 'as_fn_arith () |
| 354 | { |
| 355 | as_val=$(( $* )) |
| 356 | }' |
| 357 | else |
| 358 | as_fn_arith () |
| 359 | { |
| 360 | as_val=`expr "$@" || test $? -eq 1` |
| 361 | } |
| 362 | fi # as_fn_arith |
| 363 | |
| 364 | |
| 365 | # as_fn_error ERROR [LINENO LOG_FD] |
| 366 | # --------------------------------- |
| 367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 369 | # script with status $?, using 1 if that was 0. |
| 370 | as_fn_error () |
| 371 | { |
| 372 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 373 | if test "$3"; then |
| 374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 376 | fi |
| 377 | $as_echo "$as_me: error: $1" >&2 |
| 378 | as_fn_exit $as_status |
| 379 | } # as_fn_error |
| 380 | |
| 381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 383 | as_expr=expr |
| 384 | else |
| 385 | as_expr=false |
| 386 | fi |
| 387 | |
| 388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 389 | as_basename=basename |
| 390 | else |
| 391 | as_basename=false |
| 392 | fi |
| 393 | |
| 394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 395 | as_dirname=dirname |
| 396 | else |
| 397 | as_dirname=false |
| 398 | fi |
| 399 | |
| 400 | as_me=`$as_basename -- "$0" || |
| 401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 402 | X"$0" : 'X\(//\)$' \| \ |
| 403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 404 | $as_echo X/"$0" | |
| 405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 406 | s//\1/ |
| 407 | q |
| 408 | } |
| 409 | /^X\/\(\/\/\)$/{ |
| 410 | s//\1/ |
| 411 | q |
| 412 | } |
| 413 | /^X\/\(\/\).*/{ |
| 414 | s//\1/ |
| 415 | q |
| 416 | } |
| 417 | s/.*/./; q'` |
| 418 | |
| 419 | # Avoid depending upon Character Ranges. |
| 420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|