Changeset 530 for trunk/src/tcl/configure.in
- Timestamp:
- Sep 21, 2006 8:53:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tcl/configure.in
r528 r530 38 38 blt_source_dir=$withval) 39 39 40 AC_ARG_WITH(rappture, [ --with-rappture=DIR Find include/rappture.h in DIR],41 rappture_dir=$withval)42 43 AC_ARG_WITH(altpath, [ --with-altpath=DIR Alternate path to search for required packages],44 alt_dir=$withval)40 # AC_ARG_WITH(rappture, [ --with-rappture=DIR Find include/rappture.h in DIR], 41 # rappture_dir=$withval) 42 43 # AC_ARG_WITH(altpath, [ --with-altpath=DIR Alternate path to search for required packages], 44 # alt_dir=$withval) 45 45 46 46 #-------------------------------------------------------------------- … … 264 264 # for it in the --with-rappture directory. 265 265 #-------------------------------------------------------------------- 266 AC_MSG_CHECKING([for rappture.h]) 267 RAPPTURE_DIR="" 268 if test "x$rappture_dir" != "x" ; then 269 # 270 # Verify that a rappture.h file exists in the directory specified 271 # by --with-rappture. 272 # 273 if test -r "$rappture_dir/include/rappture.h" ; then 274 RAPPTURE_DIR="$rappture_dir" 275 fi 276 else 277 # 278 # Otherwise, search for the rappture.h include file... 279 # 1. Search previously named locations. 280 # 281 for dir in \ 282 $prefix \ 283 $exec_prefix 284 do 285 if test -r "$dir/include/rappture.h" ; then 286 RAPPTURE_DIR="$dir" 287 break 288 fi 289 done 290 # 291 # 2. Search source directories. 292 # 293 if test "x$RAPPTURE_DIR" = "x" ; then 294 for dir in \ 295 `ls -dr ../rappture 2>/dev/null` \ 296 `ls -dr ../../rappture 2>/dev/null` \ 297 `ls -dr ../../../rappture 2>/dev/null` \ 298 `ls -dr C\:/opt/rappture 2>/dev/null` \ 299 `ls -dr /opt/rappture 2>/dev/null` 300 do 301 if test -r "$dir/include/rappture.h" ; then 302 RAPPTURE_DIR="$dir" 303 break 304 fi 305 done 306 fi 307 fi 308 AC_MSG_RESULT([${RAPPTURE_DIR}]) 309 310 if test "x$RAPPTURE_DIR" = "x" ; then 311 echo "can't find RAPPTURE include file \"rappture.h\"" 312 echo "use --with-rappture=DIR to specify the location of rappture" 313 exit 1 314 fi 266 RAPPTURE_DIR=$prefix 267 # AC_MSG_CHECKING([for rappture.h]) 268 # RAPPTURE_DIR="" 269 # if test "x$rappture_dir" != "x" ; then 270 # # 271 # # Verify that a rappture.h file exists in the directory specified 272 # # by --with-rappture. 273 # # 274 # if test -r "$rappture_dir/include/rappture.h" ; then 275 # RAPPTURE_DIR="$rappture_dir" 276 # fi 277 # else 278 # # 279 # # Otherwise, search for the rappture.h include file... 280 # # 1. Search previously named locations. 281 # # 282 # for dir in \ 283 # $prefix \ 284 # $exec_prefix 285 # do 286 # if test -r "$dir/include/rappture.h" ; then 287 # RAPPTURE_DIR="$dir" 288 # break 289 # fi 290 # done 291 # # 292 # # 2. Search source directories. 293 # # 294 # if test "x$RAPPTURE_DIR" = "x" ; then 295 # for dir in \ 296 # `ls -dr ../rappture 2>/dev/null` \ 297 # `ls -dr ../../rappture 2>/dev/null` \ 298 # `ls -dr ../../../rappture 2>/dev/null` \ 299 # `ls -dr C\:/opt/rappture 2>/dev/null` \ 300 # `ls -dr /opt/rappture 2>/dev/null` 301 # do 302 # if test -r "$dir/include/rappture.h" ; then 303 # RAPPTURE_DIR="$dir" 304 # break 305 # fi 306 # done 307 # fi 308 # fi 309 # AC_MSG_RESULT([${RAPPTURE_DIR}]) 310 # 311 # if test "x$RAPPTURE_DIR" = "x" ; then 312 # echo "can't find RAPPTURE include file \"rappture.h\"" 313 # echo "use --with-rappture=DIR to specify the location of rappture" 314 # exit 1 315 # fi 315 316 316 317 AC_SUBST(RAPPTURE_DIR) … … 320 321 # for it in the --with-scew directory. 321 322 #-------------------------------------------------------------------- 322 AC_MSG_CHECKING([for alternate paths])323 ALT_DIR=""324 if test "x$alt_dir" != "x" ; then325 #326 # Verify that a include and lib directories exist in the directory specified327 # by --with-altpath.328 #329 if test -d "$alt_dir/include" -a -d "$alt_dir/lib" ; then330 ALT_DIR="$rappture_dir"331 fi332 else333 if test "x$ALT_DIR" = "x" ; then334 for dir in \335 C\:/opt /opt336 do337 if test -r "$dir/include" -a -d "$dir/lib" ; then338 ALT_DIR="$dir"339 break340 fi341 done342 fi343 fi344 if test "x$ALT_DIR" = "x" ; then345 AC_MSG_RESULT(none)346 else347 AC_MSG_RESULT([${ALT_DIR}])348 fi349 323 # AC_MSG_CHECKING([for alternate paths]) 324 # ALT_DIR="" 325 # if test "x$alt_dir" != "x" ; then 326 # # 327 # # Verify that a include and lib directories exist in the directory specified 328 # # by --with-altpath. 329 # # 330 # if test -d "$alt_dir/include" -a -d "$alt_dir/lib" ; then 331 # ALT_DIR="$rappture_dir" 332 # fi 333 # else 334 # if test "x$ALT_DIR" = "x" ; then 335 # for dir in \ 336 # C\:/opt /opt 337 # do 338 # if test -r "$dir/include" -a -d "$dir/lib" ; then 339 # ALT_DIR="$dir" 340 # break 341 # fi 342 # done 343 # fi 344 # fi 345 # if test "x$ALT_DIR" = "x" ; then 346 # AC_MSG_RESULT(none) 347 # else 348 # AC_MSG_RESULT([${ALT_DIR}]) 349 # fi 350 # 350 351 AC_SUBST(ALT_DIR) 351 352
Note: See TracChangeset
for help on using the changeset viewer.